GObject.Object
Gtk.TextTag
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkTextTag |
Class : | TextTag |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
accumulative_margin : gboolean
Whether the margins accumulate or override each other.
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). |
Gtk.TextTag | |
background : String
|
Gtk.TextTag | |
background_full_height : gboolean
|
Gtk.TextTag | |
background_full_height_set : gboolean
|
Gtk.TextTag | |
background_gdk : Gdk.Color
|
Gtk.TextTag | |
background_set : gboolean
|
Gtk.TextTag | |
direction : Gtk.TextDirection
|
Gtk.TextTag | |
editable : gboolean
|
Gtk.TextTag | |
editable_set : gboolean
|
Gtk.TextTag | |
family : String
|
Gtk.TextTag | |
family_set : gboolean
|
Gtk.TextTag | |
font : String
Font description as string, e.g.
Font description as string, e.g. \"Sans Italic 12\".
Note that the initial value of this property depends on the internals of PangoFontDescription. |
Gtk.TextTag | |
font_desc : Pango.FontDescription
|
Gtk.TextTag | |
foreground : String
|
Gtk.TextTag | |
foreground_gdk : Gdk.Color
|
Gtk.TextTag | |
foreground_set : gboolean
|
Gtk.TextTag | |
indent : gint32
|
Gtk.TextTag | |
indent_set : gboolean
|
Gtk.TextTag | |
invisible : gboolean
Whether this text is hidden.
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. |
Gtk.TextTag | |
invisible_set : gboolean
|
Gtk.TextTag | |
justification : Gtk.Justification
|
Gtk.TextTag | |
justification_set : gboolean
|
Gtk.TextTag | |
language : String
The language this text is in, as an ISO code.
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(). |
Gtk.TextTag | |
language_set : gboolean
|
Gtk.TextTag | |
left_margin : gint32
|
Gtk.TextTag | |
left_margin_set : gboolean
|
Gtk.TextTag | |
name : String
|
Gtk.TextTag | |
paragraph_background : String
The paragraph background color as a string.
The paragraph background color as a string.
|
Gtk.TextTag | |
paragraph_background_gdk : Gdk.Color
The paragraph background color as a as a (possibly unallocated)
GdkColor. The paragraph background color as a as a (possibly unallocated)
GdkColor. |
Gtk.TextTag | |
paragraph_background_set : gboolean
|
Gtk.TextTag | |
parent_instance : GObject.Object
read only
|
Gtk.TextTag | |
pixels_above_lines : gint32
|
Gtk.TextTag | |
pixels_above_lines_set : gboolean
|
Gtk.TextTag | |
pixels_below_lines : gint32
|
Gtk.TextTag | |
pixels_below_lines_set : gboolean
|
Gtk.TextTag | |
pixels_inside_wrap : gint32
|
Gtk.TextTag | |
pixels_inside_wrap_set : gboolean
|
Gtk.TextTag | |
priv : Gtk.TextTagPrivate
read only
|
Gtk.TextTag | |
right_margin : gint32
|
Gtk.TextTag | |
right_margin_set : gboolean
|
Gtk.TextTag | |
rise : gint32
|
Gtk.TextTag | |
rise_set : gboolean
|
Gtk.TextTag | |
scale : gdouble
|
Gtk.TextTag | |
scale_set : gboolean
|
Gtk.TextTag | |
size : gint32
|
Gtk.TextTag | |
size_points : gdouble
|
Gtk.TextTag | |
size_set : gboolean
|
Gtk.TextTag | |
stretch : Pango.Stretch
|
Gtk.TextTag | |
stretch_set : gboolean
|
Gtk.TextTag | |
strikethrough : gboolean
|
Gtk.TextTag | |
strikethrough_set : gboolean
|
Gtk.TextTag | |
style : Pango.Style
|
Gtk.TextTag | |
style_set : gboolean
|
Gtk.TextTag | |
tabs : Pango.TabArray
|
Gtk.TextTag | |
tabs_set : gboolean
|
Gtk.TextTag | |
underline : Pango.Underline
|
Gtk.TextTag | |
underline_set : gboolean
|
Gtk.TextTag | |
variant : Pango.Variant
|
Gtk.TextTag | |
variant_set : gboolean
|
Gtk.TextTag | |
weight : gint32
|
Gtk.TextTag | |
weight_set : gboolean
|
Gtk.TextTag | |
wrap_mode : Gtk.WrapMode
|
Gtk.TextTag | |
wrap_mode_set : gboolean
|
Gtk.TextTag |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TextTag
(Object properties)
Create a new Gtk.TextTag
Create a new Gtk.TextTag
|
||
Create a new Gtk.TextTag
Create a new Gtk.TextTag
|
||
Emits the "event" signal on the GtkTextTag.
Emits the "event" signal on the GtkTextTag.
|
Gtk.TextTag | |
get_priority
()
:
gint32
Get the tag priority.
Get the tag priority.
|
Gtk.TextTag | |
set_priority
(gint32 priority)
:
none
Sets the priority of a GtkTextTag.
Sets the priority of a GtkTextTag. Valid priorities are
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.
|
Gtk.TextTag |
Event | Defined By | |
---|---|---|
The ::event signal is emitted when an event occurs on a region of the
buffer marked with this tag.
The ::event signal is emitted when an event occurs on a region of the
buffer marked with this tag. event. FALSE to propagate the event further.
|
Gtk.TextTag |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.TextBuffer
Signal |
The ::apply-tag signal is emitted to apply a tag to a
range of text in a GtkTextBuffer. |
Gtk.TextBuffer
Signal |
The ::remove-tag signal is emitted to remove all occurrences of tag from
a range of text in a GtkTextBuffer. |
Gtk.TextBuffer
Method |
Emits the "apply-tag" signal on buffer.
|
Gtk.TextBuffer
Method |
Emits the "remove-tag" signal.
|
Gtk.TextIter
Method |
Moves backward to the next toggle (on or off) of the
GtkTextTag tag, or to the next toggle of any tag if returns FALSE, otherwise TRUE. |
Gtk.TextIter
Method |
Returns TRUE if tag is toggled on at exactly this point.
|
Gtk.TextIter
Method |
Returns TRUE if tag is toggled off at exactly this point.
|
Gtk.TextIter
Method |
Moves forward to the next toggle (on or off) of the
GtkTextTag tag, or to the next toggle of any tag if returns FALSE, otherwise TRUE. |
Gtk.TextIter
Method |
Returns TRUE if iter is within a range tagged with tag.
|
Gtk.TextIter
Method |
This is equivalent to (gtk_text_iter_begins_tag () ||
gtk_text_iter_ends_tag ()), i.e. |
Gtk.TextTagTable
Signal |
tag_added
(TextTagTable self, TextTag tag)
:
none
|
Gtk.TextTagTable
Signal |
|
Gtk.TextTagTable
Signal |
tag_removed
(TextTagTable self, TextTag tag)
:
none
|
Gtk.TextTagTable
Method |
add
(TextTag tag)
:
none
Add a tag to the table.
|
Gtk.TextTagTable
Method |
lookup
(String name)
:
Gtk.TextTag
Look up a named tag.
|
Gtk.TextTagTable
Method |
remove
(TextTag tag)
:
none
Remove a tag from the table.
|