Spelling.TextBufferAdapter

g GObject.GInterface GObject.GInterface Gio.ActionGroup Gio.ActionGroup GObject.GInterface->Gio.ActionGroup GObject.Object GObject.Object Spelling.TextBufferAdapter Spelling.TextBufferAdapter GObject.Object->Spelling.TextBufferAdapter Gio.ActionGroup->Spelling.TextBufferAdapter

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Gio.ActionGroup (14)

Structs:

GObject.ObjectClass (5)

class

new (buffer, checker)

get_buffer ()

get_checker ()

get_enabled ()

get_language ()

get_menu_model ()

get_tag ()

invalidate_all ()

set_checker (checker)

set_enabled (enabled)

set_language (language)

Virtual Methods

Inherited:

GObject.Object (7), Gio.ActionGroup (14)

Properties

Name

Type

Flags

Short Description

buffer

GtkSource.Buffer

r/w/co

Buffer

checker

Spelling.Checker

r/w

Checker

enabled

bool

r/w/en

If spellcheck is enabled

language

str

r/w/en

The language code such as en_US

Signals

Inherited:

GObject.Object (1), Gio.ActionGroup (4)

Fields

Inherited:

GObject.Object (1), Gio.ActionGroup (4)

Class Details

class Spelling.TextBufferAdapter(**kwargs)
Bases:

GObject.Object, Gio.ActionGroup

Abstract:

No

Structure:

Spelling.TextBufferAdapterClass

classmethod new(buffer, checker)
Parameters:
Return type:

Spelling.TextBufferAdapter

get_buffer()
Returns:

a GtkSource.Buffer

Return type:

GtkSource.Buffer or None

Gets the underlying buffer for the adapter.

get_checker()
Returns:

a Spelling.Checker or None

Return type:

Spelling.Checker or None

Gets the checker used by the adapter.

get_enabled()
Return type:

bool

get_language()
Return type:

str

get_menu_model()
Returns:

a Gio.MenuModel

Return type:

Gio.MenuModel

Gets the menu model containing corrections

get_tag()
Returns:

a Gtk.TextTag or None

Return type:

Gtk.TextTag or None

Gets the tag used for potentially misspelled words.

invalidate_all()
set_checker(checker)
Parameters:

checker (Spelling.Checker) –

set_enabled(enabled)
Parameters:

enabled (bool) –

set_language(language)
Parameters:

language (str) –

Property Details

Spelling.TextBufferAdapter.props.buffer
Name:

buffer

Type:

GtkSource.Buffer

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Buffer

Spelling.TextBufferAdapter.props.checker
Name:

checker

Type:

Spelling.Checker

Default Value:

None

Flags:

READABLE, WRITABLE

Checker

Spelling.TextBufferAdapter.props.enabled
Name:

enabled

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If spellcheck is enabled

Spelling.TextBufferAdapter.props.language
Name:

language

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The language code such as en_US