Class: Gtk::TextTag
- Inherits:
-
Object
- Object
- Gtk::TextTag
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk4/text-tag.rb,
lib/gtk4/deprecated.rb
Instance Method Summary collapse
-
#accumulative_margin=(accumulative_margin) ⇒ Boolean
Whether the margins accumulate or override each other.
-
#accumulative_margin? ⇒ Boolean
Whether the margins accumulate or override each other.
-
#allow_breaks=(allow_breaks) ⇒ Boolean
Whether breaks are allowed.
-
#allow_breaks? ⇒ Boolean
Whether breaks are allowed.
- #allow_breaks_set=(allow_breaks_set) ⇒ Boolean
-
#allow_breaks_set? ⇒ Boolean
Allow-breaks-set.
-
#background=(background) ⇒ String
Background color as a string.
-
#background_full_height=(background_full_height) ⇒ Boolean
Whether the background color fills the entire line height or only the height of the tagged characters.
-
#background_full_height? ⇒ Boolean
Whether the background color fills the entire line height or only the height of the tagged characters.
- #background_full_height_set=(background_full_height_set) ⇒ Boolean
-
#background_full_height_set? ⇒ Boolean
Background-full-height-set.
-
#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.
-
#changed(size_changed) ⇒ nil
Emits the [signalGtk.TextTagTable::tag-changed] signal on the
GtkTextTagTablewhere the tag is included. -
#direction ⇒ Gtk::TextDirection
Text direction, e.g.
-
#direction=(direction) ⇒ Gtk::TextDirection
Text direction, e.g.
-
#editable=(editable) ⇒ Boolean
Whether the text can be modified by the user.
-
#editable? ⇒ Boolean
Whether the text can be modified by the user.
- #editable_set=(editable_set) ⇒ Boolean
-
#editable_set? ⇒ Boolean
Editable-set.
-
#fallback=(fallback) ⇒ Boolean
Whether font fallback is enabled.
-
#fallback? ⇒ Boolean
Whether font fallback is enabled.
- #fallback_set=(fallback_set) ⇒ Boolean
-
#fallback_set? ⇒ Boolean
Fallback-set.
-
#family ⇒ String
Name of the font family, e.g.
-
#family=(family) ⇒ String
Name of the font family, e.g.
- #family_set=(family_set) ⇒ Boolean
-
#family_set? ⇒ Boolean
Family-set.
-
#font ⇒ String
Font description as string, e.g.
-
#font=(font) ⇒ String
Font description as string, e.g.
-
#font_desc ⇒ Pango::FontDescription
Font description as a
PangoFontDescription. -
#font_desc=(font_desc) ⇒ Pango::FontDescription
Font description as a
PangoFontDescription. -
#font_features ⇒ String
OpenType font features, as a string.
-
#font_features=(font_features) ⇒ String
OpenType font features, as a string.
- #font_features_set=(font_features_set) ⇒ Boolean
-
#font_features_set? ⇒ Boolean
Font-features-set.
-
#foreground=(foreground) ⇒ String
Foreground color as a string.
-
#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.
-
#indent ⇒ Integer
Amount to indent the paragraph, in pixels.
-
#indent=(indent) ⇒ Integer
Amount to indent the paragraph, in pixels.
- #indent_set=(indent_set) ⇒ Boolean
-
#indent_set? ⇒ Boolean
Indent-set.
-
#initialize(name) ⇒ Gtk::TextTag
constructor
Creates a
GtkTextTag. -
#insert_hyphens=(insert_hyphens) ⇒ Boolean
Whether to insert hyphens at breaks.
-
#insert_hyphens? ⇒ Boolean
Whether to insert hyphens at breaks.
- #insert_hyphens_set=(insert_hyphens_set) ⇒ Boolean
-
#insert_hyphens_set? ⇒ Boolean
Insert-hyphens-set.
-
#invisible=(invisible) ⇒ Boolean
Whether this text is hidden.
-
#invisible? ⇒ Boolean
Whether this text is hidden.
- #invisible_set=(invisible_set) ⇒ Boolean
-
#invisible_set? ⇒ Boolean
Invisible-set.
-
#justification ⇒ Gtk::Justification
Left, right, or center justification.
-
#justification=(justification) ⇒ Gtk::Justification
Left, right, or center justification.
- #justification_set=(justification_set) ⇒ Boolean
-
#justification_set? ⇒ Boolean
Justification-set.
-
#language ⇒ String
The language this text is in, as an ISO code.
-
#language=(language) ⇒ String
The language this text is in, as an ISO code.
- #language_set=(language_set) ⇒ Boolean
-
#language_set? ⇒ Boolean
Language-set.
-
#left_margin ⇒ Integer
Width of the left margin in pixels.
-
#left_margin=(left_margin) ⇒ Integer
Width of the left margin in pixels.
- #left_margin_set=(left_margin_set) ⇒ Boolean
-
#left_margin_set? ⇒ Boolean
Left-margin-set.
-
#letter_spacing ⇒ Integer
Extra spacing between graphemes, in Pango units.
-
#letter_spacing=(letter_spacing) ⇒ Integer
Extra spacing between graphemes, in Pango units.
- #letter_spacing_set=(letter_spacing_set) ⇒ Boolean
-
#letter_spacing_set? ⇒ Boolean
Letter-spacing-set.
-
#line_height ⇒ Gtk::gfloat
Factor to scale line height by.
-
#line_height=(line_height) ⇒ Gtk::gfloat
Factor to scale line height by.
- #line_height_set=(line_height_set) ⇒ Boolean
-
#line_height_set? ⇒ Boolean
Line-height-set.
-
#name ⇒ String
The name used to refer to the tag.
-
#name=(name) ⇒ String
The name used to refer to the tag.
-
#overline ⇒ Pango::Overline
Style of overline for this text.
-
#overline=(overline) ⇒ Pango::Overline
Style of overline for this text.
-
#overline_rgba ⇒ Gdk::RGBA
This property modifies the color of overlines.
-
#overline_rgba=(overline_rgba) ⇒ Gdk::RGBA
This property modifies the color of overlines.
- #overline_rgba_set=(overline_rgba_set) ⇒ Boolean
-
#overline_rgba_set? ⇒ Boolean
Overline-rgba-set.
- #overline_set=(overline_set) ⇒ Boolean
-
#overline_set? ⇒ Boolean
Overline-set.
-
#paragraph_background=(paragraph_background) ⇒ String
The paragraph background color as a string.
-
#paragraph_background_rgba ⇒ Gdk::RGBA
The paragraph background color as a
GdkRGBA. -
#paragraph_background_rgba=(paragraph_background_rgba) ⇒ Gdk::RGBA
The paragraph background color as a
GdkRGBA. - #paragraph_background_set=(paragraph_background_set) ⇒ Boolean
-
#paragraph_background_set? ⇒ Boolean
Paragraph-background-set.
-
#pixels_above_lines ⇒ Integer
Pixels of blank space above paragraphs.
-
#pixels_above_lines=(pixels_above_lines) ⇒ Integer
Pixels of blank space above paragraphs.
- #pixels_above_lines_set=(pixels_above_lines_set) ⇒ Boolean
-
#pixels_above_lines_set? ⇒ Boolean
Pixels-above-lines-set.
-
#pixels_below_lines ⇒ Integer
Pixels of blank space below paragraphs.
-
#pixels_below_lines=(pixels_below_lines) ⇒ Integer
Pixels of blank space below paragraphs.
- #pixels_below_lines_set=(pixels_below_lines_set) ⇒ Boolean
-
#pixels_below_lines_set? ⇒ Boolean
Pixels-below-lines-set.
-
#pixels_inside_wrap ⇒ Integer
Pixels of blank space between wrapped lines in a paragraph.
-
#pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer
Pixels of blank space between wrapped lines in a paragraph.
- #pixels_inside_wrap_set=(pixels_inside_wrap_set) ⇒ Boolean
-
#pixels_inside_wrap_set? ⇒ Boolean
Pixels-inside-wrap-set.
-
#priority ⇒ Integer
Get the tag priority.
-
#priority=(priority) ⇒ nil
Sets the priority of a
GtkTextTag. -
#right_margin ⇒ Integer
Width of the right margin, in pixels.
-
#right_margin=(right_margin) ⇒ Integer
Width of the right margin, in pixels.
- #right_margin_set=(right_margin_set) ⇒ Boolean
-
#right_margin_set? ⇒ Boolean
Right-margin-set.
-
#rise ⇒ Integer
Offset of text above the baseline, in Pango units.
-
#rise=(rise) ⇒ Integer
Offset of text above the baseline, in Pango units.
- #rise_set=(rise_set) ⇒ Boolean
-
#rise_set? ⇒ Boolean
Rise-set.
-
#scale ⇒ Float
Font size as a scale factor relative to the default font size.
- #scale_set=(scale_set) ⇒ Boolean
-
#scale_set? ⇒ Boolean
Scale-set.
-
#sentence=(sentence) ⇒ Boolean
Whether this tag represents a single sentence.
-
#sentence? ⇒ Boolean
Whether this tag represents a single sentence.
- #sentence_set=(sentence_set) ⇒ Boolean
-
#sentence_set? ⇒ Boolean
Sentence-set.
- #set_scale(scale) ⇒ Object (also: #scale=)
- #set_scale_raw ⇒ Object
- #set_weight(weight) ⇒ Object (also: #weight=)
- #set_weight_raw ⇒ Object
-
#show_spaces ⇒ Pango::ShowFlags
How to render invisible characters.
-
#show_spaces=(show_spaces) ⇒ Pango::ShowFlags
How to render invisible characters.
- #show_spaces_set=(show_spaces_set) ⇒ Boolean
-
#show_spaces_set? ⇒ Boolean
Show-spaces-set.
-
#size ⇒ Integer
Font size in Pango units.
-
#size=(size) ⇒ Integer
Font size in Pango units.
-
#size_points ⇒ Float
Font size in points.
-
#size_points=(size_points) ⇒ Float
Font size in points.
- #size_set=(size_set) ⇒ Boolean
-
#size_set? ⇒ Boolean
Size-set.
-
#stretch ⇒ Pango::Stretch
Font stretch as a
PangoStretch, e.g. -
#stretch=(stretch) ⇒ Pango::Stretch
Font stretch as a
PangoStretch, e.g. - #stretch_set=(stretch_set) ⇒ Boolean
-
#stretch_set? ⇒ Boolean
Stretch-set.
-
#strikethrough=(strikethrough) ⇒ Boolean
Whether to strike through the text.
-
#strikethrough? ⇒ Boolean
Whether to strike through the text.
-
#strikethrough_rgba ⇒ Gdk::RGBA
This property modifies the color of strikeouts.
-
#strikethrough_rgba=(strikethrough_rgba) ⇒ Gdk::RGBA
This property modifies the color of strikeouts.
-
#strikethrough_rgba_set=(strikethrough_rgba_set) ⇒ Boolean
If the
strikethrough-rgbaproperty has been set. -
#strikethrough_rgba_set? ⇒ Boolean
If the
strikethrough-rgbaproperty has been set. - #strikethrough_set=(strikethrough_set) ⇒ Boolean
-
#strikethrough_set? ⇒ Boolean
Strikethrough-set.
-
#style ⇒ Pango::Style
Font style as a
PangoStyle, e.g. -
#style=(style) ⇒ Pango::Style
Font style as a
PangoStyle, e.g. - #style_set=(style_set) ⇒ Boolean
-
#style_set? ⇒ Boolean
Style-set.
-
#tabs ⇒ Pango::TabArray
Custom tabs for this text.
-
#tabs=(tabs) ⇒ Pango::TabArray
Custom tabs for this text.
- #tabs_set=(tabs_set) ⇒ Boolean
-
#tabs_set? ⇒ Boolean
Tabs-set.
-
#text_transform ⇒ Pango::TextTransform
How to transform the text for display.
-
#text_transform=(text_transform) ⇒ Pango::TextTransform
How to transform the text for display.
- #text_transform_set=(text_transform_set) ⇒ Boolean
-
#text_transform_set? ⇒ Boolean
Text-transform-set.
-
#underline ⇒ Pango::Underline
Style of underline for this text.
-
#underline=(underline) ⇒ Pango::Underline
Style of underline for this text.
-
#underline_rgba ⇒ Gdk::RGBA
This property modifies the color of underlines.
-
#underline_rgba=(underline_rgba) ⇒ Gdk::RGBA
This property modifies the color of underlines.
-
#underline_rgba_set=(underline_rgba_set) ⇒ Boolean
If the
underline-rgbaproperty has been set. -
#underline_rgba_set? ⇒ Boolean
If the
underline-rgbaproperty has been set. - #underline_set=(underline_set) ⇒ Boolean
-
#underline_set? ⇒ Boolean
Underline-set.
-
#variant ⇒ Pango::Variant
Font variant as a
PangoVariant, e.g. -
#variant=(variant) ⇒ Pango::Variant
Font variant as a
PangoVariant, e.g. - #variant_set=(variant_set) ⇒ Boolean
-
#variant_set? ⇒ Boolean
Variant-set.
-
#weight ⇒ Integer
Font weight as an integer.
- #weight_set=(weight_set) ⇒ Boolean
-
#weight_set? ⇒ Boolean
Weight-set.
-
#word=(word) ⇒ Boolean
Whether this tag represents a single word.
-
#word? ⇒ Boolean
Whether this tag represents a single word.
- #word_set=(word_set) ⇒ Boolean
-
#word_set? ⇒ Boolean
Word-set.
-
#wrap_mode ⇒ Gtk::WrapMode
Whether to wrap lines never, at word boundaries, or at character boundaries.
-
#wrap_mode=(wrap_mode) ⇒ Gtk::WrapMode
Whether to wrap lines never, at word boundaries, or at character boundaries.
- #wrap_mode_set=(wrap_mode_set) ⇒ Boolean
-
#wrap_mode_set? ⇒ Boolean
Wrap-mode-set.
Constructor Details
#initialize(name) ⇒ Gtk::TextTag
Creates a GtkTextTag.
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).
#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).
#allow_breaks=(allow_breaks) ⇒ Boolean
Whether breaks are allowed.
#allow_breaks? ⇒ Boolean
Whether breaks are allowed.
#allow_breaks_set=(allow_breaks_set) ⇒ Boolean
#allow_breaks_set? ⇒ Boolean
Returns allow-breaks-set.
#background=(background) ⇒ String
Background color as a string.
#background_full_height=(background_full_height) ⇒ Boolean
Whether the background color fills the entire line height or only the height of the tagged characters.
#background_full_height? ⇒ Boolean
Whether the background color fills the entire line height or only the height of the tagged characters.
#background_full_height_set=(background_full_height_set) ⇒ Boolean
#background_full_height_set? ⇒ Boolean
Returns background-full-height-set.
#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.
#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.
#direction ⇒ Gtk::TextDirection
Text direction, e.g. right-to-left or left-to-right.
#direction=(direction) ⇒ Gtk::TextDirection
Text direction, e.g. right-to-left or left-to-right.
#editable=(editable) ⇒ Boolean
Whether the text can be modified by the user.
#editable? ⇒ Boolean
Whether the text can be modified by the user.
#editable_set=(editable_set) ⇒ Boolean
#editable_set? ⇒ Boolean
Returns 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.
#fallback? ⇒ Boolean
Whether font fallback is enabled.
When set to true, other fonts will be substituted where the current font is missing glyphs.
#fallback_set=(fallback_set) ⇒ Boolean
#fallback_set? ⇒ Boolean
Returns fallback-set.
#family ⇒ String
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
#family=(family) ⇒ String
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
#family_set=(family_set) ⇒ Boolean
#family_set? ⇒ Boolean
Returns family-set.
#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.
#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.
#font_desc ⇒ Pango::FontDescription
Font description as a PangoFontDescription.
#font_desc=(font_desc) ⇒ Pango::FontDescription
Font description as a PangoFontDescription.
#font_features ⇒ String
OpenType font features, as a string.
#font_features=(font_features) ⇒ String
OpenType font features, as a string.
#font_features_set=(font_features_set) ⇒ Boolean
#font_features_set? ⇒ Boolean
Returns font-features-set.
#foreground=(foreground) ⇒ String
Foreground color as a string.
#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.
#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.
#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.
#indent_set=(indent_set) ⇒ Boolean
#indent_set? ⇒ Boolean
Returns indent-set.
#insert_hyphens=(insert_hyphens) ⇒ Boolean
Whether to insert hyphens at breaks.
#insert_hyphens? ⇒ Boolean
Whether to insert hyphens at breaks.
#insert_hyphens_set=(insert_hyphens_set) ⇒ Boolean
#insert_hyphens_set? ⇒ Boolean
Returns 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.
#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.
#invisible_set=(invisible_set) ⇒ Boolean
#invisible_set? ⇒ Boolean
Returns invisible-set.
#justification ⇒ Gtk::Justification
Left, right, or center justification.
#justification=(justification) ⇒ Gtk::Justification
Left, right, or center justification.
#justification_set=(justification_set) ⇒ Boolean
#justification_set? ⇒ Boolean
Returns justification-set.
#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].
#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].
#language_set=(language_set) ⇒ Boolean
#language_set? ⇒ Boolean
Returns language-set.
#left_margin ⇒ Integer
Width of the left margin in pixels.
#left_margin=(left_margin) ⇒ Integer
Width of the left margin in pixels.
#left_margin_set=(left_margin_set) ⇒ Boolean
#left_margin_set? ⇒ Boolean
Returns left-margin-set.
#letter_spacing ⇒ Integer
Extra spacing between graphemes, in Pango units.
#letter_spacing=(letter_spacing) ⇒ Integer
Extra spacing between graphemes, in Pango units.
#letter_spacing_set=(letter_spacing_set) ⇒ Boolean
#letter_spacing_set? ⇒ Boolean
Returns letter-spacing-set.
#line_height ⇒ Gtk::gfloat
Factor to scale line height by.
#line_height=(line_height) ⇒ Gtk::gfloat
Factor to scale line height by.
#line_height_set=(line_height_set) ⇒ Boolean
#line_height_set? ⇒ Boolean
Returns line-height-set.
#name ⇒ String
The name used to refer to the tag.
nil for anonymous tags.
#name=(name) ⇒ String
The name used to refer to the tag.
nil for anonymous tags.
#overline ⇒ Pango::Overline
Style of overline for this text.
#overline=(overline) ⇒ Pango::Overline
Style of overline for this text.
#overline_rgba ⇒ Gdk::RGBA
This property modifies the color of overlines.
If not set, overlines will use the foreground color.
#overline_rgba=(overline_rgba) ⇒ Gdk::RGBA
This property modifies the color of overlines.
If not set, overlines will use the foreground color.
#overline_rgba_set=(overline_rgba_set) ⇒ Boolean
#overline_rgba_set? ⇒ Boolean
Returns overline-rgba-set.
#overline_set=(overline_set) ⇒ Boolean
#overline_set? ⇒ Boolean
Returns overline-set.
#paragraph_background=(paragraph_background) ⇒ String
The paragraph background color as a string.
#paragraph_background_rgba ⇒ Gdk::RGBA
The paragraph background color as a GdkRGBA.
#paragraph_background_rgba=(paragraph_background_rgba) ⇒ Gdk::RGBA
The paragraph background color as a GdkRGBA.
#paragraph_background_set=(paragraph_background_set) ⇒ Boolean
#paragraph_background_set? ⇒ Boolean
Returns paragraph-background-set.
#pixels_above_lines ⇒ Integer
Pixels of blank space above paragraphs.
#pixels_above_lines=(pixels_above_lines) ⇒ Integer
Pixels of blank space above paragraphs.
#pixels_above_lines_set=(pixels_above_lines_set) ⇒ Boolean
#pixels_above_lines_set? ⇒ Boolean
Returns pixels-above-lines-set.
#pixels_below_lines ⇒ Integer
Pixels of blank space below paragraphs.
#pixels_below_lines=(pixels_below_lines) ⇒ Integer
Pixels of blank space below paragraphs.
#pixels_below_lines_set=(pixels_below_lines_set) ⇒ Boolean
#pixels_below_lines_set? ⇒ Boolean
Returns pixels-below-lines-set.
#pixels_inside_wrap ⇒ Integer
Pixels of blank space between wrapped lines in a paragraph.
#pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer
Pixels of blank space between wrapped lines in a paragraph.
#pixels_inside_wrap_set=(pixels_inside_wrap_set) ⇒ Boolean
#pixels_inside_wrap_set? ⇒ Boolean
Returns pixels-inside-wrap-set.
#priority ⇒ Integer
Get the tag 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.
#right_margin ⇒ Integer
Width of the right margin, in pixels.
#right_margin=(right_margin) ⇒ Integer
Width of the right margin, in pixels.
#right_margin_set=(right_margin_set) ⇒ Boolean
#right_margin_set? ⇒ Boolean
Returns right-margin-set.
#rise ⇒ Integer
Offset of text above the baseline, in Pango units.
Negative values go below the baseline.
#rise=(rise) ⇒ Integer
Offset of text above the baseline, in Pango units.
Negative values go below the baseline.
#rise_set=(rise_set) ⇒ Boolean
#rise_set? ⇒ Boolean
Returns rise-set.
#scale ⇒ Float
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.
#scale_set=(scale_set) ⇒ Boolean
#scale_set? ⇒ Boolean
Returns scale-set.
#sentence=(sentence) ⇒ Boolean
Whether this tag represents a single sentence.
This affects cursor movement.
#sentence? ⇒ Boolean
Whether this tag represents a single sentence.
This affects cursor movement.
#sentence_set=(sentence_set) ⇒ Boolean
#sentence_set? ⇒ Boolean
Returns 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_raw ⇒ Object
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_raw ⇒ Object
19 |
# File 'lib/gtk4/text-tag.rb', line 19 alias_method :set_weight_raw, :set_weight |
#show_spaces ⇒ Pango::ShowFlags
How to render invisible characters.
#show_spaces=(show_spaces) ⇒ Pango::ShowFlags
How to render invisible characters.
#show_spaces_set=(show_spaces_set) ⇒ Boolean
#show_spaces_set? ⇒ Boolean
Returns show-spaces-set.
#size ⇒ Integer
Font size in Pango units.
#size=(size) ⇒ Integer
Font size in Pango units.
#size_points ⇒ Float
Font size in points.
#size_points=(size_points) ⇒ Float
Font size in points.
#size_set=(size_set) ⇒ Boolean
#size_set? ⇒ Boolean
Returns size-set.
#stretch ⇒ Pango::Stretch
Font stretch as a PangoStretch, e.g. %PANGO_STRETCH_CONDENSED.
#stretch=(stretch) ⇒ Pango::Stretch
Font stretch as a PangoStretch, e.g. %PANGO_STRETCH_CONDENSED.
#stretch_set=(stretch_set) ⇒ Boolean
#stretch_set? ⇒ Boolean
Returns stretch-set.
#strikethrough=(strikethrough) ⇒ Boolean
Whether to strike through the text.
#strikethrough? ⇒ Boolean
Whether to strike through the text.
#strikethrough_rgba ⇒ Gdk::RGBA
This property modifies the color of strikeouts.
If not set, strikeouts will use the foreground color.
#strikethrough_rgba=(strikethrough_rgba) ⇒ Gdk::RGBA
This property modifies the color of strikeouts.
If not set, strikeouts will use the foreground color.
#strikethrough_rgba_set=(strikethrough_rgba_set) ⇒ Boolean
If the strikethrough-rgba property has been set.
#strikethrough_rgba_set? ⇒ Boolean
If the strikethrough-rgba property has been set.
#strikethrough_set=(strikethrough_set) ⇒ Boolean
#strikethrough_set? ⇒ Boolean
Returns strikethrough-set.
#style ⇒ Pango::Style
Font style as a PangoStyle, e.g. %PANGO_STYLE_ITALIC.
#style=(style) ⇒ Pango::Style
Font style as a PangoStyle, e.g. %PANGO_STYLE_ITALIC.
#style_set=(style_set) ⇒ Boolean
#style_set? ⇒ Boolean
Returns style-set.
#tabs ⇒ Pango::TabArray
Custom tabs for this text.
#tabs=(tabs) ⇒ Pango::TabArray
Custom tabs for this text.
#tabs_set=(tabs_set) ⇒ Boolean
#tabs_set? ⇒ Boolean
Returns tabs-set.
#text_transform ⇒ Pango::TextTransform
How to transform the text for display.
#text_transform=(text_transform) ⇒ Pango::TextTransform
How to transform the text for display.
#text_transform_set=(text_transform_set) ⇒ Boolean
#text_transform_set? ⇒ Boolean
Returns text-transform-set.
#underline ⇒ Pango::Underline
Style of underline for this text.
#underline=(underline) ⇒ Pango::Underline
Style of underline for this text.
#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.
#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.
#underline_rgba_set=(underline_rgba_set) ⇒ Boolean
If the underline-rgba property has been set.
#underline_rgba_set? ⇒ Boolean
If the underline-rgba property has been set.
#underline_set=(underline_set) ⇒ Boolean
#underline_set? ⇒ Boolean
Returns underline-set.
#variant ⇒ Pango::Variant
Font variant as a PangoVariant, e.g. %PANGO_VARIANT_SMALL_CAPS.
#variant=(variant) ⇒ Pango::Variant
Font variant as a PangoVariant, e.g. %PANGO_VARIANT_SMALL_CAPS.
#variant_set=(variant_set) ⇒ Boolean
#variant_set? ⇒ Boolean
Returns variant-set.
#weight ⇒ Integer
Font weight as an integer.
#weight_set=(weight_set) ⇒ Boolean
#weight_set? ⇒ Boolean
Returns weight-set.
#word=(word) ⇒ Boolean
Whether this tag represents a single word.
This affects line breaks and cursor movement.
#word? ⇒ Boolean
Whether this tag represents a single word.
This affects line breaks and cursor movement.
#word_set=(word_set) ⇒ Boolean
#word_set? ⇒ Boolean
Returns word-set.
#wrap_mode ⇒ Gtk::WrapMode
Whether to wrap lines never, at word boundaries, or at character boundaries.
#wrap_mode=(wrap_mode) ⇒ Gtk::WrapMode
Whether to wrap lines never, at word boundaries, or at character boundaries.
#wrap_mode_set=(wrap_mode_set) ⇒ Boolean
#wrap_mode_set? ⇒ Boolean
Returns wrap-mode-set.