| GNOME Dictionary Library Reference Manual |
|---|
GdictDefboxGdictDefbox — |
#include <gdict-defbox.h>
GdictDefbox;
GtkWidget* gdict_defbox_new (void);
GtkWidget* gdict_defbox_new_with_context (GdictContext *context);
void gdict_defbox_set_context (GdictDefbox *defbox,
GdictContext *context);
GdictContext* gdict_defbox_get_context (GdictDefbox *defbox);
void gdict_defbox_set_database (GdictDefbox *defbox,
const gchar *database);
const gchar* gdict_defbox_get_database (GdictDefbox *defbox);
gchar* gdict_defbox_get_text (GdictDefbox *defbox,
gsize *length);
void gdict_defbox_select_all (GdictDefbox *defbox);
void gdict_defbox_copy_to_clipboard (GdictDefbox *defbox,
GtkClipboard *clipboard);
void gdict_defbox_clear (GdictDefbox *defbox);
void gdict_defbox_lookup (GdictDefbox *defbox,
const gchar *word);
gint gdict_defbox_count_definitions (GdictDefbox *defbox);
void gdict_defbox_jump_to_definition (GdictDefbox *defbox,
gint number);
gboolean gdict_defbox_get_show_find (GdictDefbox *defbox);
void gdict_defbox_set_show_find (GdictDefbox *defbox,
gboolean show_find);
void gdict_defbox_find_next (GdictDefbox *defbox);
void gdict_defbox_find_previous (GdictDefbox *defbox);
GtkWidget* gdict_defbox_new (void);
Creates a new GdictDefbox widget. Use this widget to search for
a word using a GdictContext, and to show the resulting definition(s).
You must set a GdictContext for this widget using gdict_defbox_set_context().
| Returns : | a new GdictDefbox widget. |
Since 1.0
GtkWidget* gdict_defbox_new_with_context (GdictContext *context);
Creates a new GdictDefbox widget. Use this widget to search for
a word using context, and to show the resulting definition.
context : |
a GdictContext |
| Returns : | a new GdictDefbox widget. |
Since 1.0
void gdict_defbox_set_context (GdictDefbox *defbox, GdictContext *context);
Sets context as the GdictContext to be used by defbox in order
to retrieve the definitions of a word.
defbox : |
a GdictDefbox |
context : |
a GdictContext |
Since 1.0
GdictContext* gdict_defbox_get_context (GdictDefbox *defbox);
Gets the GdictContext used by defbox.
defbox : |
a GdictDefbox |
| Returns : | a GdictContext. |
Since 1.0
void gdict_defbox_set_database (GdictDefbox *defbox, const gchar *database);
Sets database as the database used by the GdictContext bound to defbox to
query for word definitions.
defbox : |
a GdictDefbox |
database : |
a database |
Since 1.0
const gchar* gdict_defbox_get_database (GdictDefbox *defbox);
Gets the database used by defbox. See gdict_defbox_set_database().
defbox : |
a GdictDefbox |
| Returns : | the name of a database. The string is owned by the GdictDefbox and should not be modified or freed. |
Since 1.0
gchar* gdict_defbox_get_text (GdictDefbox *defbox, gsize *length);
Gets the full contents of defbox.
defbox : |
a GdictDefbox |
length : |
return location for the text length or NULL
|
| Returns : | a newly allocated string containing the text displayed by
defbox.
|
Since 1.0
void gdict_defbox_select_all (GdictDefbox *defbox);
Selects all the text displayed by defbox
defbox : |
a GdictDefbox |
Since 1.0
void gdict_defbox_copy_to_clipboard (GdictDefbox *defbox, GtkClipboard *clipboard);
Copies the selected text inside defbox into clipboard.
defbox : |
a GdictDefbox |
clipboard : |
a GtkClipboard |
Since 1.0
void gdict_defbox_clear (GdictDefbox *defbox);
Clears the buffer of defbox
defbox : |
a GdictDefbox
|
Since 1.0
void gdict_defbox_lookup (GdictDefbox *defbox, const gchar *word);
Searches word inside the dictionary sources using the GdictContext
provided when creating defbox or set using gdict_defbox_set_context().
defbox : |
a GdictDefbox |
word : |
the word to look up |
Since 1.0
gint gdict_defbox_count_definitions (GdictDefbox *defbox);
Gets the number of definitions displayed by defbox
defbox : |
a GdictDefbox |
| Returns : | the number of definitions. |
Since 1.0
void gdict_defbox_jump_to_definition (GdictDefbox *defbox, gint number);
Scrolls to the definition identified by number. If number is -1,
jumps to the last definition.
defbox : |
a GdictDefbox |
number : |
the definition to jump to |
Since 1.0
gboolean gdict_defbox_get_show_find (GdictDefbox *defbox);
FIXME
defbox : |
a GdictDefbox |
| Returns : | FIXME |
Since 1.0
void gdict_defbox_set_show_find (GdictDefbox *defbox, gboolean show_find);
Whether defbox should show the find pane.
defbox : |
a GdictDefbox |
show_find : |
TRUE to show the find pane
|
Since 1.0
void gdict_defbox_find_next (GdictDefbox *defbox);
Emits the "find-next" signal.
defbox : |
a GdictDefbox |
Since 1.0
void gdict_defbox_find_previous (GdictDefbox *defbox);
Emits the "find-previous" signal.
defbox : |
a GdictDefbox |
Since 1.0
| << GdictEntry |