Class: Gtk::CellRendererText

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#align_set=(align_set) ⇒ TrueClass

Parameters:

  • align_set (TrueClass)

Returns:

  • (TrueClass)

    align-set

  • (TrueClass)

    align-set

#align_set?TrueClass

Returns align-set.

Returns:

  • (TrueClass)

    align-set

#alignmentPango::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.

Returns:

#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.

Parameters:

Returns:

#attributesPango::AttrList

Returns attributes.

Returns:

  • (Pango::AttrList)

    attributes

#attributes=(attributes) ⇒ Pango::AttrList

Parameters:

  • attributes (Pango::AttrList)

Returns:

  • (Pango::AttrList)

    attributes

  • (Pango::AttrList)

    attributes

#background=(background) ⇒ String

Returns background.

Parameters:

  • background (String)

Returns:

  • (String)

    background

#background_gdkGdk::Color

Background color as a Gdk::Color

Returns:

  • (Gdk::Color)

    background-gdk

#background_gdk=(background_gdk) ⇒ Gdk::Color

Background color as a Gdk::Color

Parameters:

  • background_gdk (Gdk::Color)

Returns:

  • (Gdk::Color)

    background-gdk

  • (Gdk::Color)

    background-gdk

#background_rgbaGdk::RGBA

Background color as a Gdk::RGBA

Returns:

  • (Gdk::RGBA)

    background-rgba

#background_rgba=(background_rgba) ⇒ Gdk::RGBA

Background color as a Gdk::RGBA

Parameters:

  • background_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    background-rgba

  • (Gdk::RGBA)

    background-rgba

#background_set=(background_set) ⇒ TrueClass

Parameters:

  • background_set (TrueClass)

Returns:

  • (TrueClass)

    background-set

  • (TrueClass)

    background-set

#background_set?TrueClass

Returns background-set.

Returns:

  • (TrueClass)

    background-set

#editable=(editable) ⇒ TrueClass

Parameters:

  • editable (TrueClass)

Returns:

  • (TrueClass)

    editable

  • (TrueClass)

    editable

#editable?TrueClass

Returns editable.

Returns:

  • (TrueClass)

    editable

#editable_set=(editable_set) ⇒ TrueClass

Parameters:

  • editable_set (TrueClass)

Returns:

  • (TrueClass)

    editable-set

  • (TrueClass)

    editable-set

#editable_set?TrueClass

Returns editable-set.

Returns:

  • (TrueClass)

    editable-set

#ellipsizePango::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.

Returns:

#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.

Parameters:

Returns:

#ellipsize_set=(ellipsize_set) ⇒ TrueClass

Parameters:

  • ellipsize_set (TrueClass)

Returns:

  • (TrueClass)

    ellipsize-set

  • (TrueClass)

    ellipsize-set

#ellipsize_set?TrueClass

Returns ellipsize-set.

Returns:

  • (TrueClass)

    ellipsize-set

#familyString

Returns family.

Returns:

  • (String)

    family

#family=(family) ⇒ String

Parameters:

  • family (String)

Returns:

  • (String)

    family

  • (String)

    family

#family_set=(family_set) ⇒ TrueClass

Parameters:

  • family_set (TrueClass)

Returns:

  • (TrueClass)

    family-set

  • (TrueClass)

    family-set

#family_set?TrueClass

Returns family-set.

Returns:

  • (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. 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.

Parameters:

  • number_of_rows (Integer)

    Number of rows of text each cell renderer is allocated, or -1

Returns:

  • (nil)

#fontString

Returns font.

Returns:

  • (String)

    font

#font=(font) ⇒ String

Parameters:

  • font (String)

Returns:

  • (String)

    font

  • (String)

    font

#font_descPango::FontDescription

Returns font-desc.

Returns:

  • (Pango::FontDescription)

    font-desc

#font_desc=(font_desc) ⇒ Pango::FontDescription

Parameters:

  • font_desc (Pango::FontDescription)

Returns:

  • (Pango::FontDescription)

    font-desc

  • (Pango::FontDescription)

    font-desc

#foreground=(foreground) ⇒ String

Returns foreground.

Parameters:

  • foreground (String)

Returns:

  • (String)

    foreground

#foreground_gdkGdk::Color

Foreground color as a Gdk::Color

Returns:

  • (Gdk::Color)

    foreground-gdk

#foreground_gdk=(foreground_gdk) ⇒ Gdk::Color

Foreground color as a Gdk::Color

Parameters:

  • foreground_gdk (Gdk::Color)

Returns:

  • (Gdk::Color)

    foreground-gdk

  • (Gdk::Color)

    foreground-gdk

#foreground_rgbaGdk::RGBA

Foreground color as a Gdk::RGBA

Returns:

  • (Gdk::RGBA)

    foreground-rgba

#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA

Foreground color as a Gdk::RGBA

Parameters:

  • foreground_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    foreground-rgba

  • (Gdk::RGBA)

    foreground-rgba

#foreground_set=(foreground_set) ⇒ TrueClass

Parameters:

  • foreground_set (TrueClass)

Returns:

  • (TrueClass)

    foreground-set

  • (TrueClass)

    foreground-set

#foreground_set?TrueClass

Returns foreground-set.

Returns:

  • (TrueClass)

    foreground-set

#languageString

Returns language.

Returns:

  • (String)

    language

#language=(language) ⇒ String

Parameters:

  • language (String)

Returns:

  • (String)

    language

  • (String)

    language

#language_set=(language_set) ⇒ TrueClass

Parameters:

  • language_set (TrueClass)

Returns:

  • (TrueClass)

    language-set

  • (TrueClass)

    language-set

#language_set?TrueClass

Returns language-set.

Returns:

  • (TrueClass)

    language-set

#markup=(markup) ⇒ String

Returns markup.

Parameters:

  • markup (String)

Returns:

  • (String)

    markup

#max_width_charsInteger

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.

Returns:

  • (Integer)

    max-width-chars

#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.

Parameters:

  • max_width_chars (Integer)

Returns:

  • (Integer)

    max-width-chars

  • (Integer)

    max-width-chars

#newGtk::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

Returns:

#placeholder_textString

The text that will be displayed in the Gtk::CellRenderer if Gtk::CellRendererText:editable is true and the cell is empty.

Since 3.6

Returns:

  • (String)

    placeholder-text

#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

Parameters:

  • placeholder_text (String)

Returns:

  • (String)

    placeholder-text

  • (String)

    placeholder-text

#riseInteger

Returns rise.

Returns:

  • (Integer)

    rise

#rise=(rise) ⇒ Integer

Parameters:

  • rise (Integer)

Returns:

  • (Integer)

    rise

  • (Integer)

    rise

#rise_set=(rise_set) ⇒ TrueClass

Parameters:

  • rise_set (TrueClass)

Returns:

  • (TrueClass)

    rise-set

  • (TrueClass)

    rise-set

#rise_set?TrueClass

Returns rise-set.

Returns:

  • (TrueClass)

    rise-set

#scaleFloat

Returns scale.

Returns:

  • (Float)

    scale

#scale=(scale) ⇒ Float

Parameters:

  • scale (Float)

Returns:

  • (Float)

    scale

  • (Float)

    scale

#scale_set=(scale_set) ⇒ TrueClass

Parameters:

  • scale_set (TrueClass)

Returns:

  • (TrueClass)

    scale-set

  • (TrueClass)

    scale-set

#scale_set?TrueClass

Returns scale-set.

Returns:

  • (TrueClass)

    scale-set

#single_paragraph_mode=(single_paragraph_mode) ⇒ TrueClass

Parameters:

  • single_paragraph_mode (TrueClass)

Returns:

  • (TrueClass)

    single-paragraph-mode

  • (TrueClass)

    single-paragraph-mode

#single_paragraph_mode?TrueClass

Returns single-paragraph-mode.

Returns:

  • (TrueClass)

    single-paragraph-mode

#sizeInteger

Returns size.

Returns:

  • (Integer)

    size

#size=(size) ⇒ Integer

Parameters:

  • size (Integer)

Returns:

  • (Integer)

    size

  • (Integer)

    size

#size_pointsFloat

Returns size-points.

Returns:

  • (Float)

    size-points

#size_points=(size_points) ⇒ Float

Parameters:

  • size_points (Float)

Returns:

  • (Float)

    size-points

  • (Float)

    size-points

#size_set=(size_set) ⇒ TrueClass

Parameters:

  • size_set (TrueClass)

Returns:

  • (TrueClass)

    size-set

  • (TrueClass)

    size-set

#size_set?TrueClass

Returns size-set.

Returns:

  • (TrueClass)

    size-set

#stretchPango::Stretch

Returns stretch.

Returns:

#stretch=(stretch) ⇒ Pango::Stretch

Parameters:

Returns:

#stretch_set=(stretch_set) ⇒ TrueClass

Parameters:

  • stretch_set (TrueClass)

Returns:

  • (TrueClass)

    stretch-set

  • (TrueClass)

    stretch-set

#stretch_set?TrueClass

Returns stretch-set.

Returns:

  • (TrueClass)

    stretch-set

#strikethrough=(strikethrough) ⇒ TrueClass

Parameters:

  • strikethrough (TrueClass)

Returns:

  • (TrueClass)

    strikethrough

  • (TrueClass)

    strikethrough

#strikethrough?TrueClass

Returns strikethrough.

Returns:

  • (TrueClass)

    strikethrough

#strikethrough_set=(strikethrough_set) ⇒ TrueClass

Parameters:

  • strikethrough_set (TrueClass)

Returns:

  • (TrueClass)

    strikethrough-set

  • (TrueClass)

    strikethrough-set

#strikethrough_set?TrueClass

Returns strikethrough-set.

Returns:

  • (TrueClass)

    strikethrough-set

#stylePango::Style

Returns style.

Returns:

#style=(style) ⇒ Pango::Style

Parameters:

Returns:

#style_set=(style_set) ⇒ TrueClass

Parameters:

  • style_set (TrueClass)

Returns:

  • (TrueClass)

    style-set

  • (TrueClass)

    style-set

#style_set?TrueClass

Returns style-set.

Returns:

  • (TrueClass)

    style-set

#textString

Returns text.

Returns:

  • (String)

    text

#text=(text) ⇒ String

Parameters:

  • text (String)

Returns:

  • (String)

    text

  • (String)

    text

#underlinePango::Underline

Returns underline.

Returns:

#underline=(underline) ⇒ Pango::Underline

Parameters:

Returns:

#underline_set=(underline_set) ⇒ TrueClass

Parameters:

  • underline_set (TrueClass)

Returns:

  • (TrueClass)

    underline-set

  • (TrueClass)

    underline-set

#underline_set?TrueClass

Returns underline-set.

Returns:

  • (TrueClass)

    underline-set

#variantPango::Variant

Returns variant.

Returns:

#variant=(variant) ⇒ Pango::Variant

Parameters:

Returns:

#variant_set=(variant_set) ⇒ TrueClass

Parameters:

  • variant_set (TrueClass)

Returns:

  • (TrueClass)

    variant-set

  • (TrueClass)

    variant-set

#variant_set?TrueClass

Returns variant-set.

Returns:

  • (TrueClass)

    variant-set

#weightInteger

Returns weight.

Returns:

  • (Integer)

    weight

#weight=(weight) ⇒ Integer

Parameters:

  • weight (Integer)

Returns:

  • (Integer)

    weight

  • (Integer)

    weight

#weight_set=(weight_set) ⇒ TrueClass

Parameters:

  • weight_set (TrueClass)

Returns:

  • (TrueClass)

    weight-set

  • (TrueClass)

    weight-set

#weight_set?TrueClass

Returns weight-set.

Returns:

  • (TrueClass)

    weight-set

#width_charsInteger

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.

Returns:

  • (Integer)

    width-chars

#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.

Parameters:

  • width_chars (Integer)

Returns:

  • (Integer)

    width-chars

  • (Integer)

    width-chars

#wrap_modePango::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.

Returns:

#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.

Parameters:

Returns:

#wrap_widthInteger

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.

Returns:

  • (Integer)

    wrap-width

#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.

Parameters:

  • wrap_width (Integer)

Returns:

  • (Integer)

    wrap-width

  • (Integer)

    wrap-width