Mark

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(string name, string category)

Creates a text mark. Add it to a buffer using gtk.text_buffer.TextBuffer.addMark. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using gtk.text_buffer.TextBuffer.getMark. Normally marks are created using the utility function gtksource.buffer.Buffer.createSourceMark.

Members

Functions

getCategory
string getCategory()

Returns the mark category.

next
gtksource.mark.Mark 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
gtksource.mark.Mark 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.

self
Mark self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]
category
string category [@property getter]

Get category property.

Static functions

_getGType
GType _getGType()
builder
MarkGidBuilder builder()

Get builder for gtksource.mark.Mark

Inherited Members

From TextMark

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
TextMark self()

Returns this, for use in with statements.

builder
TextMarkGidBuilder builder()

Get builder for gtk.text_mark.TextMark

leftGravity
bool leftGravity [@property getter]

Get leftGravity property.

name
string name [@property getter]

Get name property.

getBuffer
gtk.text_buffer.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.TextBuffer.deleteMark. See gtk.text_buffer.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.