Bindings

Name

Bindings -- 

Synopsis


#include <gtk/gtk.h>


struct      GtkPatternSpec;
void        gtk_pattern_spec_init           (GtkPatternSpec *pspec,
                                             const gchar *pattern);
void        gtk_pattern_spec_free_segs      (GtkPatternSpec *pspec);
gboolean    gtk_pattern_match               (GtkPatternSpec *pspec,
                                             guint string_length,
                                             const gchar *string,
                                             const gchar *string_reversed);
gboolean    gtk_pattern_match_string        (GtkPatternSpec *pspec,
                                             const gchar *string);
gboolean    gtk_pattern_match_simple        (const gchar *pattern,
                                             const gchar *string);
struct      GtkBindingSet;
struct      GtkBindingEntry;
struct      GtkBindingSignal;
struct      GtkBindingArg;
GtkBindingSet* gtk_binding_set_new          (const gchar *set_name);
GtkBindingSet* gtk_binding_set_by_class     (gpointer object_class);
GtkBindingSet* gtk_binding_set_find         (const gchar *set_name);
gboolean    gtk_bindings_activate           (GtkObject *object,
                                             guint keyval,
                                             guint modifiers);
gboolean    gtk_binding_set_activate        (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers,
                                             GtkObject *object);
#define     gtk_binding_entry_add
void        gtk_binding_entry_clear         (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers);
void        gtk_binding_entry_add_signal    (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers,
                                             const gchar *signal_name,
                                             guint n_args,
                                             ...);
void        gtk_binding_set_add_path        (GtkBindingSet *binding_set,
                                             GtkPathType path_type,
                                             const gchar *path_pattern,
                                             GtkPathPriorityType priority);
void        gtk_binding_entry_remove        (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers);
void        gtk_binding_entry_add_signall   (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers,
                                             const gchar *signal_name,
                                             GSList *binding_args);
guint       gtk_binding_parse_binding       (GScanner *scanner);

Description

Details

struct GtkPatternSpec

struct GtkPatternSpec
{
  GtkMatchType	 match_type;
  guint		 pattern_length;
  gchar		*pattern;
  gchar		*pattern_reversed;
  gpointer	 user_data;
  guint		 seq_id;
};


gtk_pattern_spec_init ()

void        gtk_pattern_spec_init           (GtkPatternSpec *pspec,
                                             const gchar *pattern);

pspec : 
pattern : 


gtk_pattern_spec_free_segs ()

void        gtk_pattern_spec_free_segs      (GtkPatternSpec *pspec);

pspec : 


gtk_pattern_match ()

gboolean    gtk_pattern_match               (GtkPatternSpec *pspec,
                                             guint string_length,
                                             const gchar *string,
                                             const gchar *string_reversed);

pspec : 
string_length : 
string : 
string_reversed : 
Returns : 


gtk_pattern_match_string ()

gboolean    gtk_pattern_match_string        (GtkPatternSpec *pspec,
                                             const gchar *string);

pspec : 
string : 
Returns : 


gtk_pattern_match_simple ()

gboolean    gtk_pattern_match_simple        (const gchar *pattern,
                                             const gchar *string);

pattern : 
string : 
Returns : 


struct GtkBindingSet

struct GtkBindingSet
{
  gchar			*set_name;
  gint			 priority;
  GSList		*widget_path_pspecs;
  GSList		*widget_class_pspecs;
  GSList		*class_branch_pspecs;
  GtkBindingEntry	*entries;
  GtkBindingEntry	*current;
};


struct GtkBindingEntry

struct GtkBindingEntry
{
  /* key portion
   */
  guint			 keyval;
  guint			 modifiers;
  
  GtkBindingSet		*binding_set;
  guint			destroyed : 1;
  guint			in_emission : 1;
  GtkBindingEntry	*set_next;
  GtkBindingEntry	*hash_next;
  GtkBindingSignal	*signals;
};


struct GtkBindingSignal

struct GtkBindingSignal
{
  GtkBindingSignal	*next;
  gchar			*signal_name;
  guint			 n_args;
  GtkBindingArg		*args;
};


struct GtkBindingArg

struct GtkBindingArg
{
  GtkType	arg_type;
  union {
    glong	 long_data;
    gdouble	 double_data;
    gchar	*string_data;
  } d;
};


gtk_binding_set_new ()

GtkBindingSet* gtk_binding_set_new          (const gchar *set_name);

set_name : 
Returns : 


gtk_binding_set_by_class ()

GtkBindingSet* gtk_binding_set_by_class     (gpointer object_class);

object_class : 
Returns : 


gtk_binding_set_find ()

GtkBindingSet* gtk_binding_set_find         (const gchar *set_name);

set_name : 
Returns : 


gtk_bindings_activate ()

gboolean    gtk_bindings_activate           (GtkObject *object,
                                             guint keyval,
                                             guint modifiers);

object : 
keyval : 
modifiers : 
Returns : 


gtk_binding_set_activate ()

gboolean    gtk_binding_set_activate        (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers,
                                             GtkObject *object);

binding_set : 
keyval : 
modifiers : 
object : 
Returns : 


gtk_binding_entry_add

#define	 gtk_binding_entry_add		gtk_binding_entry_clear


gtk_binding_entry_clear ()

void        gtk_binding_entry_clear         (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers);

binding_set : 
keyval : 
modifiers : 


gtk_binding_entry_add_signal ()

void        gtk_binding_entry_add_signal    (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers,
                                             const gchar *signal_name,
                                             guint n_args,
                                             ...);

binding_set : 
keyval : 
modifiers : 
signal_name : 
n_args : 
... : 


gtk_binding_set_add_path ()

void        gtk_binding_set_add_path        (GtkBindingSet *binding_set,
                                             GtkPathType path_type,
                                             const gchar *path_pattern,
                                             GtkPathPriorityType priority);

binding_set : 
path_type : 
path_pattern : 
priority : 


gtk_binding_entry_remove ()

void        gtk_binding_entry_remove        (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers);

binding_set : 
keyval : 
modifiers : 


gtk_binding_entry_add_signall ()

void        gtk_binding_entry_add_signall   (GtkBindingSet *binding_set,
                                             guint keyval,
                                             guint modifiers,
                                             const gchar *signal_name,
                                             GSList *binding_args);

binding_set : 
keyval : 
modifiers : 
signal_name : 
binding_args : 


gtk_binding_parse_binding ()

guint       gtk_binding_parse_binding       (GScanner *scanner);

scanner : 
Returns :