Class: Gtk::CellRendererText
- Inherits:
-
CellRenderer
- Object
- GObject::InitiallyUnowned
- CellRenderer
- Gtk::CellRendererText
- Defined in:
- (unknown)
Direct Known Subclasses
Instance Method Summary collapse
- #align_set=(align_set) ⇒ Boolean
-
#align_set? ⇒ Boolean
Align-set.
-
#alignment ⇒ Pango::Alignment
Specifies how to align the lines of text with respect to each other.
-
#alignment=(alignment) ⇒ Pango::Alignment
Specifies how to align the lines of text with respect to each other.
-
#attributes ⇒ Pango::AttrList
Attributes.
- #attributes=(attributes) ⇒ Pango::AttrList
-
#background=(background) ⇒ String
Background.
-
#background_rgba ⇒ Gdk::RGBA
Background color as a
GdkRGBA. -
#background_rgba=(background_rgba) ⇒ Gdk::RGBA
Background color as a
GdkRGBA. - #background_set=(background_set) ⇒ Boolean
-
#background_set? ⇒ Boolean
Background-set.
- #editable=(editable) ⇒ Boolean
-
#editable? ⇒ Boolean
Editable.
- #editable_set=(editable_set) ⇒ Boolean
-
#editable_set? ⇒ Boolean
Editable-set.
-
#ellipsize ⇒ Pango::EllipsizeMode
Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string.
-
#ellipsize=(ellipsize) ⇒ Pango::EllipsizeMode
Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string.
- #ellipsize_set=(ellipsize_set) ⇒ Boolean
-
#ellipsize_set? ⇒ Boolean
Ellipsize-set.
-
#family ⇒ String
Family.
- #family=(family) ⇒ String
- #family_set=(family_set) ⇒ Boolean
-
#family_set? ⇒ Boolean
Family-set.
-
#fixed_height_from_font=(number_of_rows) ⇒ nil
Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it.
-
#font ⇒ String
Font.
- #font=(font) ⇒ String
-
#font_desc ⇒ Pango::FontDescription
Font-desc.
- #font_desc=(font_desc) ⇒ Pango::FontDescription
-
#foreground=(foreground) ⇒ String
Foreground.
-
#foreground_rgba ⇒ Gdk::RGBA
Foreground color as a
GdkRGBA. -
#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA
Foreground color as a
GdkRGBA. - #foreground_set=(foreground_set) ⇒ Boolean
-
#foreground_set? ⇒ Boolean
Foreground-set.
-
#initialize ⇒ Gtk::CellRenderer
constructor
Creates a new
GtkCellRendererText. -
#language ⇒ String
Language.
- #language=(language) ⇒ String
- #language_set=(language_set) ⇒ Boolean
-
#language_set? ⇒ Boolean
Language-set.
-
#markup=(markup) ⇒ String
Markup.
-
#max_width_chars ⇒ Integer
The desired maximum width of the cell, in characters.
-
#max_width_chars=(max_width_chars) ⇒ Integer
The desired maximum width of the cell, in characters.
-
#placeholder_text ⇒ String
The text that will be displayed in the
GtkCellRendererifGtkCellRendererText:editableis true and the cell is empty. -
#placeholder_text=(placeholder_text) ⇒ String
The text that will be displayed in the
GtkCellRendererifGtkCellRendererText:editableis true and the cell is empty. -
#rise ⇒ Integer
Rise.
- #rise=(rise) ⇒ Integer
- #rise_set=(rise_set) ⇒ Boolean
-
#rise_set? ⇒ Boolean
Rise-set.
-
#scale ⇒ Float
Scale.
- #scale=(scale) ⇒ Float
- #scale_set=(scale_set) ⇒ Boolean
-
#scale_set? ⇒ Boolean
Scale-set.
- #single_paragraph_mode=(single_paragraph_mode) ⇒ Boolean
-
#single_paragraph_mode? ⇒ Boolean
Single-paragraph-mode.
-
#size ⇒ Integer
Size.
- #size=(size) ⇒ Integer
-
#size_points ⇒ Float
Size-points.
- #size_points=(size_points) ⇒ Float
- #size_set=(size_set) ⇒ Boolean
-
#size_set? ⇒ Boolean
Size-set.
-
#stretch ⇒ Pango::Stretch
Stretch.
- #stretch=(stretch) ⇒ Pango::Stretch
- #stretch_set=(stretch_set) ⇒ Boolean
-
#stretch_set? ⇒ Boolean
Stretch-set.
- #strikethrough=(strikethrough) ⇒ Boolean
-
#strikethrough? ⇒ Boolean
Strikethrough.
- #strikethrough_set=(strikethrough_set) ⇒ Boolean
-
#strikethrough_set? ⇒ Boolean
Strikethrough-set.
-
#style ⇒ Pango::Style
Style.
- #style=(style) ⇒ Pango::Style
- #style_set=(style_set) ⇒ Boolean
-
#style_set? ⇒ Boolean
Style-set.
-
#text ⇒ String
Text.
- #text=(text) ⇒ String
-
#underline ⇒ Pango::Underline
Underline.
- #underline=(underline) ⇒ Pango::Underline
- #underline_set=(underline_set) ⇒ Boolean
-
#underline_set? ⇒ Boolean
Underline-set.
-
#variant ⇒ Pango::Variant
Variant.
- #variant=(variant) ⇒ Pango::Variant
- #variant_set=(variant_set) ⇒ Boolean
-
#variant_set? ⇒ Boolean
Variant-set.
-
#weight ⇒ Integer
Weight.
- #weight=(weight) ⇒ Integer
- #weight_set=(weight_set) ⇒ Boolean
-
#weight_set? ⇒ Boolean
Weight-set.
-
#width_chars ⇒ Integer
The desired width of the cell, in characters.
-
#width_chars=(width_chars) ⇒ Integer
The desired width of the cell, in characters.
-
#wrap_mode ⇒ Pango::WrapMode
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string.
-
#wrap_mode=(wrap_mode) ⇒ Pango::WrapMode
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string.
-
#wrap_width ⇒ Integer
Specifies the minimum width at which the text is wrapped.
-
#wrap_width=(wrap_width) ⇒ Integer
Specifies the minimum width at which the text is wrapped.
Methods inherited from CellRenderer
#activate, #cell_background=, #cell_background_rgba, #cell_background_rgba=, #cell_background_set=, #cell_background_set?, #editing=, #editing?, #get_aligned_area, #get_alignment, #get_fixed_size, #get_padding, #get_preferred_height, #get_preferred_height_for_width, #get_preferred_size, #get_preferred_width, #get_preferred_width_for_height, #get_state, #height, #height=, #is_activatable, #is_expanded, #is_expanded=, #is_expanded?, #is_expander, #is_expander=, #is_expander?, #mode, #mode=, #request_mode, #sensitive, #sensitive=, #sensitive?, #set_alignment, #set_fixed_size, #set_padding, #snapshot, #start_editing, #stop_editing, #visible, #visible=, #visible?, #width, #width=, #xalign, #xalign=, #xpad, #xpad=, #yalign, #yalign=, #ypad, #ypad=
Constructor Details
#initialize ⇒ Gtk::CellRenderer
Creates a new GtkCellRendererText. Adjust how text is drawn using
object properties. Object properties can be
set globally (with g_object_set()). Also, with GtkTreeViewColumn,
you can bind a property to a value in a GtkTreeModel. For example,
you can bind the “text” property on the cell renderer to a string
value in the model, thus rendering a different string in each row
of the GtkTreeView.
Instance Method Details
#align_set=(align_set) ⇒ Boolean
#align_set? ⇒ Boolean
Returns align-set.
#alignment ⇒ Pango::Alignment
Specifies how to align the lines of text with respect to each other.
Note that this property describes how to align the lines of text in
case there are several of them. The "xalign" property of GtkCellRenderer,
on the other hand, sets the horizontal alignment of the whole text.
#alignment=(alignment) ⇒ Pango::Alignment
Specifies how to align the lines of text with respect to each other.
Note that this property describes how to align the lines of text in
case there are several of them. The "xalign" property of GtkCellRenderer,
on the other hand, sets the horizontal alignment of the whole text.
#attributes ⇒ Pango::AttrList
Returns attributes.
#attributes=(attributes) ⇒ Pango::AttrList
#background=(background) ⇒ String
Returns background.
#background_rgba ⇒ Gdk::RGBA
Background color as a GdkRGBA
#background_rgba=(background_rgba) ⇒ Gdk::RGBA
Background color as a GdkRGBA
#background_set=(background_set) ⇒ Boolean
#background_set? ⇒ Boolean
Returns background-set.
#editable=(editable) ⇒ Boolean
#editable? ⇒ Boolean
Returns editable.
#editable_set=(editable_set) ⇒ Boolean
#editable_set? ⇒ Boolean
Returns editable-set.
#ellipsize ⇒ Pango::EllipsizeMode
Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to %PANGO_ELLIPSIZE_NONE turns off ellipsizing. See the wrap-width property for another way of making the text fit into a given width.
#ellipsize=(ellipsize) ⇒ Pango::EllipsizeMode
Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to %PANGO_ELLIPSIZE_NONE turns off ellipsizing. See the wrap-width property for another way of making the text fit into a given width.
#ellipsize_set=(ellipsize_set) ⇒ Boolean
#ellipsize_set? ⇒ Boolean
Returns ellipsize-set.
#family ⇒ String
Returns family.
#family=(family) ⇒ String
#family_set=(family_set) ⇒ Boolean
#family_set? ⇒ Boolean
Returns family-set.
#fixed_height_from_font=(number_of_rows) ⇒ nil
Sets the height of a renderer to explicitly be determined by the “font” and “y_pad” property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is inflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.
#font ⇒ String
Returns font.
#font=(font) ⇒ String
#font_desc ⇒ Pango::FontDescription
Returns font-desc.
#font_desc=(font_desc) ⇒ Pango::FontDescription
#foreground=(foreground) ⇒ String
Returns foreground.
#foreground_rgba ⇒ Gdk::RGBA
Foreground color as a GdkRGBA
#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA
Foreground color as a GdkRGBA
#foreground_set=(foreground_set) ⇒ Boolean
#foreground_set? ⇒ Boolean
Returns foreground-set.
#language ⇒ String
Returns language.
#language=(language) ⇒ String
#language_set=(language_set) ⇒ Boolean
#language_set? ⇒ Boolean
Returns language-set.
#markup=(markup) ⇒ String
Returns markup.
#max_width_chars ⇒ Integer
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
For cell renderers that ellipsize or wrap text; this property
controls the maximum reported width of the cell. The
cell should not receive any greater allocation unless it is
set to expand in its GtkCellLayout and all of the cell's siblings
have received their natural width.
#max_width_chars=(max_width_chars) ⇒ Integer
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically.
For cell renderers that ellipsize or wrap text; this property
controls the maximum reported width of the cell. The
cell should not receive any greater allocation unless it is
set to expand in its GtkCellLayout and all of the cell's siblings
have received their natural width.
#placeholder_text ⇒ String
The text that will be displayed in the GtkCellRenderer if
GtkCellRendererText:editable is true and the cell is empty.
#placeholder_text=(placeholder_text) ⇒ String
The text that will be displayed in the GtkCellRenderer if
GtkCellRendererText:editable is true and the cell is empty.
#rise ⇒ Integer
Returns rise.
#rise=(rise) ⇒ Integer
#rise_set=(rise_set) ⇒ Boolean
#rise_set? ⇒ Boolean
Returns rise-set.
#scale ⇒ Float
Returns scale.
#scale=(scale) ⇒ Float
#scale_set=(scale_set) ⇒ Boolean
#scale_set? ⇒ Boolean
Returns scale-set.
#single_paragraph_mode=(single_paragraph_mode) ⇒ Boolean
#single_paragraph_mode? ⇒ Boolean
Returns single-paragraph-mode.
#size ⇒ Integer
Returns size.
#size=(size) ⇒ Integer
#size_points ⇒ Float
Returns size-points.
#size_points=(size_points) ⇒ Float
#size_set=(size_set) ⇒ Boolean
#size_set? ⇒ Boolean
Returns size-set.
#stretch ⇒ Pango::Stretch
Returns stretch.
#stretch=(stretch) ⇒ Pango::Stretch
#stretch_set=(stretch_set) ⇒ Boolean
#stretch_set? ⇒ Boolean
Returns stretch-set.
#strikethrough=(strikethrough) ⇒ Boolean
#strikethrough? ⇒ Boolean
Returns strikethrough.
#strikethrough_set=(strikethrough_set) ⇒ Boolean
#strikethrough_set? ⇒ Boolean
Returns strikethrough-set.
#style ⇒ Pango::Style
Returns style.
#style=(style) ⇒ Pango::Style
#style_set=(style_set) ⇒ Boolean
#style_set? ⇒ Boolean
Returns style-set.
#text ⇒ String
Returns text.
#text=(text) ⇒ String
#underline ⇒ Pango::Underline
Returns underline.
#underline=(underline) ⇒ Pango::Underline
#underline_set=(underline_set) ⇒ Boolean
#underline_set? ⇒ Boolean
Returns underline-set.
#variant ⇒ Pango::Variant
Returns variant.
#variant=(variant) ⇒ Pango::Variant
#variant_set=(variant_set) ⇒ Boolean
#variant_set? ⇒ Boolean
Returns variant-set.
#weight ⇒ Integer
Returns weight.
#weight=(weight) ⇒ Integer
#weight_set=(weight_set) ⇒ Boolean
#weight_set? ⇒ Boolean
Returns weight-set.
#width_chars ⇒ Integer
The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.
#width_chars=(width_chars) ⇒ Integer
The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.
#wrap_mode ⇒ Pango::WrapMode
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.
#wrap_mode=(wrap_mode) ⇒ Pango::WrapMode
Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.
#wrap_width ⇒ Integer
Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.
#wrap_width=(wrap_width) ⇒ Integer
Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.