Class: Gtk::TextTag
- Inherits:
-
Object
- Object
- Gtk::TextTag
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#accumulative_margin=(accumulative_margin) ⇒ TrueClass
Whether the margins accumulate or override each other.
-
#accumulative_margin? ⇒ TrueClass
Whether the margins accumulate or override each other.
-
#background=(background) ⇒ String
Background.
- #background_full_height=(background_full_height) ⇒ TrueClass
-
#background_full_height? ⇒ TrueClass
Background-full-height.
- #background_full_height_set=(background_full_height_set) ⇒ TrueClass
-
#background_full_height_set? ⇒ TrueClass
Background-full-height-set.
-
#background_gdk ⇒ Gdk::Color
Background color as a Gdk::Color.
-
#background_gdk=(background_gdk) ⇒ Gdk::Color
Background color as a Gdk::Color.
-
#background_rgba ⇒ Gdk::RGBA
Background color as a Gdk::RGBA.
-
#background_rgba=(background_rgba) ⇒ Gdk::RGBA
Background color as a Gdk::RGBA.
- #background_set=(background_set) ⇒ TrueClass
-
#background_set? ⇒ TrueClass
Background-set.
-
#changed(size_changed) ⇒ nil
Emits the Gtk::TextTagTable::tag-changed signal on the #GtkTextTagTable where the tag is included.
-
#direction ⇒ Gtk::TextDirection
Direction.
- #direction=(direction) ⇒ Gtk::TextDirection
- #editable=(editable) ⇒ TrueClass
-
#editable? ⇒ TrueClass
Editable.
- #editable_set=(editable_set) ⇒ TrueClass
-
#editable_set? ⇒ TrueClass
Editable-set.
-
#event(event_object, event, iter) ⇒ TrueClass
Emits the “event” signal on the Gtk::TextTag.
-
#fallback=(fallback) ⇒ TrueClass
Whether font fallback is enabled.
-
#fallback? ⇒ TrueClass
Whether font fallback is enabled.
- #fallback_set=(fallback_set) ⇒ TrueClass
-
#fallback_set? ⇒ TrueClass
Fallback-set.
-
#family ⇒ String
Family.
- #family=(family) ⇒ String
- #family_set=(family_set) ⇒ TrueClass
-
#family_set? ⇒ TrueClass
Family-set.
-
#font ⇒ String
Font description as string, e.g.
-
#font=(font) ⇒ String
Font description as string, e.g.
-
#font_desc ⇒ Pango::FontDescription
Font-desc.
- #font_desc=(font_desc) ⇒ Pango::FontDescription
-
#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) ⇒ TrueClass
-
#font_features_set? ⇒ TrueClass
Font-features-set.
-
#foreground=(foreground) ⇒ String
Foreground.
-
#foreground_gdk ⇒ Gdk::Color
Foreground color as a Gdk::Color.
-
#foreground_gdk=(foreground_gdk) ⇒ Gdk::Color
Foreground color as a Gdk::Color.
-
#foreground_rgba ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA.
-
#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA.
- #foreground_set=(foreground_set) ⇒ TrueClass
-
#foreground_set? ⇒ TrueClass
Foreground-set.
-
#indent ⇒ Integer
Indent.
- #indent=(indent) ⇒ Integer
- #indent_set=(indent_set) ⇒ TrueClass
-
#indent_set? ⇒ TrueClass
Indent-set.
-
#invisible=(invisible) ⇒ TrueClass
Whether this text is hidden.
-
#invisible? ⇒ TrueClass
Whether this text is hidden.
- #invisible_set=(invisible_set) ⇒ TrueClass
-
#invisible_set? ⇒ TrueClass
Invisible-set.
-
#justification ⇒ Gtk::Justification
Justification.
- #justification=(justification) ⇒ Gtk::Justification
- #justification_set=(justification_set) ⇒ TrueClass
-
#justification_set? ⇒ TrueClass
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) ⇒ TrueClass
-
#language_set? ⇒ TrueClass
Language-set.
-
#left_margin ⇒ Integer
Left-margin.
- #left_margin=(left_margin) ⇒ Integer
- #left_margin_set=(left_margin_set) ⇒ TrueClass
-
#left_margin_set? ⇒ TrueClass
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) ⇒ TrueClass
-
#letter_spacing_set? ⇒ TrueClass
Letter-spacing-set.
-
#name ⇒ String
Name.
- #name=(name) ⇒ String
-
#new(name) ⇒ Gtk::TextTag
Creates a Gtk::TextTag.
-
#paragraph_background=(paragraph_background) ⇒ String
The paragraph background color as a string.
-
#paragraph_background_gdk ⇒ Gdk::Color
The paragraph background color as a Gdk::Color.
-
#paragraph_background_gdk=(paragraph_background_gdk) ⇒ Gdk::Color
The paragraph background color as a Gdk::Color.
-
#paragraph_background_rgba ⇒ Gdk::RGBA
The paragraph background color as a Gdk::RGBA.
-
#paragraph_background_rgba=(paragraph_background_rgba) ⇒ Gdk::RGBA
The paragraph background color as a Gdk::RGBA.
- #paragraph_background_set=(paragraph_background_set) ⇒ TrueClass
-
#paragraph_background_set? ⇒ TrueClass
Paragraph-background-set.
-
#pixels_above_lines ⇒ Integer
Pixels-above-lines.
- #pixels_above_lines=(pixels_above_lines) ⇒ Integer
- #pixels_above_lines_set=(pixels_above_lines_set) ⇒ TrueClass
-
#pixels_above_lines_set? ⇒ TrueClass
Pixels-above-lines-set.
-
#pixels_below_lines ⇒ Integer
Pixels-below-lines.
- #pixels_below_lines=(pixels_below_lines) ⇒ Integer
- #pixels_below_lines_set=(pixels_below_lines_set) ⇒ TrueClass
-
#pixels_below_lines_set? ⇒ TrueClass
Pixels-below-lines-set.
-
#pixels_inside_wrap ⇒ Integer
Pixels-inside-wrap.
- #pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer
- #pixels_inside_wrap_set=(pixels_inside_wrap_set) ⇒ TrueClass
-
#pixels_inside_wrap_set? ⇒ TrueClass
Pixels-inside-wrap-set.
-
#priority ⇒ Integer
Get the tag priority.
-
#priority=(priority) ⇒ nil
Sets the priority of a Gtk::TextTag.
-
#right_margin ⇒ Integer
Right-margin.
- #right_margin=(right_margin) ⇒ Integer
- #right_margin_set=(right_margin_set) ⇒ TrueClass
-
#right_margin_set? ⇒ TrueClass
Right-margin-set.
-
#rise ⇒ Integer
Rise.
- #rise=(rise) ⇒ Integer
- #rise_set=(rise_set) ⇒ TrueClass
-
#rise_set? ⇒ TrueClass
Rise-set.
-
#scale ⇒ Float
Scale.
- #scale=(scale) ⇒ Float
- #scale_set=(scale_set) ⇒ TrueClass
-
#scale_set? ⇒ TrueClass
Scale-set.
-
#size ⇒ Integer
Size.
- #size=(size) ⇒ Integer
-
#size_points ⇒ Float
Size-points.
- #size_points=(size_points) ⇒ Float
- #size_set=(size_set) ⇒ TrueClass
-
#size_set? ⇒ TrueClass
Size-set.
-
#stretch ⇒ Pango::Stretch
Stretch.
- #stretch=(stretch) ⇒ Pango::Stretch
- #stretch_set=(stretch_set) ⇒ TrueClass
-
#stretch_set? ⇒ TrueClass
Stretch-set.
- #strikethrough=(strikethrough) ⇒ TrueClass
-
#strikethrough? ⇒ TrueClass
Strikethrough.
-
#strikethrough_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) ⇒ TrueClass
If the Gtk::TextTag:strikethrough-rgba property has been set.
-
#strikethrough_rgba_set? ⇒ TrueClass
If the Gtk::TextTag:strikethrough-rgba property has been set.
- #strikethrough_set=(strikethrough_set) ⇒ TrueClass
-
#strikethrough_set? ⇒ TrueClass
Strikethrough-set.
-
#style ⇒ Pango::Style
Style.
- #style=(style) ⇒ Pango::Style
- #style_set=(style_set) ⇒ TrueClass
-
#style_set? ⇒ TrueClass
Style-set.
-
#tabs ⇒ Pango::TabArray
Tabs.
- #tabs=(tabs) ⇒ Pango::TabArray
- #tabs_set=(tabs_set) ⇒ TrueClass
-
#tabs_set? ⇒ TrueClass
Tabs-set.
-
#underline ⇒ Pango::Underline
Underline.
- #underline=(underline) ⇒ Pango::Underline
-
#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) ⇒ TrueClass
If the Gtk::TextTag:underline-rgba property has been set.
-
#underline_rgba_set? ⇒ TrueClass
If the Gtk::TextTag:underline-rgba property has been set.
- #underline_set=(underline_set) ⇒ TrueClass
-
#underline_set? ⇒ TrueClass
Underline-set.
-
#variant ⇒ Pango::Variant
Variant.
- #variant=(variant) ⇒ Pango::Variant
- #variant_set=(variant_set) ⇒ TrueClass
-
#variant_set? ⇒ TrueClass
Variant-set.
-
#weight ⇒ Integer
Weight.
- #weight=(weight) ⇒ Integer
- #weight_set=(weight_set) ⇒ TrueClass
-
#weight_set? ⇒ TrueClass
Weight-set.
-
#wrap_mode ⇒ Gtk::WrapMode
Wrap-mode.
- #wrap_mode=(wrap_mode) ⇒ Gtk::WrapMode
- #wrap_mode_set=(wrap_mode_set) ⇒ TrueClass
-
#wrap_mode_set? ⇒ TrueClass
Wrap-mode-set.
Instance Method Details
#accumulative_margin=(accumulative_margin) ⇒ TrueClass
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? ⇒ TrueClass
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).
#background=(background) ⇒ String
Returns background.
#background_full_height=(background_full_height) ⇒ TrueClass
#background_full_height? ⇒ TrueClass
Returns background-full-height.
#background_full_height_set=(background_full_height_set) ⇒ TrueClass
#background_full_height_set? ⇒ TrueClass
Returns background-full-height-set.
#background_gdk ⇒ Gdk::Color
Background color as a Gdk::Color.
#background_gdk=(background_gdk) ⇒ Gdk::Color
Background color as a Gdk::Color.
#background_rgba ⇒ Gdk::RGBA
Background color as a Gdk::RGBA.
#background_rgba=(background_rgba) ⇒ Gdk::RGBA
Background color as a Gdk::RGBA.
#background_set=(background_set) ⇒ TrueClass
#background_set? ⇒ TrueClass
Returns background-set.
#changed(size_changed) ⇒ nil
Emits the Gtk::TextTagTable::tag-changed signal on the #GtkTextTagTable where the tag is included.
The signal is already emitted when setting a Gtk::TextTag property. This function is useful for a Gtk::TextTag subclass.
#direction ⇒ Gtk::TextDirection
Returns direction.
#direction=(direction) ⇒ Gtk::TextDirection
#editable=(editable) ⇒ TrueClass
#editable? ⇒ TrueClass
Returns editable.
#editable_set=(editable_set) ⇒ TrueClass
#editable_set? ⇒ TrueClass
Returns editable-set.
#event(event_object, event, iter) ⇒ TrueClass
Emits the “event” signal on the Gtk::TextTag.
#fallback=(fallback) ⇒ TrueClass
Whether font fallback is enabled.
When set to true, other fonts will be substituted where the current font is missing glyphs.
#fallback? ⇒ TrueClass
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) ⇒ TrueClass
#fallback_set? ⇒ TrueClass
Returns fallback-set.
#family ⇒ String
Returns family.
#family=(family) ⇒ String
#family_set=(family_set) ⇒ TrueClass
#family_set? ⇒ TrueClass
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 Pango::FontDescription.
#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 Pango::FontDescription.
#font_desc ⇒ Pango::FontDescription
Returns font-desc.
#font_desc=(font_desc) ⇒ Pango::FontDescription
#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) ⇒ TrueClass
#font_features_set? ⇒ TrueClass
Returns font-features-set.
#foreground=(foreground) ⇒ String
Returns foreground.
#foreground_gdk ⇒ Gdk::Color
Foreground color as a Gdk::Color.
#foreground_gdk=(foreground_gdk) ⇒ Gdk::Color
Foreground color as a Gdk::Color.
#foreground_rgba ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA.
#foreground_rgba=(foreground_rgba) ⇒ Gdk::RGBA
Foreground color as a Gdk::RGBA.
#foreground_set=(foreground_set) ⇒ TrueClass
#foreground_set? ⇒ TrueClass
Returns foreground-set.
#indent ⇒ Integer
Returns indent.
#indent=(indent) ⇒ Integer
#indent_set=(indent_set) ⇒ TrueClass
#indent_set? ⇒ TrueClass
Returns indent-set.
#invisible=(invisible) ⇒ TrueClass
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? ⇒ TrueClass
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) ⇒ TrueClass
#invisible_set? ⇒ TrueClass
Returns invisible-set.
#justification ⇒ Gtk::Justification
Returns justification.
#justification=(justification) ⇒ Gtk::Justification
#justification_set=(justification_set) ⇒ TrueClass
#justification_set? ⇒ TrueClass
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 gtk_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 gtk_get_default_language().
#language_set=(language_set) ⇒ TrueClass
#language_set? ⇒ TrueClass
Returns language-set.
#left_margin ⇒ Integer
Returns left-margin.
#left_margin=(left_margin) ⇒ Integer
#left_margin_set=(left_margin_set) ⇒ TrueClass
#left_margin_set? ⇒ TrueClass
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) ⇒ TrueClass
#letter_spacing_set? ⇒ TrueClass
Returns letter-spacing-set.
#name ⇒ String
Returns name.
#name=(name) ⇒ String
#new(name) ⇒ Gtk::TextTag
Creates a Gtk::TextTag. Configure the tag using object arguments, i.e. using g_object_set().
#paragraph_background=(paragraph_background) ⇒ String
The paragraph background color as a string.
#paragraph_background_gdk ⇒ Gdk::Color
The paragraph background color as a Gdk::Color.
#paragraph_background_gdk=(paragraph_background_gdk) ⇒ Gdk::Color
The paragraph background color as a Gdk::Color.
#paragraph_background_rgba ⇒ Gdk::RGBA
The paragraph background color as a Gdk::RGBA.
#paragraph_background_rgba=(paragraph_background_rgba) ⇒ Gdk::RGBA
The paragraph background color as a Gdk::RGBA.
#paragraph_background_set=(paragraph_background_set) ⇒ TrueClass
#paragraph_background_set? ⇒ TrueClass
Returns paragraph-background-set.
#pixels_above_lines ⇒ Integer
Returns pixels-above-lines.
#pixels_above_lines=(pixels_above_lines) ⇒ Integer
#pixels_above_lines_set=(pixels_above_lines_set) ⇒ TrueClass
#pixels_above_lines_set? ⇒ TrueClass
Returns pixels-above-lines-set.
#pixels_below_lines ⇒ Integer
Returns pixels-below-lines.
#pixels_below_lines=(pixels_below_lines) ⇒ Integer
#pixels_below_lines_set=(pixels_below_lines_set) ⇒ TrueClass
#pixels_below_lines_set? ⇒ TrueClass
Returns pixels-below-lines-set.
#pixels_inside_wrap ⇒ Integer
Returns pixels-inside-wrap.
#pixels_inside_wrap=(pixels_inside_wrap) ⇒ Integer
#pixels_inside_wrap_set=(pixels_inside_wrap_set) ⇒ TrueClass
#pixels_inside_wrap_set? ⇒ TrueClass
Returns pixels-inside-wrap-set.
#priority ⇒ Integer
Get the tag priority.
#priority=(priority) ⇒ nil
Sets the priority of a Gtk::TextTag. Valid priorities start at 0 and go to one less than gtk_text_tag_table_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 gtk_text_buffer_create_tag(), which adds the tag to the buffer’s table automatically.
#right_margin ⇒ Integer
Returns right-margin.
#right_margin=(right_margin) ⇒ Integer
#right_margin_set=(right_margin_set) ⇒ TrueClass
#right_margin_set? ⇒ TrueClass
Returns right-margin-set.
#rise ⇒ Integer
Returns rise.
#rise=(rise) ⇒ Integer
#rise_set=(rise_set) ⇒ TrueClass
#rise_set? ⇒ TrueClass
Returns rise-set.
#scale ⇒ Float
Returns scale.
#scale=(scale) ⇒ Float
#scale_set=(scale_set) ⇒ TrueClass
#scale_set? ⇒ TrueClass
Returns scale-set.
#size ⇒ Integer
Returns size.
#size=(size) ⇒ Integer
#size_points ⇒ Float
Returns size-points.
#size_points=(size_points) ⇒ Float
#size_set=(size_set) ⇒ TrueClass
#size_set? ⇒ TrueClass
Returns size-set.
#stretch ⇒ Pango::Stretch
Returns stretch.
#stretch=(stretch) ⇒ Pango::Stretch
#stretch_set=(stretch_set) ⇒ TrueClass
#stretch_set? ⇒ TrueClass
Returns stretch-set.
#strikethrough=(strikethrough) ⇒ TrueClass
#strikethrough? ⇒ TrueClass
Returns strikethrough.
#strikethrough_rgba ⇒ Gdk::RGBA
This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.
#strikethrough_rgba=(strikethrough_rgba) ⇒ Gdk::RGBA
This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.
#strikethrough_rgba_set=(strikethrough_rgba_set) ⇒ TrueClass
If the Gtk::TextTag:strikethrough-rgba property has been set.
#strikethrough_rgba_set? ⇒ TrueClass
If the Gtk::TextTag:strikethrough-rgba property has been set.
#strikethrough_set=(strikethrough_set) ⇒ TrueClass
#strikethrough_set? ⇒ TrueClass
Returns strikethrough-set.
#style ⇒ Pango::Style
Returns style.
#style=(style) ⇒ Pango::Style
#style_set=(style_set) ⇒ TrueClass
#style_set? ⇒ TrueClass
Returns style-set.
#tabs ⇒ Pango::TabArray
Returns tabs.
#tabs=(tabs) ⇒ Pango::TabArray
#tabs_set=(tabs_set) ⇒ TrueClass
#tabs_set? ⇒ TrueClass
Returns tabs-set.
#underline ⇒ Pango::Underline
Returns underline.
#underline=(underline) ⇒ Pango::Underline
#underline_rgba ⇒ Gdk::RGBA
This property modifies the color of underlines. If not set, underlines will use the forground color.
If Gtk::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 forground color.
If Gtk::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) ⇒ TrueClass
If the Gtk::TextTag:underline-rgba property has been set.
#underline_rgba_set? ⇒ TrueClass
If the Gtk::TextTag:underline-rgba property has been set.
#underline_set=(underline_set) ⇒ TrueClass
#underline_set? ⇒ TrueClass
Returns underline-set.
#variant ⇒ Pango::Variant
Returns variant.
#variant=(variant) ⇒ Pango::Variant
#variant_set=(variant_set) ⇒ TrueClass
#variant_set? ⇒ TrueClass
Returns variant-set.
#weight ⇒ Integer
Returns weight.
#weight=(weight) ⇒ Integer
#weight_set=(weight_set) ⇒ TrueClass
#weight_set? ⇒ TrueClass
Returns weight-set.
#wrap_mode ⇒ Gtk::WrapMode
Returns wrap-mode.
#wrap_mode=(wrap_mode) ⇒ Gtk::WrapMode
#wrap_mode_set=(wrap_mode_set) ⇒ TrueClass
#wrap_mode_set? ⇒ TrueClass
Returns wrap-mode-set.