SourceMark

Constructors

this
this(GtkSourceMark* gtkSourceMark, bool ownedRef = false)

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 TextBuffer.addMark. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using TextBuffer.getMark. Normally marks are created using the utility function Source.bufferCreateSourceMark.

Members

Functions

getCategory
string getCategory()

Returns the mark category.

getSourceMarkStruct
GtkSourceMark* getSourceMarkStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

next
SourceMark next(string category)

Returns the next gsv.SourceMark 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 gsv.SourceMark in the buffer or NULL if the mark was not added to a buffer. If there is no previous mark, NULL is returned.

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(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

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 TextBuffer.deleteMark. See TextBuffer.addMark 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