SourceMark

Constructors

this
this(GtkSourceMark* gtkSourceMark, bool ownedRef)

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

this
this(string name, string category)

Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark(). If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using gtk_text_buffer_get_mark(). Normally marks are created using the utility function gtk_source_buffer_create_source_mark().

Members

Functions

getCategory
string getCategory()

Returns the mark category.

getSourceMarkStruct
GtkSourceMark* getSourceMarkStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

next
SourceMark next(string category)

Returns the next #GtkSourceMark in the buffer or %NULL if the mark was not added to a buffer. If there is no next mark, %NULL will be returned.

prev
SourceMark prev(string category)

Returns the previous #GtkSourceMark in the buffer or %NULL if the mark was not added to a buffer. If there is no previous mark, %NULL is returned.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getType
GType getType()

Variables

gtkSourceMark
GtkSourceMark* gtkSourceMark;

the main Gtk struct

Inherited Members

From TextMark

gtkTextMark
GtkTextMark* gtkTextMark;

the main Gtk struct

getTextMarkStruct
GtkTextMark* getTextMarkStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()
getBuffer
TextBuffer getBuffer()

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

getDeleted
bool getDeleted()

Returns %TRUE if the mark has been removed from its buffer with gtk_text_buffer_delete_mark(). See gtk_text_buffer_add_mark() for a way to add it to a buffer again.

getLeftGravity
bool getLeftGravity()

Determines whether the mark has left gravity.

getName
string getName()

Returns the mark name; returns NULL for anonymous marks.

getVisible
bool getVisible()

Returns %TRUE if the mark is visible (i.e. a cursor is displayed for it).

setVisible
void setVisible(bool 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.

Meta