![]() |
![]() |
![]() |
GtkExtra Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#include <gtkextra.h> GtkCharSelection; GtkWidget* gtk_char_selection_new (void); void gtk_char_selection_set_selection (GtkCharSelection *charsel, gint selection); gint gtk_char_selection_get_selection (GtkCharSelection *charsel);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkCharSelection
Char selection is a widget which contains all the characters in a font. Connecting a callback to the ok button of the widget you get the selected char.
typedef struct _GtkCharSelection GtkCharSelection;
The GtkCharSelection struct contains only private data. It should only be accessed through the functions described below.
void gtk_char_selection_set_selection (GtkCharSelection *charsel, gint selection);
Sets the selection for the GtkCharSelection widget.
|
Char Selection widget. |
|
a character index from the list. 0 is left,upper corner;256 is right, down corner. |
gint gtk_char_selection_get_selection (GtkCharSelection *charsel);
Gets the current selection
|
Char Selection widget. |
Returns : |
The current selection(a character from the list).0 is left,upper corner;256 is right, down corner. |