Flags

Details

class GtkSource.FileSaverFlags(value)

Bases: GObject.GFlags

Flags to define the behavior of a [flags`FileSaverFlags`].

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.SortFlags(value)

Bases: GObject.GFlags

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.

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.

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.