GtkSource.StyleSchemeChooser

g GObject.GInterface GObject.GInterface GtkSource.StyleSchemeChooser GtkSource.StyleSchemeChooser GObject.GInterface->GtkSource.StyleSchemeChooser

Implementations:

GtkSource.StyleSchemeChooserButton, GtkSource.StyleSchemeChooserWidget

Methods

get_style_scheme ()

set_style_scheme (scheme)

Virtual Methods

do_get_style_scheme ()

do_set_style_scheme (scheme)

Properties

Name

Type

Flags

Short Description

style-scheme

GtkSource.StyleScheme

r/w

Current style scheme

Signals

None

Fields

None

Class Details

class GtkSource.StyleSchemeChooser
Bases:

GObject.GInterface

Structure:

GtkSource.StyleSchemeChooserInterface

Interface implemented by widgets for choosing style schemes.

GtkSourceStyleSchemeChooser is an interface that is implemented by widgets for choosing style schemes.

In GtkSource.View, the main widgets that implement this interface are [class`StyleSchemeChooserWidget`] and [class`StyleSchemeChooserButton`].

get_style_scheme()
Returns:

the currently-selected scheme.

Return type:

GtkSource.StyleScheme

Gets the currently-selected scheme.

set_style_scheme(scheme)
Parameters:

scheme (GtkSource.StyleScheme) – a GtkSource.StyleScheme

Sets the scheme.

do_get_style_scheme() virtual
Returns:

the currently-selected scheme.

Return type:

GtkSource.StyleScheme

Gets the currently-selected scheme.

do_set_style_scheme(scheme) virtual
Parameters:

scheme (GtkSource.StyleScheme) – a GtkSource.StyleScheme

Sets the scheme.

Property Details

GtkSource.StyleSchemeChooser.props.style_scheme
Name:

style-scheme

Type:

GtkSource.StyleScheme

Default Value:

None

Flags:

READABLE, WRITABLE

Contains the currently selected style scheme.

The property can be set to change the current selection programmatically.