GtkTextTag {RGtk2}R Documentation

GtkTextTag

Description

A tag that can be applied to text in a GtkTextBuffer

Methods and Functions

gtkTextTagNew(name = NULL)
gtkTextTagGetPriority(object)
gtkTextTagSetPriority(object, priority)
gtkTextTagEvent(object, event.object, event, iter)
gtkTextAttributesNew()
gtkTextAttributesCopy(object)
gtkTextAttributesCopyValues(object, dest)
gtkTextTag(name = NULL)

Hierarchy

GObject
   +----GtkTextTag

Detailed Description

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.

Structures

Convenient Construction

gtkTextTag is the equivalent of gtkTextTagNew.

Enums and Flags

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.

Signals

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.

Properties

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://library.gnome.org/devel//gtk/GtkTextTag.html


[Package RGtk2 version 2.20.21 Index]