GtkCharSelection

GtkCharSelection — Character selection dialog

Synopsis


#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);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkWindow
                                       +----GtkCharSelection

Implemented Interfaces

GtkCharSelection implements AtkImplementorIface and GtkBuildable.

Description

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.

Details

GtkCharSelection

typedef struct _GtkCharSelection GtkCharSelection;

The GtkCharSelection struct contains only private data. It should only be accessed through the functions described below.


gtk_char_selection_new ()

GtkWidget*          gtk_char_selection_new              (void);

Returns :


gtk_char_selection_set_selection ()

void                gtk_char_selection_set_selection    (GtkCharSelection *charsel,
                                                         gint selection);

Sets the selection for the GtkCharSelection widget.

charsel :

Char Selection widget.

selection :

a character index from the list. 0 is left,upper corner;256 is right, down corner.

gtk_char_selection_get_selection ()

gint                gtk_char_selection_get_selection    (GtkCharSelection *charsel);

Gets the current selection

charsel :

Char Selection widget.

Returns :

The current selection(a character from the list).0 is left,upper corner;256 is right, down corner.