GtkSource.Style

g GObject.Object GObject.Object GtkSource.Style GtkSource.Style GObject.Object->GtkSource.Style

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

apply (tag)

copy ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GtkSource.Style(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GtkSource.StyleClass

apply(tag)
Parameters:

tag (Gtk.TextTag) – a Gtk.TextTag to apply styles to.

This function modifies the Gtk.TextTag properties that are related to the GtkSource.Style attributes. Other Gtk.TextTag properties are left untouched.

If self is non-None, applies self to tag.

If self is None, the related *-set properties of Gtk.TextTag are set to False.

New in version 3.22.

copy()
Returns:

copy of self, call GObject.Object.unref() when you are done with it.

Return type:

GtkSource.Style

Creates a copy of self, that is a new GtkSource.Style instance which has the same attributes set.

New in version 2.0.