gtk.TextMark.TextMark Class Reference

Inheritance diagram for gtk.TextMark.TextMark:

gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkTextMarkgetTextMarkStruct ()
 this (GtkTextMark *gtkTextMark)
 Sets our main struct and passes it to the parent class.
void setVisible (int setting)
 Sets the visibility of mark; the insertion point is normally visible, i.e.
int getVisible ()
 Returns TRUE if the mark is visible (i.e.
int getDeleted ()
 Returns TRUE if the mark has been removed from its buffer with gtk_text_buffer_delete_mark().
char[] getName ()
 Returns the mark name; returns NULL for anonymous marks.
TextBuffer getBuffer ()
 Gets the buffer this mark is located inside, or NULL if the mark is deleted.
int getLeftGravity ()
 Determines whether the mark has left gravity.

Protected Member Functions

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

Protected Attributes

GtkTextMarkgtkTextMark
 the main Gtk struct

Constructor & Destructor Documentation

gtk.TextMark.TextMark.this ( GtkTextMark gtkTextMark  ) 

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


Member Function Documentation

TextBuffer gtk.TextMark.TextMark.getBuffer (  ) 

Gets the buffer this mark is located inside, or NULL if the mark is deleted.

mark: a GtkTextMark Returns: the mark's GtkTextBuffer

int gtk.TextMark.TextMark.getDeleted (  ) 

Returns TRUE if the mark has been removed from its buffer with gtk_text_buffer_delete_mark().

Marks can't be used once deleted. mark: a GtkTextMark Returns: whether the mark is deleted

int gtk.TextMark.TextMark.getLeftGravity (  ) 

Determines whether the mark has left gravity.

mark: a GtkTextMark Returns: TRUE if the mark has left gravity, FALSE otherwise [3] "left" and "right" here refer to logical direction (left is the toward the start of the buffer); in some languages such as Hebrew the logically-leftmost text is not actually on the left when displayed.

char [] gtk.TextMark.TextMark.getName (  ) 

Returns the mark name; returns NULL for anonymous marks.

mark: a GtkTextMark Returns: mark name

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

the main Gtk struct as a void*

Reimplemented from gobject.ObjectG.ObjectG.

GtkTextMark* gtk.TextMark.TextMark.getTextMarkStruct (  ) 

int gtk.TextMark.TextMark.getVisible (  ) 

Returns TRUE if the mark is visible (i.e.

a cursor is displayed for it) mark: a GtkTextMark Returns: TRUE if visible

void gtk.TextMark.TextMark.setVisible ( int  setting  ) 

Sets the visibility of mark; the insertion point is normally visible, i.e.

you can see it as a vertical bar. Also, the text widget uses a visible mark to indicate where a drop will occur when dragging-and-dropping text. Most other marks are not visible. Marks are not visible by default. mark: a GtkTextMark setting: visibility of mark


Member Data Documentation

GtkTextMark* gtk.TextMark.TextMark.gtkTextMark [protected]

the main Gtk struct


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