Class: Gtk::TextTag

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk4/text-tag.rb,
lib/gtk4/deprecated.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Gtk::TextTag

Creates a GtkTextTag.

Parameters:

  • name (String)

    tag name

Instance Method Details

#accumulative_margin=(accumulative_margin) ⇒ Boolean

Whether the margins accumulate or override each other.

When set to true the margins of this tag are added to the margins of any other non-accumulative margins present. When set to false the margins override one another (the default).

Parameters:

  • accumulative_margin (Boolean)

Returns:

  • (Boolean)

    accumulative-margin

  • (Boolean)

    accumulative-margin

#accumulative_margin?Boolean

Whether the margins accumulate or override each other.

When set to true the margins of this tag are added to the margins of any other non-accumulative margins present. When set to false the margins override one another (the default).

Returns:

  • (Boolean)

    accumulative-margin

#allow_breaks=(allow_breaks) ⇒ Boolean

Whether breaks are allowed.

Parameters:

  • allow_breaks (Boolean)

Returns:

  • (Boolean)

    allow-breaks

  • (Boolean)

    allow-breaks

#allow_breaks?Boolean

Whether breaks are allowed.

Returns:

  • (Boolean)

    allow-breaks

#allow_breaks_set=(allow_breaks_set) ⇒ Boolean

Parameters:

  • allow_breaks_set (Boolean)

Returns:

  • (Boolean)

    allow-breaks-set

  • (Boolean)

    allow-breaks-set

#allow_breaks_set?Boolean

Returns allow-breaks-set.

Returns:

  • (Boolean)

    allow-breaks-set

#background=(background) ⇒ String

Background color as a string.

Parameters:

  • background (String)

Returns:

  • (String)

    background

#background_full_height=(background_full_height) ⇒ Boolean

Whether the background color fills the entire line height or only the height of the tagged characters.

Parameters:

  • background_full_height (Boolean)

Returns:

  • (Boolean)

    background-full-height

  • (Boolean)

    background-full-height

#background_full_height?Boolean

Whether the background color fills the entire line height or only the height of the tagged characters.

Returns:

  • (Boolean)

    background-full-height

#background_full_height_set=(background_full_height_set) ⇒ Boolean

Parameters:

  • background_full_height_set (Boolean)

Returns:

  • (Boolean)

    background-full-height-set

  • (Boolean)

    background-full-height-set

#background_full_height_set?Boolean

Returns background-full-height-set.

Returns:

  • (Boolean)

    background-full-height-set

#background_rgbaGdk::RGBA

Background color as a GdkRGBA.

Returns:

  • (Gdk::RGBA)

    background-rgba

#background_rgba=(background_rgba) ⇒ Gdk::RGBA

Background color as a GdkRGBA.

Parameters:

  • background_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    background-rgba

  • (Gdk::RGBA)

    background-rgba

#background_set=(background_set) ⇒ Boolean

Parameters:

  • background_set (Boolean)

Returns:

  • (Boolean)

    background-set

  • (Boolean)

    background-set

#background_set?Boolean

Returns background-set.

Returns:

  • (Boolean)

    background-set

#changed(size_changed) ⇒ nil

Emits the [signalGtk.TextTagTable::tag-changed] signal on the GtkTextTagTable where the tag is included.

The signal is already emitted when setting a GtkTextTag property. This function is useful for a GtkTextTag subclass.

Parameters:

  • size_changed (Boolean)

    whether the change affects the GtkTextView layout

Returns:

  • (nil)

#directionGtk::TextDirection

Text direction, e.g. right-to-left or left-to-right.

Returns:

#direction=(direction) ⇒ Gtk::TextDirection

Text direction, e.g. right-to-left or left-to-right.

Parameters:

Returns:

#editable=(editable) ⇒ Boolean

Whether the text can be modified by the user.

Parameters:

  • editable (Boolean)

Returns:

  • (Boolean)

    editable

  • (Boolean)

    editable

#editable?Boolean

Whether the text can be modified by the user.

Returns:

  • (Boolean)

    editable

#editable_set=(editable_set) ⇒ Boolean

Parameters:

  • editable_set (Boolean)

Returns:

  • (Boolean)

    editable-set

  • (Boolean)

    editable-set

#editable_set?Boolean

Returns editable-set.

Returns:

  • (Boolean)

    editable-set

#fallback=(fallback) ⇒ Boolean

Whether font fallback is enabled.

When set to true, other fonts will be substituted where the current font is missing glyphs.

Parameters:

  • fallback (Boolean)

Returns:

  • (Boolean)

    fallback

  • (Boolean)

    fallback

#fallback?Boolean

Whether font fallback is enabled.

When set to true, other fonts will be substituted where the current font is missing glyphs.

Returns:

  • (Boolean)

    fallback

#fallback_set=(fallback_set) ⇒ Boolean

Parameters:

  • fallback_set (Boolean)

Returns:

  • (Boolean)

    fallback-set

  • (Boolean)

    fallback-set

#fallback_set?Boolean

Returns fallback-set.

Returns:

  • (Boolean)

    fallback-set

#familyString

Name of the font family, e.g. Sans, Helvetica, Times, Monospace.

Returns:

  • (String)

    family

#family=(family) ⇒ String

Name of the font family, e.g. Sans, Helvetica, Times, Monospace.

Parameters:

  • family (String)

Returns:

  • (String)

    family

  • (String)

    family

#family_set=(family_set) ⇒ Boolean

Parameters:

  • family_set (Boolean)

Returns:

  • (Boolean)

    family-set

  • (Boolean)

    family-set

#family_set?Boolean

Returns family-set.

Returns:

  • (Boolean)

    family-set

#fontString

Font description as string, e.g. "Sans Italic 12".

Note that the initial value of this property depends on the internals of PangoFontDescription.

Returns:

  • (String)

    font

#font=(font) ⇒ String

Font description as string, e.g. "Sans Italic 12".

Note that the initial value of this property depends on the internals of PangoFontDescription.

Parameters:

  • font (String)

Returns:

  • (String)

    font

  • (String)

    font

#font_descPango::FontDescription

Font description as a PangoFontDescription.

Returns:

  • (Pango::FontDescription)

    font-desc

#font_desc=(font_desc) ⇒ Pango::FontDescription

Font description as a PangoFontDescription.

Parameters:

  • font_desc (Pango::FontDescription)

Returns:

  • (Pango::FontDescription)

    font-desc

  • (Pango::FontDescription)

    font-desc

#font_featuresString

OpenType font features, as a string.

Returns:

  • (String)

    font-features

#font_features=(font_features) ⇒ String

OpenType font features, as a string.

Parameters:

  • font_features (String)

Returns:

  • (String)

    font-features

  • (String)

    font-features

#font_features_set=(font_features_set) ⇒ Boolean

Parameters:

  • font_features_set (Boolean)

Returns:

  • (Boolean)

    font-features-set

  • (Boolean)

    font-features-set

#font_features_set?Boolean

Returns font-features-set.

Returns:

  • (Boolean)

    font-features-set

#foreground=(foreground) ⇒ String

Foreground color as a string.

Parameters:

  • foreground (String)

Returns:

  • (String)

    foreground

#foreground_rgbaGdk::RGBA

Foreground color as a GdkRGBA.

Returns:

  • (Gdk::RGBA)

    foreground-rgba

#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA

Foreground color as a GdkRGBA.

Parameters:

  • foreground_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    foreground-rgba

  • (Gdk::RGBA)

    foreground-rgba

#foreground_set=(foreground_set) ⇒ Boolean

Parameters:

  • foreground_set (Boolean)

Returns:

  • (Boolean)

    foreground-set

  • (Boolean)

    foreground-set

#foreground_set?Boolean

Returns foreground-set.

Returns:

  • (Boolean)

    foreground-set

#indentInteger

Amount to indent the paragraph, in pixels.

A negative value of indent will produce a hanging indentation. That is, the first line will have the full width, and subsequent lines will be indented by the absolute value of indent.

Returns:

  • (Integer)

    indent

#indent=(indent) ⇒ Integer

Amount to indent the paragraph, in pixels.

A negative value of indent will produce a hanging indentation. That is, the first line will have the full width, and subsequent lines will be indented by the absolute value of indent.

Parameters:

  • indent (Integer)

Returns:

  • (Integer)

    indent

  • (Integer)

    indent

#indent_set=(indent_set) ⇒ Boolean

Parameters:

  • indent_set (Boolean)

Returns:

  • (Boolean)

    indent-set

  • (Boolean)

    indent-set

#indent_set?Boolean

Returns indent-set.

Returns:

  • (Boolean)

    indent-set

#insert_hyphens=(insert_hyphens) ⇒ Boolean

Whether to insert hyphens at breaks.

Parameters:

  • insert_hyphens (Boolean)

Returns:

  • (Boolean)

    insert-hyphens

  • (Boolean)

    insert-hyphens

#insert_hyphens?Boolean

Whether to insert hyphens at breaks.

Returns:

  • (Boolean)

    insert-hyphens

#insert_hyphens_set=(insert_hyphens_set) ⇒ Boolean

Parameters:

  • insert_hyphens_set (Boolean)

Returns:

  • (Boolean)

    insert-hyphens-set

  • (Boolean)

    insert-hyphens-set

#insert_hyphens_set?Boolean

Returns insert-hyphens-set.

Returns:

  • (Boolean)

    insert-hyphens-set

#invisible=(invisible) ⇒ Boolean

Whether this text is hidden.

Note that there may still be problems with the support for invisible text, in particular when navigating programmatically inside a buffer containing invisible segments.

Parameters:

  • invisible (Boolean)

Returns:

  • (Boolean)

    invisible

  • (Boolean)

    invisible

#invisible?Boolean

Whether this text is hidden.

Note that there may still be problems with the support for invisible text, in particular when navigating programmatically inside a buffer containing invisible segments.

Returns:

  • (Boolean)

    invisible

#invisible_set=(invisible_set) ⇒ Boolean

Parameters:

  • invisible_set (Boolean)

Returns:

  • (Boolean)

    invisible-set

  • (Boolean)

    invisible-set

#invisible_set?Boolean

Returns invisible-set.

Returns:

  • (Boolean)

    invisible-set

#justificationGtk::Justification

Left, right, or center justification.

Returns:

#justification=(justification) ⇒ Gtk::Justification

Left, right, or center justification.

Parameters:

Returns:

#justification_set=(justification_set) ⇒ Boolean

Parameters:

  • justification_set (Boolean)

Returns:

  • (Boolean)

    justification-set

  • (Boolean)

    justification-set

#justification_set?Boolean

Returns justification-set.

Returns:

  • (Boolean)

    justification-set

#languageString

The language this text is in, as an ISO code.

Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.

Note that the initial value of this property depends on the current locale, see also [funcGtk.get_default_language].

Returns:

  • (String)

    language

#language=(language) ⇒ String

The language this text is in, as an ISO code.

Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.

Note that the initial value of this property depends on the current locale, see also [funcGtk.get_default_language].

Parameters:

  • language (String)

Returns:

  • (String)

    language

  • (String)

    language

#language_set=(language_set) ⇒ Boolean

Parameters:

  • language_set (Boolean)

Returns:

  • (Boolean)

    language-set

  • (Boolean)

    language-set

#language_set?Boolean

Returns language-set.

Returns:

  • (Boolean)

    language-set

#left_marginInteger

Width of the left margin in pixels.

Returns:

  • (Integer)

    left-margin

#left_margin=(left_margin) ⇒ Integer

Width of the left margin in pixels.

Parameters:

  • left_margin (Integer)

Returns:

  • (Integer)

    left-margin

  • (Integer)

    left-margin

#left_margin_set=(left_margin_set) ⇒ Boolean

Parameters:

  • left_margin_set (Boolean)

Returns:

  • (Boolean)

    left-margin-set

  • (Boolean)

    left-margin-set

#left_margin_set?Boolean

Returns left-margin-set.

Returns:

  • (Boolean)

    left-margin-set

#letter_spacingInteger

Extra spacing between graphemes, in Pango units.

Returns:

  • (Integer)

    letter-spacing

#letter_spacing=(letter_spacing) ⇒ Integer

Extra spacing between graphemes, in Pango units.

Parameters:

  • letter_spacing (Integer)

Returns:

  • (Integer)

    letter-spacing

  • (Integer)

    letter-spacing

#letter_spacing_set=(letter_spacing_set) ⇒ Boolean

Parameters:

  • letter_spacing_set (Boolean)

Returns:

  • (Boolean)

    letter-spacing-set

  • (Boolean)

    letter-spacing-set

#letter_spacing_set?Boolean

Returns letter-spacing-set.

Returns:

  • (Boolean)

    letter-spacing-set

#line_heightGtk::gfloat

Factor to scale line height by.

Returns:

  • (Gtk::gfloat)

    line-height

#line_height=(line_height) ⇒ Gtk::gfloat

Factor to scale line height by.

Parameters:

  • line_height (Gtk::gfloat)

Returns:

  • (Gtk::gfloat)

    line-height

  • (Gtk::gfloat)

    line-height

#line_height_set=(line_height_set) ⇒ Boolean

Parameters:

  • line_height_set (Boolean)

Returns:

  • (Boolean)

    line-height-set

  • (Boolean)

    line-height-set

#line_height_set?Boolean

Returns line-height-set.

Returns:

  • (Boolean)

    line-height-set

#nameString

The name used to refer to the tag.

nil for anonymous tags.

Returns:

  • (String)

    name

#name=(name) ⇒ String

The name used to refer to the tag.

nil for anonymous tags.

Parameters:

  • name (String)

Returns:

  • (String)

    name

  • (String)

    name

#overlinePango::Overline

Style of overline for this text.

Returns:

  • (Pango::Overline)

    overline

#overline=(overline) ⇒ Pango::Overline

Style of overline for this text.

Parameters:

  • overline (Pango::Overline)

Returns:

  • (Pango::Overline)

    overline

  • (Pango::Overline)

    overline

#overline_rgbaGdk::RGBA

This property modifies the color of overlines.

If not set, overlines will use the foreground color.

Returns:

  • (Gdk::RGBA)

    overline-rgba

#overline_rgba=(overline_rgba) ⇒ Gdk::RGBA

This property modifies the color of overlines.

If not set, overlines will use the foreground color.

Parameters:

  • overline_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    overline-rgba

  • (Gdk::RGBA)

    overline-rgba

#overline_rgba_set=(overline_rgba_set) ⇒ Boolean

Parameters:

  • overline_rgba_set (Boolean)

Returns:

  • (Boolean)

    overline-rgba-set

  • (Boolean)

    overline-rgba-set

#overline_rgba_set?Boolean

Returns overline-rgba-set.

Returns:

  • (Boolean)

    overline-rgba-set

#overline_set=(overline_set) ⇒ Boolean

Parameters:

  • overline_set (Boolean)

Returns:

  • (Boolean)

    overline-set

  • (Boolean)

    overline-set

#overline_set?Boolean

Returns overline-set.

Returns:

  • (Boolean)

    overline-set

#paragraph_background=(paragraph_background) ⇒ String

The paragraph background color as a string.

Parameters:

  • paragraph_background (String)

Returns:

  • (String)

    paragraph-background

#paragraph_background_rgbaGdk::RGBA

The paragraph background color as a GdkRGBA.

Returns:

  • (Gdk::RGBA)

    paragraph-background-rgba

#paragraph_background_rgba=(paragraph_background_rgba) ⇒ Gdk::RGBA

The paragraph background color as a GdkRGBA.

Parameters:

  • paragraph_background_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    paragraph-background-rgba

  • (Gdk::RGBA)

    paragraph-background-rgba

#paragraph_background_set=(paragraph_background_set) ⇒ Boolean

Parameters:

  • paragraph_background_set (Boolean)

Returns:

  • (Boolean)

    paragraph-background-set

  • (Boolean)

    paragraph-background-set

#paragraph_background_set?Boolean

Returns paragraph-background-set.

Returns:

  • (Boolean)

    paragraph-background-set

#pixels_above_linesInteger

Pixels of blank space above paragraphs.

Returns:

  • (Integer)

    pixels-above-lines

#pixels_above_lines=(pixels_above_lines) ⇒ Integer

Pixels of blank space above paragraphs.

Parameters:

  • pixels_above_lines (Integer)

Returns:

  • (Integer)

    pixels-above-lines

  • (Integer)

    pixels-above-lines

#pixels_above_lines_set=(pixels_above_lines_set) ⇒ Boolean

Parameters:

  • pixels_above_lines_set (Boolean)

Returns:

  • (Boolean)

    pixels-above-lines-set

  • (Boolean)

    pixels-above-lines-set

#pixels_above_lines_set?Boolean

Returns pixels-above-lines-set.

Returns:

  • (Boolean)

    pixels-above-lines-set

#pixels_below_linesInteger

Pixels of blank space below paragraphs.

Returns:

  • (Integer)

    pixels-below-lines

#pixels_below_lines=(pixels_below_lines) ⇒ Integer

Pixels of blank space below paragraphs.

Parameters:

  • pixels_below_lines (Integer)

Returns:

  • (Integer)

    pixels-below-lines

  • (Integer)

    pixels-below-lines

#pixels_below_lines_set=(pixels_below_lines_set) ⇒ Boolean

Parameters:

  • pixels_below_lines_set (Boolean)

Returns:

  • (Boolean)

    pixels-below-lines-set

  • (Boolean)

    pixels-below-lines-set

#pixels_below_lines_set?Boolean

Returns pixels-below-lines-set.

Returns:

  • (Boolean)

    pixels-below-lines-set

#pixels_inside_wrapInteger

Pixels of blank space between wrapped lines in a paragraph.

Returns:

  • (Integer)

    pixels-inside-wrap

#pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer

Pixels of blank space between wrapped lines in a paragraph.

Parameters:

  • pixels_inside_wrap (Integer)

Returns:

  • (Integer)

    pixels-inside-wrap

  • (Integer)

    pixels-inside-wrap

#pixels_inside_wrap_set=(pixels_inside_wrap_set) ⇒ Boolean

Parameters:

  • pixels_inside_wrap_set (Boolean)

Returns:

  • (Boolean)

    pixels-inside-wrap-set

  • (Boolean)

    pixels-inside-wrap-set

#pixels_inside_wrap_set?Boolean

Returns pixels-inside-wrap-set.

Returns:

  • (Boolean)

    pixels-inside-wrap-set

#priorityInteger

Get the tag priority.

Returns:

  • (Integer)

    The tag’s priority.

#priority=(priority) ⇒ nil

Sets the priority of a GtkTextTag.

Valid priorities start at 0 and go to one less than [methodGtk.TextTagTable.get_size]. Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag.

Higher priority tags “win” if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with [methodGtk.TextBuffer.create_tag], which adds the tag to the buffer’s table automatically.

Parameters:

  • priority (Integer)

    the new priority

Returns:

  • (nil)

#right_marginInteger

Width of the right margin, in pixels.

Returns:

  • (Integer)

    right-margin

#right_margin=(right_margin) ⇒ Integer

Width of the right margin, in pixels.

Parameters:

  • right_margin (Integer)

Returns:

  • (Integer)

    right-margin

  • (Integer)

    right-margin

#right_margin_set=(right_margin_set) ⇒ Boolean

Parameters:

  • right_margin_set (Boolean)

Returns:

  • (Boolean)

    right-margin-set

  • (Boolean)

    right-margin-set

#right_margin_set?Boolean

Returns right-margin-set.

Returns:

  • (Boolean)

    right-margin-set

#riseInteger

Offset of text above the baseline, in Pango units.

Negative values go below the baseline.

Returns:

  • (Integer)

    rise

#rise=(rise) ⇒ Integer

Offset of text above the baseline, in Pango units.

Negative values go below the baseline.

Parameters:

  • rise (Integer)

Returns:

  • (Integer)

    rise

  • (Integer)

    rise

#rise_set=(rise_set) ⇒ Boolean

Parameters:

  • rise_set (Boolean)

Returns:

  • (Boolean)

    rise-set

  • (Boolean)

    rise-set

#rise_set?Boolean

Returns rise-set.

Returns:

  • (Boolean)

    rise-set

#scaleFloat

Font size as a scale factor relative to the default font size.

This properly adapts to theme changes, etc. so is recommended. Pango predefines some scales such as %PANGO_SCALE_X_LARGE.

Returns:

  • (Float)

    scale

#scale_set=(scale_set) ⇒ Boolean

Parameters:

  • scale_set (Boolean)

Returns:

  • (Boolean)

    scale-set

  • (Boolean)

    scale-set

#scale_set?Boolean

Returns scale-set.

Returns:

  • (Boolean)

    scale-set

#sentence=(sentence) ⇒ Boolean

Whether this tag represents a single sentence.

This affects cursor movement.

Parameters:

  • sentence (Boolean)

Returns:

  • (Boolean)

    sentence

  • (Boolean)

    sentence

#sentence?Boolean

Whether this tag represents a single sentence.

This affects cursor movement.

Returns:

  • (Boolean)

    sentence

#sentence_set=(sentence_set) ⇒ Boolean

Parameters:

  • sentence_set (Boolean)

Returns:

  • (Boolean)

    sentence-set

  • (Boolean)

    sentence-set

#sentence_set?Boolean

Returns sentence-set.

Returns:

  • (Boolean)

    sentence-set

#set_scale(scale) ⇒ Object Also known as: scale=



31
32
33
34
35
36
37
# File 'lib/gtk4/text-tag.rb', line 31

def set_scale(scale)
  case scale
  when Symbol, String
    scale = Pango::Scale.const_get(scale.to_s.upcase)
  end
  set_scale_raw(scale)
end

#set_scale_rawObject



30
# File 'lib/gtk4/text-tag.rb', line 30

alias_method :set_scale_raw, :set_scale

#set_weight(weight) ⇒ Object Also known as: weight=



20
21
22
23
24
25
26
# File 'lib/gtk4/text-tag.rb', line 20

def set_weight(weight)
  case weight
  when Symbol, String
    weight = Pango::Weight.new(weight).to_i
  end
  set_weight_raw(weight)
end

#set_weight_rawObject



19
# File 'lib/gtk4/text-tag.rb', line 19

alias_method :set_weight_raw, :set_weight

#show_spacesPango::ShowFlags

How to render invisible characters.

Returns:

  • (Pango::ShowFlags)

    show-spaces

#show_spaces=(show_spaces) ⇒ Pango::ShowFlags

How to render invisible characters.

Parameters:

  • show_spaces (Pango::ShowFlags)

Returns:

  • (Pango::ShowFlags)

    show-spaces

  • (Pango::ShowFlags)

    show-spaces

#show_spaces_set=(show_spaces_set) ⇒ Boolean

Parameters:

  • show_spaces_set (Boolean)

Returns:

  • (Boolean)

    show-spaces-set

  • (Boolean)

    show-spaces-set

#show_spaces_set?Boolean

Returns show-spaces-set.

Returns:

  • (Boolean)

    show-spaces-set

#sizeInteger

Font size in Pango units.

Returns:

  • (Integer)

    size

#size=(size) ⇒ Integer

Font size in Pango units.

Parameters:

  • size (Integer)

Returns:

  • (Integer)

    size

  • (Integer)

    size

#size_pointsFloat

Font size in points.

Returns:

  • (Float)

    size-points

#size_points=(size_points) ⇒ Float

Font size in points.

Parameters:

  • size_points (Float)

Returns:

  • (Float)

    size-points

  • (Float)

    size-points

#size_set=(size_set) ⇒ Boolean

Parameters:

  • size_set (Boolean)

Returns:

  • (Boolean)

    size-set

  • (Boolean)

    size-set

#size_set?Boolean

Returns size-set.

Returns:

  • (Boolean)

    size-set

#stretchPango::Stretch

Font stretch as a PangoStretch, e.g. %PANGO_STRETCH_CONDENSED.

Returns:

  • (Pango::Stretch)

    stretch

#stretch=(stretch) ⇒ Pango::Stretch

Font stretch as a PangoStretch, e.g. %PANGO_STRETCH_CONDENSED.

Parameters:

  • stretch (Pango::Stretch)

Returns:

  • (Pango::Stretch)

    stretch

  • (Pango::Stretch)

    stretch

#stretch_set=(stretch_set) ⇒ Boolean

Parameters:

  • stretch_set (Boolean)

Returns:

  • (Boolean)

    stretch-set

  • (Boolean)

    stretch-set

#stretch_set?Boolean

Returns stretch-set.

Returns:

  • (Boolean)

    stretch-set

#strikethrough=(strikethrough) ⇒ Boolean

Whether to strike through the text.

Parameters:

  • strikethrough (Boolean)

Returns:

  • (Boolean)

    strikethrough

  • (Boolean)

    strikethrough

#strikethrough?Boolean

Whether to strike through the text.

Returns:

  • (Boolean)

    strikethrough

#strikethrough_rgbaGdk::RGBA

This property modifies the color of strikeouts.

If not set, strikeouts will use the foreground color.

Returns:

  • (Gdk::RGBA)

    strikethrough-rgba

#strikethrough_rgba=(strikethrough_rgba) ⇒ Gdk::RGBA

This property modifies the color of strikeouts.

If not set, strikeouts will use the foreground color.

Parameters:

  • strikethrough_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    strikethrough-rgba

  • (Gdk::RGBA)

    strikethrough-rgba

#strikethrough_rgba_set=(strikethrough_rgba_set) ⇒ Boolean

If the strikethrough-rgba property has been set.

Parameters:

  • strikethrough_rgba_set (Boolean)

Returns:

  • (Boolean)

    strikethrough-rgba-set

  • (Boolean)

    strikethrough-rgba-set

#strikethrough_rgba_set?Boolean

If the strikethrough-rgba property has been set.

Returns:

  • (Boolean)

    strikethrough-rgba-set

#strikethrough_set=(strikethrough_set) ⇒ Boolean

Parameters:

  • strikethrough_set (Boolean)

Returns:

  • (Boolean)

    strikethrough-set

  • (Boolean)

    strikethrough-set

#strikethrough_set?Boolean

Returns strikethrough-set.

Returns:

  • (Boolean)

    strikethrough-set

#stylePango::Style

Font style as a PangoStyle, e.g. %PANGO_STYLE_ITALIC.

Returns:

  • (Pango::Style)

    style

#style=(style) ⇒ Pango::Style

Font style as a PangoStyle, e.g. %PANGO_STYLE_ITALIC.

Parameters:

  • style (Pango::Style)

Returns:

  • (Pango::Style)

    style

  • (Pango::Style)

    style

#style_set=(style_set) ⇒ Boolean

Parameters:

  • style_set (Boolean)

Returns:

  • (Boolean)

    style-set

  • (Boolean)

    style-set

#style_set?Boolean

Returns style-set.

Returns:

  • (Boolean)

    style-set

#tabsPango::TabArray

Custom tabs for this text.

Returns:

  • (Pango::TabArray)

    tabs

#tabs=(tabs) ⇒ Pango::TabArray

Custom tabs for this text.

Parameters:

  • tabs (Pango::TabArray)

Returns:

  • (Pango::TabArray)

    tabs

  • (Pango::TabArray)

    tabs

#tabs_set=(tabs_set) ⇒ Boolean

Parameters:

  • tabs_set (Boolean)

Returns:

  • (Boolean)

    tabs-set

  • (Boolean)

    tabs-set

#tabs_set?Boolean

Returns tabs-set.

Returns:

  • (Boolean)

    tabs-set

#text_transformPango::TextTransform

How to transform the text for display.

Returns:

  • (Pango::TextTransform)

    text-transform

#text_transform=(text_transform) ⇒ Pango::TextTransform

How to transform the text for display.

Parameters:

  • text_transform (Pango::TextTransform)

Returns:

  • (Pango::TextTransform)

    text-transform

  • (Pango::TextTransform)

    text-transform

#text_transform_set=(text_transform_set) ⇒ Boolean

Parameters:

  • text_transform_set (Boolean)

Returns:

  • (Boolean)

    text-transform-set

  • (Boolean)

    text-transform-set

#text_transform_set?Boolean

Returns text-transform-set.

Returns:

  • (Boolean)

    text-transform-set

#underlinePango::Underline

Style of underline for this text.

Returns:

  • (Pango::Underline)

    underline

#underline=(underline) ⇒ Pango::Underline

Style of underline for this text.

Parameters:

  • underline (Pango::Underline)

Returns:

  • (Pango::Underline)

    underline

  • (Pango::Underline)

    underline

#underline_rgbaGdk::RGBA

This property modifies the color of underlines.

If not set, underlines will use the foreground color.

If [propertyGtk.TextTag:underline] is set to %PANGO_UNDERLINE_ERROR, an alternate color may be applied instead of the foreground. Setting this property will always override those defaults.

Returns:

  • (Gdk::RGBA)

    underline-rgba

#underline_rgba=(underline_rgba) ⇒ Gdk::RGBA

This property modifies the color of underlines.

If not set, underlines will use the foreground color.

If [propertyGtk.TextTag:underline] is set to %PANGO_UNDERLINE_ERROR, an alternate color may be applied instead of the foreground. Setting this property will always override those defaults.

Parameters:

  • underline_rgba (Gdk::RGBA)

Returns:

  • (Gdk::RGBA)

    underline-rgba

  • (Gdk::RGBA)

    underline-rgba

#underline_rgba_set=(underline_rgba_set) ⇒ Boolean

If the underline-rgba property has been set.

Parameters:

  • underline_rgba_set (Boolean)

Returns:

  • (Boolean)

    underline-rgba-set

  • (Boolean)

    underline-rgba-set

#underline_rgba_set?Boolean

If the underline-rgba property has been set.

Returns:

  • (Boolean)

    underline-rgba-set

#underline_set=(underline_set) ⇒ Boolean

Parameters:

  • underline_set (Boolean)

Returns:

  • (Boolean)

    underline-set

  • (Boolean)

    underline-set

#underline_set?Boolean

Returns underline-set.

Returns:

  • (Boolean)

    underline-set

#variantPango::Variant

Font variant as a PangoVariant, e.g. %PANGO_VARIANT_SMALL_CAPS.

Returns:

  • (Pango::Variant)

    variant

#variant=(variant) ⇒ Pango::Variant

Font variant as a PangoVariant, e.g. %PANGO_VARIANT_SMALL_CAPS.

Parameters:

  • variant (Pango::Variant)

Returns:

  • (Pango::Variant)

    variant

  • (Pango::Variant)

    variant

#variant_set=(variant_set) ⇒ Boolean

Parameters:

  • variant_set (Boolean)

Returns:

  • (Boolean)

    variant-set

  • (Boolean)

    variant-set

#variant_set?Boolean

Returns variant-set.

Returns:

  • (Boolean)

    variant-set

#weightInteger

Font weight as an integer.

Returns:

  • (Integer)

    weight

#weight_set=(weight_set) ⇒ Boolean

Parameters:

  • weight_set (Boolean)

Returns:

  • (Boolean)

    weight-set

  • (Boolean)

    weight-set

#weight_set?Boolean

Returns weight-set.

Returns:

  • (Boolean)

    weight-set

#word=(word) ⇒ Boolean

Whether this tag represents a single word.

This affects line breaks and cursor movement.

Parameters:

  • word (Boolean)

Returns:

  • (Boolean)

    word

  • (Boolean)

    word

#word?Boolean

Whether this tag represents a single word.

This affects line breaks and cursor movement.

Returns:

  • (Boolean)

    word

#word_set=(word_set) ⇒ Boolean

Parameters:

  • word_set (Boolean)

Returns:

  • (Boolean)

    word-set

  • (Boolean)

    word-set

#word_set?Boolean

Returns word-set.

Returns:

  • (Boolean)

    word-set

#wrap_modeGtk::WrapMode

Whether to wrap lines never, at word boundaries, or at character boundaries.

Returns:

#wrap_mode=(wrap_mode) ⇒ Gtk::WrapMode

Whether to wrap lines never, at word boundaries, or at character boundaries.

Parameters:

Returns:

#wrap_mode_set=(wrap_mode_set) ⇒ Boolean

Parameters:

  • wrap_mode_set (Boolean)

Returns:

  • (Boolean)

    wrap-mode-set

  • (Boolean)

    wrap-mode-set

#wrap_mode_set?Boolean

Returns wrap-mode-set.

Returns:

  • (Boolean)

    wrap-mode-set