Top |
gpointer | (*GDupFunc) () |
void | gnt_util_get_text_bound () |
int | gnt_util_onscreen_width () |
const char * | gnt_util_onscreen_width_to_pointer () |
char * | gnt_util_onscreen_fit_string () |
GHashTable * | g_hash_table_duplicate () |
gboolean | gnt_boolean_handled_accumulator () |
GntWidget * | gnt_widget_bindings_view () |
void | gnt_util_parse_widgets () |
gboolean | gnt_util_parse_xhtml_to_textview () |
void | gnt_util_set_trigger_widget () |
void gnt_util_get_text_bound (const char *text
,int *width
,int *height
);
Compute the width and height required to view the text on the screen.
int gnt_util_onscreen_width (const char *start
,const char *end
);
Get the onscreen width of a string, or a substring.
const char * gnt_util_onscreen_width_to_pointer (const char *str
,int len
,int *w
);
Computes and returns the string after a specific number of onscreen characters.
char * gnt_util_onscreen_fit_string (const char *string
,int maxw
);
Inserts newlines in 'string' where necessary so that its onscreen width is no more than 'maxw'.
GHashTable * g_hash_table_duplicate (GHashTable *src
,GHashFunc hash
,GEqualFunc equal
,GDestroyNotify key_d
,GDestroyNotify value_d
,GDupFunc key_dup
,GDupFunc value_dup
);
Duplicate the contents of a hastable.
src |
The source hashtable. |
|
hash |
The hash-function to use. |
[scope call] |
equal |
The hash-equal function to use. |
|
key_d |
The key-destroy function to use. |
|
value_d |
The value-destroy function to use. |
|
key_dup |
The function to use to duplicate the key. |
[scope call] |
value_dup |
The function to use to duplicate the value. |
[scope call] |
gboolean gnt_boolean_handled_accumulator (GSignalInvocationHint *ihint
,GValue *return_accu
,const GValue *handler_return
,gpointer dummy
);
gnt_boolean_handled_accumulator
has been deprecated since version 2.14.0 and should not be used in newly-written code.
Use g_signal_accumulator_true_handled()
instead.
To be used with g_signal_new. Look in the key_pressed signal-definition in gntwidget.c for usage.
GntWidget *
gnt_widget_bindings_view (GntWidget *widget
);
gnt_widget_bindings_view
has been deprecated since version 2.14.0 and should not be used in newly-written code.
Use gnt_bindable_bindings_view()
instead.
Get a helpful display about the bindings of a widget.
void gnt_util_parse_widgets (const char *string
,int num
,...
);
Parse widgets from an XML description. For example,
GntWidget *win, *button; gnt_util_parse_widgets("\ <vwindow id='0' fill='0' align='2'> \ <label>This is a test</label> \ <button id='1'>OK</button> \ </vwindow>", 2, &win, &button);
gboolean gnt_util_parse_xhtml_to_textview (const char *string
,GntTextView *tv
);
Parse an XHTML string and add it in a GntTextView with appropriate text flags.
Since: 2.2.0