gtk.TextBuffer.TextBuffer Class Reference

Inheritance diagram for gtk.TextBuffer.TextBuffer:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkTextBuffergetTextBufferStruct ()
 this (GtkTextBuffer *gtkTextBuffer)
 Sets our main struct and passes it to the parent class.
void setText (char[] text)
 Deletes current contents of buffer, and inserts text instead.
void insert (TextIter iter, char[] text)
 Inserts len bytes of text at position iter.
void insertAtCursor (char[] text)
 Simply calls gtk_text_buffer_insert(), using the current cursor position as the insertion point.
int insertInteractive (TextIter iter, char[] text, int defaultEditable)
 Like gtk_text_buffer_insert(), but the insertion will not occur if iter is at a non-editable location in the buffer.
int insertInteractiveAtCursor (char[] text, int defaultEditable)
 Calls gtk_text_buffer_insert_interactive() at the cursor position.
void insertWithTags (TextIter iter, char[] text,...)
 Inserts text into buffer at iter, applying the list of tags to the newly-inserted text.
void insertWithTagsByName (TextIter iter, char[] text,...)
 Same as gtk_text_buffer_insert_with_tags(), but allows you to pass in tag names instead of tag objects.
TextTag createTag (char[] tagName, char[] propertyName, int propertyValue, char[] propertyName1, char[] propertyValue1)
 Create a new tag for this buffer.
TextTag createTag (char[] tagName, char[] propertyName, int propertyValue)
 Create a new tag for this buffer.
TextTag createTag (char[] tagName, char[] propertyName, double propertyValue)
 Create a new tag for this buffer.
TextTag createTag (char[] tagName, char[] propertyName, int propertyValue, char[] propertyName2, int propertyValue2)
 Create a new tag for this buffer.
TextTag createTag (char[] tagName, char[] propertyName, int propertyValue, char[] propertyName2, int propertyValue2, char[] propertyName3, int propertyValue3, char[] propertyName4, int propertyValue4, char[] propertyName5, int propertyValue5)
TextTag createTag (char[] tagName, char[] propertyName, char[] propertyValue)
 Create a new tag for this buffer.
TextTag createTag (char[] tagName, char[] propertyName, Bitmap propertyValue)
 Create a new tag for this buffer.
char[] getText ()
 Obtain the entire text.
TextTag createTag (char[] tagName, char[] propertyName, char[] propertyValue, char[] propertyName2, int propertyValue2)
 Create a new tag for this buffer.
void delegate (TextTag, TextIter, TextIter, TextBuffer)[] onApplyTagListeners
void addOnApplyTag (void delegate(TextTag, TextIter, TextIter, TextBuffer) dlg)
 extern (C) static void callBackApplyTag(GtkTextBuffer *textbufferStruct
void addOnBeginUserAction (void delegate(TextBuffer) dlg)
 extern (C) static void callBackBeginUserAction(GtkTextBuffer *textbufferStruct
void addOnChanged (void delegate(TextBuffer) dlg)
 extern (C) static void callBackChanged(GtkTextBuffer *textbufferStruct
void addOnDeleteRange (void delegate(TextIter, TextIter, TextBuffer) dlg)
 extern (C) static void callBackDeleteRange(GtkTextBuffer *textbufferStruct
void addOnEndUserAction (void delegate(TextBuffer) dlg)
 extern (C) static void callBackEndUserAction(GtkTextBuffer *textbufferStruct
void addOnInsertChildAnchor (void delegate(TextIter, TextChildAnchor, TextBuffer) dlg)
 extern (C) static void callBackInsertChildAnchor(GtkTextBuffer *textbufferStruct
void addOnInsertPixbuf (void delegate(TextIter, Pixbuf, TextBuffer) dlg)
 extern (C) static void callBackInsertPixbuf(GtkTextBuffer *textbufferStruct
void addOnInsertText (void delegate(TextIter, char[], gint, TextBuffer) dlg)
 extern (C) static void callBackInsertText(GtkTextBuffer *textbufferStruct
void addOnMarkDeleted (void delegate(TextMark, TextBuffer) dlg)
 extern (C) static void callBackMarkDeleted(GtkTextBuffer *textbufferStruct
void addOnMarkSet (void delegate(TextIter, TextMark, TextBuffer) dlg)
 extern (C) static void callBackMarkSet(GtkTextBuffer *textbufferStruct
void addOnModifiedChanged (void delegate(TextBuffer) dlg)
 extern (C) static void callBackModifiedChanged(GtkTextBuffer *textbufferStruct
void addOnRemoveTag (void delegate(TextTag, TextIter, TextIter, TextBuffer) dlg)
 extern (C) static void callBackRemoveTag(GtkTextBuffer *textbufferStruct

Public Attributes

int[char[]] connectedSignals
GtkTextTagarg1
GtkTextTag GtkTextIterarg2
GtkTextTag GtkTextIter GtkTextIterarg3
GtkTextIterarg1
GtkTextIter GtkTextIterarg2
GtkTextIterarg1
GtkTextIter GtkTextChildAnchorarg2
GtkTextIterarg1
GtkTextIter GdkPixbufarg2
GtkTextIterarg1
GtkTextIter gchararg2
GtkTextIter gchar gint arg3
GtkTextMarkarg1
GtkTextIterarg1
GtkTextIter GtkTextMarkarg2
GtkTextTagarg1
GtkTextTag GtkTextIterarg2
GtkTextTag GtkTextIter GtkTextIterarg3

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkTextBuffergtkTextBuffer
 the main Gtk struct

Constructor & Destructor Documentation

gtk.TextBuffer.TextBuffer.this ( GtkTextBuffer gtkTextBuffer  ) 

Sets our main struct and passes it to the parent class.


Member Function Documentation

void gtk.TextBuffer.TextBuffer.addOnApplyTag ( void delegate(TextTag, TextIter, TextIter, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnBeginUserAction ( void delegate(TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnChanged ( void delegate(TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnDeleteRange ( void delegate(TextIter, TextIter, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnEndUserAction ( void delegate(TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnInsertChildAnchor ( void delegate(TextIter, TextChildAnchor, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnInsertPixbuf ( void delegate(TextIter, Pixbuf, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnInsertText ( void delegate(TextIter, char[], gint, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnMarkDeleted ( void delegate(TextMark, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnMarkSet ( void delegate(TextIter, TextMark, TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnModifiedChanged ( void delegate(TextBuffer dlg  ) 

void gtk.TextBuffer.TextBuffer.addOnRemoveTag ( void delegate(TextTag, TextIter, TextIter, TextBuffer dlg  ) 

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
char[]  propertyValue,
char[]  propertyName2,
int  propertyValue2 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 
propertyName2 
propertyValue2 

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
Bitmap  propertyValue 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 
Returns:

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
char[]  propertyValue 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
int  propertyValue,
char[]  propertyName2,
int  propertyValue2,
char[]  propertyName3,
int  propertyValue3,
char[]  propertyName4,
int  propertyValue4,
char[]  propertyName5,
int  propertyValue5 
)

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
int  propertyValue,
char[]  propertyName2,
int  propertyValue2 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 
propertyName2 
propertyValue2 

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
double  propertyValue 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
int  propertyValue 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 

TextTag gtk.TextBuffer.TextBuffer.createTag ( char[]  tagName,
char[]  propertyName,
int  propertyValue,
char[]  propertyName1,
char[]  propertyValue1 
)

Create a new tag for this buffer.

Parameters:
tagName can be null for no name
propertyName 
propertyValue 

void gtk.TextBuffer.TextBuffer.delegate ( TextTag  ,
TextIter  ,
TextIter  ,
TextBuffer   
)

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

gtk.TextBuffer.TextBuffer.extern (  ) 

Reimplemented from gobject.ObjectG.ObjectG.

void* gtk.TextBuffer.TextBuffer.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.

char [] gtk.TextBuffer.TextBuffer.getText (  ) 

Obtain the entire text.

Returns:
The text char[]

GtkTextBuffer* gtk.TextBuffer.TextBuffer.getTextBufferStruct (  ) 

void gtk.TextBuffer.TextBuffer.insert ( TextIter  iter,
char[]  text 
)

Inserts len bytes of text at position iter.

If len is -1, text must be nul-terminated and will be inserted in its entirety. Emits the "insert_text" signal; insertion actually occurs in the default handler for the signal. iter is invalidated when insertion occurs (because the buffer contents change), but the default signal handler revalidates it to point to the end of the inserted text. buffer: a GtkTextBuffer iter: a position in the buffer text: UTF-8 format text to insert len: length of text in bytes, or -1

void gtk.TextBuffer.TextBuffer.insertAtCursor ( char[]  text  ) 

Simply calls gtk_text_buffer_insert(), using the current cursor position as the insertion point.

buffer: a GtkTextBuffer text: some text in UTF-8 format len: length of text, in bytes

int gtk.TextBuffer.TextBuffer.insertInteractive ( TextIter  iter,
char[]  text,
int  defaultEditable 
)

Like gtk_text_buffer_insert(), but the insertion will not occur if iter is at a non-editable location in the buffer.

Usually you want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive). default_editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of gtk_text_view_get_editable() is appropriate here. buffer: a GtkTextBuffer iter: a position in buffer text: some UTF-8 text len: length of text in bytes, or -1 default_editable: default editability of buffer Returns: whether text was actually inserted

int gtk.TextBuffer.TextBuffer.insertInteractiveAtCursor ( char[]  text,
int  defaultEditable 
)

Calls gtk_text_buffer_insert_interactive() at the cursor position.

default_editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of gtk_text_view_get_editable() is appropriate here. buffer: a GtkTextBuffer text: text in UTF-8 format len: length of text in bytes, or -1 default_editable: default editability of buffer Returns: whether text was actually inserted

void gtk.TextBuffer.TextBuffer.insertWithTags ( TextIter  iter,
char[]  text,
  ... 
)

Inserts text into buffer at iter, applying the list of tags to the newly-inserted text.

The last tag specified must be NULL to terminate the list. Equivalent to calling gtk_text_buffer_insert(), then gtk_text_buffer_apply_tag() on the inserted text; gtk_text_buffer_insert_with_tags() is just a convenience function. buffer: a GtkTextBuffer iter: an iterator in buffer text: UTF-8 text len: length of text, or -1 first_tag: first tag to apply to text ...: NULL-terminated list of tags to apply

void gtk.TextBuffer.TextBuffer.insertWithTagsByName ( TextIter  iter,
char[]  text,
  ... 
)

Same as gtk_text_buffer_insert_with_tags(), but allows you to pass in tag names instead of tag objects.

buffer: a GtkTextBuffer iter: position in buffer text: UTF-8 text len: length of text, or -1 first_tag_name: name of a tag to apply to text ...: more tag names

void gtk.TextBuffer.TextBuffer.setText ( char[]  text  ) 

Deletes current contents of buffer, and inserts text instead.

If len is -1, text must be nul-terminated. text must be valid UTF-8. buffer: a GtkTextBuffer text: UTF-8 text to insert len: length of text in bytes


Member Data Documentation

GtkTextTag* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextIter* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextMark* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextIter* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextIter* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextIter* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextIter* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextTag* gtk.TextBuffer.TextBuffer.arg1

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextTag GtkTextIter* gtk.TextBuffer.TextBuffer.arg2

GtkTextIter GtkTextMark* gtk.TextBuffer.TextBuffer.arg2

GtkTextIter gchar* gtk.TextBuffer.TextBuffer.arg2

GtkTextIter GdkPixbuf* gtk.TextBuffer.TextBuffer.arg2

GtkTextIter GtkTextChildAnchor* gtk.TextBuffer.TextBuffer.arg2

GtkTextIter GtkTextIter* gtk.TextBuffer.TextBuffer.arg2

GtkTextTag GtkTextIter* gtk.TextBuffer.TextBuffer.arg2

GtkTextTag GtkTextIter GtkTextIter* gtk.TextBuffer.TextBuffer.arg3

GtkTextIter gchar gint gtk.TextBuffer.TextBuffer.arg3

GtkTextTag GtkTextIter GtkTextIter* gtk.TextBuffer.TextBuffer.arg3

int [char[]] gtk.TextBuffer.TextBuffer.connectedSignals

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextBuffer* gtk.TextBuffer.TextBuffer.gtkTextBuffer [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo