Gspell.TextBuffer

g GObject.Object GObject.Object Gspell.TextBuffer Gspell.TextBuffer GObject.Object->Gspell.TextBuffer

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_from_gtk_text_buffer (gtk_buffer)

get_buffer ()

get_spell_checker ()

set_spell_checker (spell_checker)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

buffer

Gtk.TextBuffer

r/w/co

spell-checker

Gspell.Checker

r/w

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gspell.TextBuffer(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gspell.TextBufferClass

classmethod get_from_gtk_text_buffer(gtk_buffer)
Parameters:

gtk_buffer (Gtk.TextBuffer) – a Gtk.TextBuffer.

Returns:

the Gspell.TextBuffer of gtk_buffer.

Return type:

Gspell.TextBuffer

Returns the Gspell.TextBuffer of gtk_buffer. The returned object is guaranteed to be the same for the lifetime of gtk_buffer.

get_buffer()
Returns:

the Gtk.TextBuffer of self.

Return type:

Gtk.TextBuffer

get_spell_checker()
Returns:

the Gspell.Checker if one has been set, or None.

Return type:

Gspell.Checker or None

set_spell_checker(spell_checker)
Parameters:

spell_checker (Gspell.Checker or None) – a Gspell.Checker, or None to unset the spell checker.

Sets a Gspell.Checker to a Gspell.TextBuffer. The self will own a reference to spell_checker, so you can release your reference to spell_checker if you no longer need it.

Property Details

Gspell.TextBuffer.props.buffer
Name:

buffer

Type:

Gtk.TextBuffer

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Gtk.TextBuffer.

Gspell.TextBuffer.props.spell_checker
Name:

spell-checker

Type:

Gspell.Checker

Default Value:

None

Flags:

READABLE, WRITABLE

The Gspell.Checker.