![]() |
![]() |
![]() |
GOK - Gnome Onscreen Keyboard | ![]() |
---|---|---|---|---|
Top | Description |
#define GOK_TYPE_BUTTON #define GOK_BUTTON_CLASS (k) GType gok_button_get_type (void
); GtkWidget * gok_button_new_with_label (const gchar *pText
,GokImagePlacementPolicy align
); gint gok_button_enter_notify (GtkWidget *widget
,GdkEventCrossing *event
); gint gok_button_leave_notify (GtkWidget *widget
,GdkEventCrossing *event
); void gok_button_state_changed (GtkWidget *widget
,GtkStateType state
,gpointer user_data
);
#define GOK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST (k, GOK_TYPE_BUTTON, GokButtonClass)
|
GtkWidget * gok_button_new_with_label (const gchar *pText
,GokImagePlacementPolicy align
);
Creates a new GOK button with a label.
|
Text string for the button's label. |
|
|
Returns : |
A pointer to the new button, NULL if it could not be created. |
gint gok_button_enter_notify (GtkWidget *widget
,GdkEventCrossing *event
);
This handler is called whenever a widget on the keyboard is entered.
|
Pointer to the widget that has just been entered. |
|
Not sure? |
Returns : |
TRUE if the given widget is associated with a GOK key, FALSE if the given button is not associated with a GOK key. |
gint gok_button_leave_notify (GtkWidget *widget
,GdkEventCrossing *event
);
This handler is called whenever a widget on the keyboard has been left.
|
Pointer to the widget that has just been left. |
|
Not sure? |
Returns : |
TRUE if the given widget is associated with a GOK key, FALSE if the given button is not associated with a GOK key. |
void gok_button_state_changed (GtkWidget *widget
,GtkStateType state
,gpointer user_data
);
This is called each time the button state is changed. We handle this call and make sure the button is set to the state we want.
|
The button that has just changed state. |
|
State requested (not necessarily the state we set it). |
|
Any user data associated with the widget (ignored by us). |