GtkTextTag {RGtk2} | R Documentation |
A tag that can be applied to text in a GtkTextBuffer
gtkTextTagNew(name = NULL)
gtkTextTagGetPriority(object)
gtkTextTagSetPriority(object, priority)
gtkTextTagEvent(object, event.object, event, iter)
gtkTextAttributesNew()
gtkTextAttributesCopy(object)
gtkTextAttributesCopyValues(object, dest)
gtkTextTag(name = NULL)
GObject +----GtkTextTag
You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.
Tags should be in the GtkTextTagTable
for a given GtkTextBuffer
before using them with that buffer.
gtkTextBufferCreateTag
is the best way to create tags.
See gtk-demo
for numerous examples.
The "invisible" property was not implemented for GTK+ 2.0. It is working (with minor issues) since 2.8.
gtkTextTag
is the equivalent of gtkTextTagNew
.
GtkWrapMode
Describes a type of line wrapping.
none
do not wrap lines; just make the text area wider
char
wrap text, breaking lines anywhere the cursor can
appear (between characters, usually - if you want to
be technical, between graphemes, see
pangoGetLogAttrs
)
word
wrap text, breaking lines in between words
word_char
wrap text, breaking lines in between words, or if that is not enough, also between graphemes.
event(tag, object, event, iter, user.data)
The ::event signal is emitted when an event occurs on a region of the buffer marked with this tag.
tag
the GtkTextTag
on which the signal is emitted
object
the object the event was fired from (typically a GtkTextView
)
event
the event which triggered the signal
iter
a GtkTextIter
pointing at the location the event occured
user.data
user data set when the signal handler was connected.
Returns: [logical] TRUE
to stop other handlers from being invoked for the
event. FALSE
to propagate the event further.
Derived by RGtkGen from GTK+ documentation
http://library.gnome.org/devel//gtk/GtkTextTag.html