Flags¶
Details¶
- class GtkSource.CompletionActivation(value)¶
Bases:
GObject.GFlags- NONE = 0¶
None.
- INTERACTIVE = 1¶
Interactive activation. By default, it occurs on each insertion in the
Gtk.TextBuffer. This can be blocked temporarily withGtkSource.Completion.block_interactive().
- USER_REQUESTED = 2¶
User requested activation. By default, it occurs when the user presses
Control + space.
- class GtkSource.DrawSpacesFlags(value)¶
Bases:
GObject.GFlagsGtkSource.DrawSpacesFlagsdetermine what kind of spaces whould be drawn. If none ofGtkSource.DrawSpacesFlags.LEADING,GtkSource.DrawSpacesFlags.TEXTorGtkSource.DrawSpacesFlags.TRAILINGis specified, whitespaces at any position in the line will be drawn (i.e. it has the same effect as specifying all of them).Deprecated since version 3.24: Use
GtkSource.SpaceTypeFlagsandGtkSource.SpaceLocationFlagsinstead.- SPACE = 1¶
whether the space character should be drawn.
- ALL = 127¶
wheter all kind of spaces should be drawn.
- LEADING = 16¶
whether leading whitespaces should be drawn.
- TAB = 2¶
whether the tab character should be drawn.
- TEXT = 32¶
whether whitespaces inside text should be drawn.
- NEWLINE = 4¶
whether the line breaks should be drawn. If the
GtkSource.Buffer:implicit-trailing-newlineproperty isTrue, a line break is also drawn at the end of the buffer.
- TRAILING = 64¶
whether trailing whitespaces should be drawn.
- NBSP = 8¶
whether the non-breaking whitespaces should be drawn.
- class GtkSource.FileSaverFlags(value)¶
Bases:
GObject.GFlagsFlags to define the behavior of a
GtkSource.FileSaver.New in version 3.14.
- NONE = 0¶
No flags.
- IGNORE_INVALID_CHARS = 1¶
Ignore invalid characters.
- IGNORE_MODIFICATION_TIME = 2¶
Save file despite external modifications.
- CREATE_BACKUP = 4¶
Create a backup before saving the file.
- class GtkSource.GutterRendererState(value)¶
Bases:
GObject.GFlags- NORMAL = 0¶
normal state
- CURSOR = 1¶
area in the renderer represents the line on which the insert cursor is currently positioned
- PRELIT = 2¶
the mouse pointer is currently over the activatable area of the renderer
- SELECTED = 4¶
area in the renderer represents a line in the buffer which contains part of the selection
- class GtkSource.SortFlags(value)¶
Bases:
GObject.GFlagsNew in version 3.18.
- NONE = 0¶
no flags specified
- CASE_SENSITIVE = 1¶
case sensitive sort
- REVERSE_ORDER = 2¶
sort in reverse order
- REMOVE_DUPLICATES = 4¶
remove duplicates
- class GtkSource.SpaceLocationFlags(value)¶
Bases:
GObject.GFlagsGtkSource.SpaceLocationFlagscontains flags for white space locations.If a line contains only white spaces (no text), the white spaces match both
GtkSource.SpaceLocationFlags.LEADINGandGtkSource.SpaceLocationFlags.TRAILING.New in version 3.24.
- NONE = 0¶
No flags.
- LEADING = 1¶
Leading white spaces on a line, i.e. the indentation.
- INSIDE_TEXT = 2¶
White spaces inside a line of text.
- TRAILING = 4¶
Trailing white spaces on a line.
- ALL = 7¶
White spaces anywhere.
- class GtkSource.SpaceTypeFlags(value)¶
Bases:
GObject.GFlagsGtkSource.SpaceTypeFlagscontains flags for white space types.New in version 3.24.
- NONE = 0¶
No flags.
- SPACE = 1¶
Space character.
- ALL = 15¶
All white spaces.
- TAB = 2¶
Tab character.
- NEWLINE = 4¶
Line break character. If the
GtkSource.Buffer:implicit-trailing-newlineproperty isTrue,GtkSource.SpaceDraweralso draws a line break at the end of the buffer.
- NBSP = 8¶
Non-breaking space character.