Class: GtkSource::Mark
- Inherits:
-
Gtk::TextMark
- Object
- Gtk::TextMark
- GtkSource::Mark
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#category ⇒ String
The category of the
GtkSourceMark, classifies the mark and controls which pixbuf is used and with which priority it is drawn. -
#category=(category) ⇒ String
The category of the
GtkSourceMark, classifies the mark and controls which pixbuf is used and with which priority it is drawn. -
#initialize(name, category) ⇒ GtkSource::Mark
constructor
Creates a text mark.
-
#next(category) ⇒ GtkSource::Mark
Returns the next
GtkSourceMarkin the buffer or nil if the mark was not added to a buffer. -
#prev(category) ⇒ GtkSource::Mark
Returns the previous
GtkSourceMarkin the buffer or nil if the mark was not added to a buffer.
Methods inherited from Gtk::TextMark
#buffer, #deleted, #left_gravity, #left_gravity=, #left_gravity?, #name, #name=, #visible, #visible=
Constructor Details
#initialize(name, category) ⇒ GtkSource::Mark
Creates a text mark.
Add it to a buffer using [methodGtk.TextBuffer.add_mark]. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using [methodGtk.TextBuffer.get_mark]. Normally marks are created using the utility function [methodBuffer.create_source_mark].
Instance Method Details
#category ⇒ String
The category of the GtkSourceMark, classifies the mark and controls
which pixbuf is used and with which priority it is drawn.
#category=(category) ⇒ String
The category of the GtkSourceMark, classifies the mark and controls
which pixbuf is used and with which priority it is drawn.
#next(category) ⇒ GtkSource::Mark
Returns the next GtkSourceMark in the buffer or nil if the mark
was not added to a buffer.
If there is no next mark, nil will be returned.
If category is nil, looks for marks of any category.
#prev(category) ⇒ GtkSource::Mark
Returns the previous GtkSourceMark in the buffer or nil if the mark
was not added to a buffer.
If there is no previous mark, nil is returned.
If category is nil, looks for marks of any category