Enums

Details

class GtkSource.BackgroundPatternType(value)

Bases: GObject.GEnum

New in version 3.16.

NONE = 0

no pattern

GRID = 1

grid pattern

class GtkSource.BracketMatchType(value)

Bases: GObject.GEnum

NONE = 0

there is no bracket to match.

OUT_OF_RANGE = 1

matching a bracket failed because the maximum range was reached.

NOT_FOUND = 2

a matching bracket was not found.

FOUND = 3

a matching bracket was found.

class GtkSource.ChangeCaseType(value)

Bases: GObject.GEnum

New in version 3.12.

LOWER = 0

change case to lowercase.

UPPER = 1

change case to uppercase.

TOGGLE = 2

toggle case of each character.

TITLE = 3

capitalize each word.

class GtkSource.CompletionError(value)

Bases: GObject.GEnum

An error code used with %GTK_SOURCE_COMPLETION_ERROR in a GLib.Error returned from a completion-related function.

classmethod quark()
Return type:

int

ALREADY_BOUND = 0

The GtkSource.CompletionProvider is already bound to the GtkSource.Completion object.

NOT_BOUND = 1

The GtkSource.CompletionProvider is not bound to the GtkSource.Completion object.

class GtkSource.CompressionType(value)

Bases: GObject.GEnum

New in version 3.14.

NONE = 0

plain text.

GZIP = 1

gzip compression.

class GtkSource.FileLoaderError(value)

Bases: GObject.GEnum

An error code used with the %GTK_SOURCE_FILE_LOADER_ERROR domain.

classmethod quark()
Return type:

int

TOO_BIG = 0

The file is too big.

ENCODING_AUTO_DETECTION_FAILED = 1

It is not possible to detect the encoding automatically.

CONVERSION_FALLBACK = 2

There was an encoding conversion error and it was needed to use a fallback character.

class GtkSource.FileSaverError(value)

Bases: GObject.GEnum

An error code used with the %GTK_SOURCE_FILE_SAVER_ERROR domain.

New in version 3.14.

classmethod quark()
Return type:

int

INVALID_CHARS = 0

The buffer contains invalid characters.

EXTERNALLY_MODIFIED = 1

The file is externally modified.

class GtkSource.GutterRendererAlignmentMode(value)

Bases: GObject.GEnum

The alignment mode of the renderer, when a cell spans multiple lines (due to text wrapping).

CELL = 0

The full cell.

FIRST = 1

The first line.

LAST = 2

The last line.

class GtkSource.NewlineType(value)

Bases: GObject.GEnum

New in version 3.14.

LF = 0

line feed, used on UNIX.

CR = 1

carriage return, used on Mac.

CR_LF = 2

carriage return followed by a line feed, used on Windows.

class GtkSource.SmartHomeEndType(value)

Bases: GObject.GEnum

DISABLED = 0

smart-home-end disabled.

BEFORE = 1

move to the first/last non-whitespace character on the first press of the HOME/END keys and to the beginning/end of the line on the second press.

AFTER = 2

move to the beginning/end of the line on the first press of the HOME/END keys and to the first/last non-whitespace character on the second press.

ALWAYS = 3

always move to the first/last non-whitespace character when the HOME/END keys are pressed.

class GtkSource.ViewGutterPosition(value)

Bases: GObject.GEnum

MARKS = -20

the gutter position of the marks renderer

LINES = -30

the gutter position of the lines renderer