![]() | ![]() | ![]() | [Insert name here] Reference Manual | ![]() |
---|
#define GOK_TYPE_BUTTON #define GOK_BUTTON_CLASS (klass) #define IS_GOKBUTTON (obj) GtkType gok_button_get_type (void); GtkWidget* gok_button_new_with_label (const gchar *pText); 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(klass) GTK_CHECK_CLASS_CAST (klass, gok_button_get_type (), GokButtonClass)
klass : |
|
GtkWidget* gok_button_new_with_label (const gchar *pText);
Creates a new GOK button with a label.
pText : | 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.
widget : | Pointer to the widget that has just been entered. |
event : | 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.
widget : | Pointer to the widget that has just been left. |
event : | 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.
widget : | The button that has just changed state. |
state : | State requested (not necessarily the state we set it). |
user_data : | Any user data associated with the widget (ignored by us). |
<<< gok-branchback-stack | gok-chunker >>> |