27 #ifndef GNT_BINDABLE_H 28 #define GNT_BINDABLE_H 32 #include <glib-object.h> 35 #define GNT_TYPE_BINDABLE (gnt_bindable_get_gtype()) 36 #define GNT_BINDABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BINDABLE, GntBindable)) 37 #define GNT_BINDABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BINDABLE, GntBindableClass)) 38 #define GNT_IS_BINDABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BINDABLE)) 39 #define GNT_IS_BINDABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BINDABLE)) 40 #define GNT_BINDABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BINDABLE, GntBindableClass)) 62 void (*gnt_reserved2)(void);
63 void (*gnt_reserved3)(void);
64 void (*gnt_reserved4)(void);
79 const char * gnt_bindable_remap_keys(
GntBindable *bindable,
const char *text);
84 typedef gboolean (*GntBindableActionCallback) (
GntBindable *bindable, GList *params);
85 typedef gboolean (*GntBindableActionCallbackNoParam)(
GntBindable *bindable);
94 gboolean (*action)(
GntBindable *bindable, GList *params);
101 GntBindableAction *action;
void gnt_bindable_class_register_action(GntBindableClass *klass, const char *name, GntBindableActionCallback callback, const char *trigger,...)
Register a bindable action for a class.
gboolean gnt_bindable_perform_action_named(GntBindable *bindable, const char *name,...) G_GNUC_NULL_TERMINATED
Perform an action on a bindable object.
gboolean gnt_bindable_build_help_window(GntBindable *bindable)
Builds a window that list the key bindings for a GntBindable object.
G_BEGIN_DECLS GType gnt_bindable_get_gtype(void)
void gnt_bindable_action_free(GntBindableAction *action)
Free a bindable action.
void gnt_bindable_action_param_free(GntBindableActionParam *param)
Free a GntBindableActionParam.
void gnt_bindable_register_binding(GntBindableClass *klass, const char *name, const char *trigger,...)
Register a key-binding to an existing action.
GntBindable * gnt_bindable_bindings_view(GntBindable *bind)
Returns a GntTree populated with "key" -> "binding" for the widget.
gboolean gnt_bindable_perform_action_key(GntBindable *bindable, const char *keys)
Perform an action from a keybinding.
gboolean gnt_bindable_check_key(GntBindable *bindable, const char *keys)
Discover if a key is bound.