Class: Gtk::CellRendererText
- Inherits:
-
Object
- Object
- Gtk::CellRendererText
- Defined in:
- (unknown)
Instance Method Summary collapse
- #align_set=(align_set) ⇒ TrueClass
-
#align_set? ⇒ TrueClass
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_gdk ⇒ Gdk::Color
Background color as a Gdk::Color.
-
#background_gdk=(background_gdk) ⇒ Gdk::Color
Background color as a Gdk::Color.
-
#background_rgba ⇒ Gdk::RGBA
Background color as a Gdk::RGBA.
-
#background_rgba=(background_rgba) ⇒ Gdk::RGBA
Background color as a Gdk::RGBA.
- #background_set=(background_set) ⇒ TrueClass
-
#background_set? ⇒ TrueClass
Background-set.
- #editable=(editable) ⇒ TrueClass
-
#editable? ⇒ TrueClass
Editable.
- #editable_set=(editable_set) ⇒ TrueClass
-
#editable_set? ⇒ TrueClass
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) ⇒ TrueClass
-
#ellipsize_set? ⇒ TrueClass
Ellipsize-set.
-
#family ⇒ String
Family.
- #family=(family) ⇒ String
- #family_set=(family_set) ⇒ TrueClass
-
#family_set? ⇒ TrueClass
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_gdk ⇒ Gdk::Color
Foreground color as a Gdk::Color.
-
#foreground_gdk=(foreground_gdk) ⇒ Gdk::Color
Foreground color as a Gdk::Color.
-
#foreground_rgba ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA.
-
#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA.
- #foreground_set=(foreground_set) ⇒ TrueClass
-
#foreground_set? ⇒ TrueClass
Foreground-set.
-
#language ⇒ String
Language.
- #language=(language) ⇒ String
- #language_set=(language_set) ⇒ TrueClass
-
#language_set? ⇒ TrueClass
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.
-
#new ⇒ Gtk::CellRenderer
Creates a new Gtk::CellRendererText.
-
#placeholder_text ⇒ String
The text that will be displayed in the Gtk::CellRenderer if Gtk::CellRendererText:editable is true and the cell is empty.
-
#placeholder_text=(placeholder_text) ⇒ String
The text that will be displayed in the Gtk::CellRenderer if Gtk::CellRendererText:editable is true and the cell is empty.
-
#rise ⇒ Integer
Rise.
- #rise=(rise) ⇒ Integer
- #rise_set=(rise_set) ⇒ TrueClass
-
#rise_set? ⇒ TrueClass
Rise-set.
-
#scale ⇒ Float
Scale.
- #scale=(scale) ⇒ Float
- #scale_set=(scale_set) ⇒ TrueClass
-
#scale_set? ⇒ TrueClass
Scale-set.
- #single_paragraph_mode=(single_paragraph_mode) ⇒ TrueClass
-
#single_paragraph_mode? ⇒ TrueClass
Single-paragraph-mode.
-
#size ⇒ Integer
Size.
- #size=(size) ⇒ Integer
-
#size_points ⇒ Float
Size-points.
- #size_points=(size_points) ⇒ Float
- #size_set=(size_set) ⇒ TrueClass
-
#size_set? ⇒ TrueClass
Size-set.
-
#stretch ⇒ Pango::Stretch
Stretch.
- #stretch=(stretch) ⇒ Pango::Stretch
- #stretch_set=(stretch_set) ⇒ TrueClass
-
#stretch_set? ⇒ TrueClass
Stretch-set.
- #strikethrough=(strikethrough) ⇒ TrueClass
-
#strikethrough? ⇒ TrueClass
Strikethrough.
- #strikethrough_set=(strikethrough_set) ⇒ TrueClass
-
#strikethrough_set? ⇒ TrueClass
Strikethrough-set.
-
#style ⇒ Pango::Style
Style.
- #style=(style) ⇒ Pango::Style
- #style_set=(style_set) ⇒ TrueClass
-
#style_set? ⇒ TrueClass
Style-set.
-
#text ⇒ String
Text.
- #text=(text) ⇒ String
-
#underline ⇒ Pango::Underline
Underline.
- #underline=(underline) ⇒ Pango::Underline
- #underline_set=(underline_set) ⇒ TrueClass
-
#underline_set? ⇒ TrueClass
Underline-set.
-
#variant ⇒ Pango::Variant
Variant.
- #variant=(variant) ⇒ Pango::Variant
- #variant_set=(variant_set) ⇒ TrueClass
-
#variant_set? ⇒ TrueClass
Variant-set.
-
#weight ⇒ Integer
Weight.
- #weight=(weight) ⇒ Integer
- #weight_set=(weight_set) ⇒ TrueClass
-
#weight_set? ⇒ TrueClass
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.
Instance Method Details
#align_set=(align_set) ⇒ TrueClass
#align_set? ⇒ TrueClass
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 Gtk::CellRenderer, 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 Gtk::CellRenderer, 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_gdk ⇒ Gdk::Color
Background color as a Gdk::Color
#background_gdk=(background_gdk) ⇒ Gdk::Color
Background color as a Gdk::Color
#background_rgba ⇒ Gdk::RGBA
Background color as a Gdk::RGBA
#background_rgba=(background_rgba) ⇒ Gdk::RGBA
Background color as a Gdk::RGBA
#background_set=(background_set) ⇒ TrueClass
#background_set? ⇒ TrueClass
Returns background-set.
#editable=(editable) ⇒ TrueClass
#editable? ⇒ TrueClass
Returns editable.
#editable_set=(editable_set) ⇒ TrueClass
#editable_set? ⇒ TrueClass
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) ⇒ TrueClass
#ellipsize_set? ⇒ TrueClass
Returns ellipsize-set.
#family ⇒ String
Returns family.
#family=(family) ⇒ String
#family_set=(family_set) ⇒ TrueClass
#family_set? ⇒ TrueClass
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 unflexible, 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_gdk ⇒ Gdk::Color
Foreground color as a Gdk::Color
#foreground_gdk=(foreground_gdk) ⇒ Gdk::Color
Foreground color as a Gdk::Color
#foreground_rgba ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA
#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA
#foreground_set=(foreground_set) ⇒ TrueClass
#foreground_set? ⇒ TrueClass
Returns foreground-set.
#language ⇒ String
Returns language.
#language=(language) ⇒ String
#language_set=(language_set) ⇒ TrueClass
#language_set? ⇒ TrueClass
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 Gtk::CellLayout 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 Gtk::CellLayout and all of the cell’s siblings have received their natural width.
#new ⇒ Gtk::CellRenderer
Creates a new Gtk::CellRendererText. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, with Gtk::TreeViewColumn, you can bind a property to a value in a Gtk::TreeModel. 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 Gtk::TreeView
#placeholder_text ⇒ String
The text that will be displayed in the Gtk::CellRenderer if Gtk::CellRendererText:editable is true and the cell is empty.
Since 3.6
#placeholder_text=(placeholder_text) ⇒ String
The text that will be displayed in the Gtk::CellRenderer if Gtk::CellRendererText:editable is true and the cell is empty.
Since 3.6
#rise ⇒ Integer
Returns rise.
#rise=(rise) ⇒ Integer
#rise_set=(rise_set) ⇒ TrueClass
#rise_set? ⇒ TrueClass
Returns rise-set.
#scale ⇒ Float
Returns scale.
#scale=(scale) ⇒ Float
#scale_set=(scale_set) ⇒ TrueClass
#scale_set? ⇒ TrueClass
Returns scale-set.
#single_paragraph_mode=(single_paragraph_mode) ⇒ TrueClass
#single_paragraph_mode? ⇒ TrueClass
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) ⇒ TrueClass
#size_set? ⇒ TrueClass
Returns size-set.
#stretch ⇒ Pango::Stretch
Returns stretch.
#stretch=(stretch) ⇒ Pango::Stretch
#stretch_set=(stretch_set) ⇒ TrueClass
#stretch_set? ⇒ TrueClass
Returns stretch-set.
#strikethrough=(strikethrough) ⇒ TrueClass
#strikethrough? ⇒ TrueClass
Returns strikethrough.
#strikethrough_set=(strikethrough_set) ⇒ TrueClass
#strikethrough_set? ⇒ TrueClass
Returns strikethrough-set.
#style ⇒ Pango::Style
Returns style.
#style=(style) ⇒ Pango::Style
#style_set=(style_set) ⇒ TrueClass
#style_set? ⇒ TrueClass
Returns style-set.
#text ⇒ String
Returns text.
#text=(text) ⇒ String
#underline ⇒ Pango::Underline
Returns underline.
#underline=(underline) ⇒ Pango::Underline
#underline_set=(underline_set) ⇒ TrueClass
#underline_set? ⇒ TrueClass
Returns underline-set.
#variant ⇒ Pango::Variant
Returns variant.
#variant=(variant) ⇒ Pango::Variant
#variant_set=(variant_set) ⇒ TrueClass
#variant_set? ⇒ TrueClass
Returns variant-set.
#weight ⇒ Integer
Returns weight.
#weight=(weight) ⇒ Integer
#weight_set=(weight_set) ⇒ TrueClass
#weight_set? ⇒ TrueClass
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.