GtkSource.Tag

g GObject.Object GObject.Object Gtk.TextTag Gtk.TextTag GObject.Object->Gtk.TextTag GtkSource.Tag GtkSource.Tag Gtk.TextTag->GtkSource.Tag

Subclasses:

None

Methods

Inherited:

Gtk.TextTag (5), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name)

Virtual Methods

Inherited:

Gtk.TextTag (1), GObject.Object (7)

Properties

Inherited:

Gtk.TextTag (74)

Name

Type

Flags

Short Description

draw-spaces

bool

r/w

draw-spaces-set

bool

r/w

Signals

Inherited:

Gtk.TextTag (1), GObject.Object (1)

Fields

Inherited:

Gtk.TextTag (1), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.TextTag

r

Class Details

class GtkSource.Tag(**kwargs)
Bases:

Gtk.TextTag

Abstract:

No

Structure:

GtkSource.TagClass

classmethod new(name)
Parameters:

name (str or None) – tag name, or None.

Returns:

a new GtkSource.Tag.

Return type:

Gtk.TextTag

Creates a GtkSource.Tag. Configure the tag using object arguments, i.e. using g_object_set().

For usual cases, gtk_source_buffer_create_source_tag() is more convenient to use.

New in version 3.20.

Property Details

GtkSource.Tag.props.draw_spaces
Name:

draw-spaces

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether to draw white spaces. This property takes precedence over the value defined by the GtkSource.SpaceDrawer's GtkSource.SpaceDrawer :matrix property (only where the tag is applied).

Setting this property also changes GtkSource.Tag :draw-spaces-set to True.

New in version 3.20.

GtkSource.Tag.props.draw_spaces_set
Name:

draw-spaces-set

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the GtkSource.Tag :draw-spaces property is set and must be taken into account.

New in version 3.20.