GtkSpell.Checker – gtkspell3-3.0 Reference Manual
Packages
gtkspell3-3.0
GtkSpell
Checker
decode_language_codes
decode_language_code
get_from_text_view
get_language_list
Checker
add_to_dictionary
attach
check_word
detach
get_language
get_suggestions
get_suggestions_menu
ignore_word
recheck_all
set_language
language_changed
Checker
Object Hierarchy:
Description:
[
CCode
( type_id =
"gtk_spell_checker_get_type ()"
) ]
public
class
Checker
:
InitiallyUnowned
The
Checker
struct contains only private fields.
Namespace:
GtkSpell
Package:
gtkspell3-3.0
Content:
Properties:
public
bool
decode_language_codes
{
get
;
set
; }
Static methods:
public
static
string
decode_language_code
(
string
lang)
Translates the language code to a human readable format (i.
public
static
unowned
Checker
get_from_text_view
(
TextView
view)
Retrieves the
Checker
object attached to a text view.
public
static
List
<
string
>
get_language_list
()
Requests the list of available languages from the enchant broker.
Creation methods:
public
Checker
()
Create a new
Checker
object.
Methods:
public
void
add_to_dictionary
(
string
word)
Add the specified word to the user dictionary.
public
bool
attach
(
TextView
view)
Attach
Checker
object to
view
.
public
bool
check_word
(
string
word)
Check the specified word.
public
void
detach
()
Detaches this
Checker
from its
TextView
.
public
unowned
string
get_language
()
Fetches the current language.
public
List
<
string
>
get_suggestions
(
string
word)
Retreives a list of spelling suggestions for the specified word.
public
Widget
get_suggestions_menu
(
TextIter
iter)
Retrieves a submenu of replacement spellings, or NULL if the word at
iter
is not misspelt.
public
void
ignore_word
(
string
word)
Add the specified word to the user ignore list.
public
void
recheck_all
()
Recheck the spelling in the entire buffer.
public
bool
set_language
(
string
? lang)
throws
Error
Set the language on
this
to
lang
, possibily returning an error in
throws
.
Signals:
public
virtual
signal
void
language_changed
(
string
new_lang)
The
language_changed
signal is emitted when the user selects a new spelling language from the context menu.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref