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 with GtkSource.Completion.block_interactive().

USER_REQUESTED = 2

User requested activation. By default, it occurs when the user presses

Control + space.

class GtkSource.FileSaverFlags(value)

Bases: GObject.GFlags

Flags 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.GFlags

New 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.GFlags

GtkSource.SpaceLocationFlags contains flags for white space locations.

If a line contains only white spaces (no text), the white spaces match both GtkSource.SpaceLocationFlags.LEADING and GtkSource.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.GFlags

GtkSource.SpaceTypeFlags contains 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-newline property is True, GtkSource.SpaceDrawer also draws a line break at the end of the buffer.

NBSP = 8

Non-breaking space character.