gntbindable.h File Reference

Bindable API. More...

#include <stdio.h>
#include <glib.h>
#include <glib-object.h>
#include <ncurses.h>

Include dependency graph for gntbindable.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _GntBindable
struct  _GntBindableClass
struct  _GntBindableAction
struct  _GntBindableActionParam

Defines

#define GNT_TYPE_BINDABLE   (gnt_bindable_get_gtype())
#define GNT_BINDABLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_BINDABLE, GntBindable))
#define GNT_BINDABLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_BINDABLE, GntBindableClass))
#define GNT_IS_BINDABLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_BINDABLE))
#define GNT_IS_BINDABLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_BINDABLE))
#define GNT_BINDABLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_BINDABLE, GntBindableClass))
#define GNTDEBUG

Typedefs

typedef _GntBindable GntBindable
typedef _GntBindableClass GntBindableClass
typedef gboolean(* GntBindableActionCallback )(GntBindable *bindable, GList *params)
typedef gboolean(* GntBindableActionCallbackNoParam )(GntBindable *bindable)
typedef _GntBindableAction GntBindableAction
typedef _GntBindableActionParam GntBindableActionParam

Functions

G_BEGIN_DECLS GType gnt_bindable_get_gtype (void)
const char * gnt_bindable_remap_keys (GntBindable *bindable, const char *text)
void gnt_bindable_action_free (GntBindableAction *action)
void gnt_bindable_action_param_free (GntBindableActionParam *param)
void gnt_bindable_class_register_action (GntBindableClass *klass, const char *name, GntBindableActionCallback callback, const char *trigger,...)
void gnt_bindable_register_binding (GntBindableClass *klass, const char *name, const char *trigger,...)
gboolean gnt_bindable_perform_action_key (GntBindable *bindable, const char *keys)
gboolean gnt_bindable_perform_action_named (GntBindable *bindable, const char *name,...)
GntBindable * gnt_bindable_bindings_view (GntBindable *bind)
gboolean gnt_bindable_build_help_window (GntBindable *bindable)


Detailed Description

Bindable API.


Function Documentation

void gnt_bindable_action_free GntBindableAction *  action  ) 
 

Parameters:
action 

void gnt_bindable_action_param_free GntBindableActionParam *  param  ) 
 

Parameters:
param 

GntBindable* gnt_bindable_bindings_view GntBindable *  bind  ) 
 

Parameters:
widget 
Returns:

gboolean gnt_bindable_build_help_window GntBindable *  bindable  ) 
 

Parameters:
bindable 
Returns:

void gnt_bindable_class_register_action GntBindableClass *  klass,
const char *  name,
GntBindableActionCallback  callback,
const char *  trigger,
  ...
 

Parameters:
klass 
name 
callback 
trigger 

G_BEGIN_DECLS GType gnt_bindable_get_gtype void   ) 
 

Returns:

gboolean gnt_bindable_perform_action_key GntBindable *  bindable,
const char *  keys
 

Parameters:
bindable 
keys 
Returns:

gboolean gnt_bindable_perform_action_named GntBindable *  bindable,
const char *  name,
  ...
 

Parameters:
bindable 
name 
Returns:

void gnt_bindable_register_binding GntBindableClass *  klass,
const char *  name,
const char *  trigger,
  ...
 

Parameters:
klass 
name 
trigger