GtkSource.StyleScheme

g GObject.Object GObject.Object GtkSource.StyleScheme GtkSource.StyleScheme GObject.Object->GtkSource.StyleScheme

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_description ()

get_filename ()

get_id ()

get_kind ()

get_name ()

get_style (style_id)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GtkSource.StyleScheme(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GtkSource.StyleSchemeClass

get_description()
Returns:

the self description, a human-readable (translated) string to present to the user.

Return type:

str or None

New in version 2.0.

get_filename()
Returns:

self file name if the scheme was created parsing a style scheme file, or None in the other cases.

Return type:

str or None

New in version 2.0.

get_id()
Returns:

the self ID, a unique string used to identify the style scheme in a GtkSource.StyleSchemeManager.

Return type:

str

New in version 2.0.

get_kind()
Returns:

the kind of self.

Return type:

GtkSource.StyleSchemeKind

New in version 299.2.

get_name()
Returns:

the self name, a human-readable (translated) string to present to the user.

Return type:

str

New in version 2.0.

get_style(style_id)
Parameters:

style_id (str) – ID of the style to retrieve.

Returns:

the GtkSource.Style which corresponds to style_id in the self, or None if not found.

Return type:

GtkSource.Style or None

New in version 2.0.