Class: Gtk::TextTag
- Inherits:
-
Object
- Object
- Gtk::TextTag
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/text-tag.rb,
lib/gtk3/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
Whether the
allow-breaksproperty is set. -
#allow_breaks_set? ⇒ Boolean
Whether the
allow-breaksproperty is 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
Whether the
background-full-heightproperty is set. -
#background_full_height_set? ⇒ Boolean
Whether the
background-full-heightproperty is 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
Whether the
backgroundproperty is set. -
#background_set? ⇒ Boolean
Whether the
backgroundproperty is 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
Whether the
editableproperty is set. -
#editable_set? ⇒ Boolean
Whether the
editableproperty is set. -
#fallback=(fallback) ⇒ Boolean
Whether font fallback is enabled.
-
#fallback? ⇒ Boolean
Whether font fallback is enabled.
-
#fallback_set=(fallback_set) ⇒ Boolean
Whether the
fallbackproperty is set. -
#fallback_set? ⇒ Boolean
Whether the
fallbackproperty is 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
Whether the
familyproperty is set. -
#family_set? ⇒ Boolean
Whether the
familyproperty is 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
Whether the
font-featuresproperty is set. -
#font_features_set? ⇒ Boolean
Whether the
font-featuresproperty is 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
Whether the
foregroundproperty is set. -
#foreground_set? ⇒ Boolean
Whether the
foregroundproperty is 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
Whether the
indentproperty is set. -
#indent_set? ⇒ Boolean
Whether the
indentproperty is 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
Whether the
insert-hyphensproperty is set. -
#insert_hyphens_set? ⇒ Boolean
Whether the
insert-hyphensproperty is set. -
#invisible=(invisible) ⇒ Boolean
Whether this text is hidden.
-
#invisible? ⇒ Boolean
Whether this text is hidden.
-
#invisible_set=(invisible_set) ⇒ Boolean
Whether the
invisibleproperty is set. -
#invisible_set? ⇒ Boolean
Whether the
invisibleproperty is set. -
#justification ⇒ Gtk::Justification
Left, right, or center justification.
-
#justification=(justification) ⇒ Gtk::Justification
Left, right, or center justification.
-
#justification_set=(justification_set) ⇒ Boolean
Whether the
justificationproperty is set. -
#justification_set? ⇒ Boolean
Whether the
justificationproperty is 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
Whether the
languageproperty is set. -
#language_set? ⇒ Boolean
Whether the
languageproperty is 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
Whether the
left-marginproperty is set. -
#left_margin_set? ⇒ Boolean
Whether the
left-marginproperty is 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
Whether the
letter-spacingproperty is set. -
#letter_spacing_set? ⇒ Boolean
Whether the
letter-spacingproperty is 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
Whether the
line-heightproperty is set. -
#line_height_set? ⇒ Boolean
Whether the
line-heightproperty is 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
Whether the
overline-rgbaproperty is set. -
#overline_rgba_set? ⇒ Boolean
Whether the
overline-rgbaproperty is set. -
#overline_set=(overline_set) ⇒ Boolean
Whether the
overlineproperty is set. -
#overline_set? ⇒ Boolean
Whether the
overlineproperty is 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
Whether the
paragraph-backgroundproperty is set. -
#paragraph_background_set? ⇒ Boolean
Whether the
paragraph-backgroundproperty is 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
Whether the
pixels-above-linesproperty is set. -
#pixels_above_lines_set? ⇒ Boolean
Whether the
pixels-above-linesproperty is 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
Whether the
pixels-below-linesproperty is set. -
#pixels_below_lines_set? ⇒ Boolean
Whether the
pixels-below-linesproperty is 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
Whether the
pixels-inside-wrapproperty is set. -
#pixels_inside_wrap_set? ⇒ Boolean
Whether the
pixels-inside-wrapproperty is 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
Whether the
right-marginproperty is set. -
#right_margin_set? ⇒ Boolean
Whether the
right-marginproperty is 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
Whether the
riseproperty is set. -
#rise_set? ⇒ Boolean
Whether the
riseproperty is set. -
#scale ⇒ Float
Font size as a scale factor relative to the default font size.
-
#scale_set=(scale_set) ⇒ Boolean
Whether the
scaleproperty is set. -
#scale_set? ⇒ Boolean
Whether the
scaleproperty is 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
Whether the
sentenceproperty is set. -
#sentence_set? ⇒ Boolean
Whether the
sentenceproperty is 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
Whether the
show-spacesproperty is set. -
#show_spaces_set? ⇒ Boolean
Whether the
show-spacesproperty is 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
Whether the
sizeproperty is set. -
#size_set? ⇒ Boolean
Whether the
sizeproperty is 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
Whether the
stretchproperty is set. -
#stretch_set? ⇒ Boolean
Whether the
stretchproperty is 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
Whether the
strikethroughproperty is set. -
#strikethrough_set? ⇒ Boolean
Whether the
strikethroughproperty is 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
Whether the
styleproperty is set. -
#style_set? ⇒ Boolean
Whether the
styleproperty is set. -
#tabs ⇒ Pango::TabArray
Custom tabs for this text.
-
#tabs=(tabs) ⇒ Pango::TabArray
Custom tabs for this text.
-
#tabs_set=(tabs_set) ⇒ Boolean
Whether the
tabsproperty is set. -
#tabs_set? ⇒ Boolean
Whether the
tabsproperty is 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
Whether the
text-transformproperty is set. -
#text_transform_set? ⇒ Boolean
Whether the
text-transformproperty is 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
Whether the
underlineproperty is set. -
#underline_set? ⇒ Boolean
Whether the
underlineproperty is 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
Whether the
variantproperty is set. -
#variant_set? ⇒ Boolean
Whether the
variantproperty is set. -
#weight ⇒ Integer
Font weight as an integer.
-
#weight_set=(weight_set) ⇒ Boolean
Whether the
weightproperty is set. -
#weight_set? ⇒ Boolean
Whether the
weightproperty is 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
Whether the
wordproperty is set. -
#word_set? ⇒ Boolean
Whether the
wordproperty is 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
Whether the
wrap-modeproperty is set. -
#wrap_mode_set? ⇒ Boolean
Whether the
wrap-modeproperty is 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
Whether the allow-breaks property is set.
#allow_breaks_set? ⇒ Boolean
Whether the allow-breaks property is 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
Whether the background-full-height property is set.
#background_full_height_set? ⇒ Boolean
Whether the background-full-height property is 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
Whether the background property is set.
#background_set? ⇒ Boolean
Whether the background property is 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
Whether the editable property is set.
#editable_set? ⇒ Boolean
Whether the editable property is 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
Whether the fallback property is set.
#fallback_set? ⇒ Boolean
Whether the fallback property is 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
Whether the family property is set.
#family_set? ⇒ Boolean
Whether the family property is 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
Whether the font-features property is set.
#font_features_set? ⇒ Boolean
Whether the font-features property is 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
Whether the foreground property is set.
#foreground_set? ⇒ Boolean
Whether the foreground property is 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
Whether the indent property is set.
#indent_set? ⇒ Boolean
Whether the indent property is 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
Whether the insert-hyphens property is set.
#insert_hyphens_set? ⇒ Boolean
Whether the insert-hyphens property is 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
Whether the invisible property is set.
#invisible_set? ⇒ Boolean
Whether the invisible property is set.
#justification ⇒ Gtk::Justification
Left, right, or center justification.
#justification=(justification) ⇒ Gtk::Justification
Left, right, or center justification.
#justification_set=(justification_set) ⇒ Boolean
Whether the justification property is set.
#justification_set? ⇒ Boolean
Whether the justification property is 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
Whether the language property is set.
#language_set? ⇒ Boolean
Whether the language property is 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
Whether the left-margin property is set.
#left_margin_set? ⇒ Boolean
Whether the left-margin property is 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
Whether the letter-spacing property is set.
#letter_spacing_set? ⇒ Boolean
Whether the letter-spacing property is 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
Whether the line-height property is set.
#line_height_set? ⇒ Boolean
Whether the line-height property is 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
Whether the overline-rgba property is set.
#overline_rgba_set? ⇒ Boolean
Whether the overline-rgba property is set.
#overline_set=(overline_set) ⇒ Boolean
Whether the overline property is set.
#overline_set? ⇒ Boolean
Whether the overline property is 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
Whether the paragraph-background property is set.
#paragraph_background_set? ⇒ Boolean
Whether the paragraph-background property is 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
Whether the pixels-above-lines property is set.
#pixels_above_lines_set? ⇒ Boolean
Whether the pixels-above-lines property is 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
Whether the pixels-below-lines property is set.
#pixels_below_lines_set? ⇒ Boolean
Whether the pixels-below-lines property is 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
Whether the pixels-inside-wrap property is set.
#pixels_inside_wrap_set? ⇒ Boolean
Whether the pixels-inside-wrap property is 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
Whether the right-margin property is set.
#right_margin_set? ⇒ Boolean
Whether the right-margin property is 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
Whether the rise property is set.
#rise_set? ⇒ Boolean
Whether the rise property is 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
Whether the scale property is set.
#scale_set? ⇒ Boolean
Whether the scale property is 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
Whether the sentence property is set.
#sentence_set? ⇒ Boolean
Whether the sentence property is set.
#set_scale(scale) ⇒ Object Also known as: scale=
31 32 33 34 35 36 37 |
# File 'lib/gtk3/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/gtk3/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/gtk3/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/gtk3/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
Whether the show-spaces property is set.
#show_spaces_set? ⇒ Boolean
Whether the show-spaces property is 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
Whether the size property is set.
#size_set? ⇒ Boolean
Whether the size property is 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
Whether the stretch property is set.
#stretch_set? ⇒ Boolean
Whether the stretch property is 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
Whether the strikethrough property is set.
#strikethrough_set? ⇒ Boolean
Whether the strikethrough property is 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
Whether the style property is set.
#style_set? ⇒ Boolean
Whether the style property is set.
#tabs ⇒ Pango::TabArray
Custom tabs for this text.
#tabs=(tabs) ⇒ Pango::TabArray
Custom tabs for this text.
#tabs_set=(tabs_set) ⇒ Boolean
Whether the tabs property is set.
#tabs_set? ⇒ Boolean
Whether the tabs property is 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
Whether the text-transform property is set.
#text_transform_set? ⇒ Boolean
Whether the text-transform property is 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
Whether the underline property is set.
#underline_set? ⇒ Boolean
Whether the underline property is 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
Whether the variant property is set.
#variant_set? ⇒ Boolean
Whether the variant property is set.
#weight ⇒ Integer
Font weight as an integer.
#weight_set=(weight_set) ⇒ Boolean
Whether the weight property is set.
#weight_set? ⇒ Boolean
Whether the weight property is 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
Whether the word property is set.
#word_set? ⇒ Boolean
Whether the word property is 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
Whether the wrap-mode property is set.
#wrap_mode_set? ⇒ Boolean
Whether the wrap-mode property is set.