GtkSource.Mark¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
The mark category  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class GtkSource.Mark(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new(name, category)¶
 - Parameters:
 name (
strorNone) – Name of theGtkSource.MarkorNonecategory (
str) – is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the “bookmark” category, or all the marks representing a compilation error could belong to “error” category).
- Returns:
 a new
GtkSource.Markthat can be added usingGtk.TextBuffer.add_mark().- Return type:
 
Creates a text mark. Add it to a buffer using
Gtk.TextBuffer.add_mark(). If name isNone, the mark is anonymous; otherwise, the mark can be retrieved by name usingGtk.TextBuffer.get_mark(). Normally marks are created using the utility functionGtkSource.Buffer.create_source_mark().New in version 2.2.
- get_category()¶
 - Returns:
 the category of the
GtkSource.Mark.- Return type:
 
Returns the mark category.
New in version 2.2.
- next(category)¶
 - Parameters:
 category (
strorNone) – a string specifying the mark category, orNone.- Returns:
 the next
GtkSource.Mark, orNone.- Return type:
 
Returns the next
GtkSource.Markin the buffer orNoneif the mark was not added to a buffer. If there is no next mark,Nonewill be returned.If category is
None, looks for marks of any category.New in version 2.2.
- prev(category)¶
 - Parameters:
 category (
str) – a string specifying the mark category, orNone.- Returns:
 the previous
GtkSource.Mark, orNone.- Return type:
 
Returns the previous
GtkSource.Markin the buffer orNoneif the mark was not added to a buffer. If there is no previous mark,Noneis returned.If category is
None, looks for marks of any categoryNew in version 2.2.
Property Details¶
- GtkSource.Mark.props.category¶
 - Name:
 category- Type:
 - Default Value:
 - Flags:
 
The category of the
GtkSource.Mark, classifies the mark and controls which pixbuf is used and with which priority it is drawn.