Top |
KkcKeymapEntry * | kkc_keymap_entries () |
KkcKeymapEntry * | kkc_keymap_local_entries () |
void | kkc_keymap_set () |
gchar * | kkc_keymap_lookup_key () |
KkcKeyEvent * | kkc_keymap_where_is () |
KkcKeymap * | kkc_keymap_new () |
KkcKeymap * | kkc_keymap_get_parent () |
void | kkc_keymap_set_parent () |
gchar ** | kkc_keymap_commands () |
gchar * | kkc_keymap_get_command_label () |
KkcKeymapEntry * | kkc_keymap_entry_dup () |
void | kkc_keymap_entry_free () |
void | kkc_keymap_entry_copy () |
void | kkc_keymap_entry_destroy () |
#define | KKC_TYPE_KEYMAP |
struct | KkcKeymap |
struct | KkcKeymapClass |
struct | KkcKeymapEntry |
KkcKeymapEntry * kkc_keymap_entries (KkcKeymap *self
,int *result_length1
);
Return all the keymap entries including parent's.
KkcKeymapEntry * kkc_keymap_local_entries (KkcKeymap *self
,int *result_length1
);
Return keymap entries not including parent's.
void kkc_keymap_set (KkcKeymap *self
,KkcKeyEvent *key
,const gchar *command
);
Bind a key event to a command.
self |
the KkcKeymap instance |
|
key |
. key event . |
[in] |
command |
. command or . |
[in][allow-none] |
gchar * kkc_keymap_lookup_key (KkcKeymap *self
,KkcKeyEvent *key
);
Lookup a command bound to a key event.
KkcKeyEvent * kkc_keymap_where_is (KkcKeymap *self
,const gchar *command
);
Lookup a key event to which a command is bound.
KkcKeymap *
kkc_keymap_get_parent (KkcKeymap *self
);
Get and return the current value of the "parent" property.
Parent keymap.
void kkc_keymap_set_parent (KkcKeymap *self
,KkcKeymap *value
);
Set the value of the "parent" property to value
.
Parent keymap.
gchar **
kkc_keymap_commands (int *result_length1
);
List commands usable in keymap.
gchar *
kkc_keymap_get_command_label (const gchar *command
);
Return a label for a command
KkcKeymapEntry *
kkc_keymap_entry_dup (const KkcKeymapEntry *self
);
Creates a copy of self.
See also: kkc_keymap_entry_copy()
, kkc_keymap_entry_destroy()
, kkc_keymap_entry_free()
void
kkc_keymap_entry_free (KkcKeymapEntry *self
);
Frees the heap-allocated struct.
See also: kkc_keymap_entry_dup()
, kkc_keymap_entry_copy()
, kkc_keymap_entry_destroy()
void kkc_keymap_entry_copy (const KkcKeymapEntry *self
,KkcKeymapEntry *dest
);
Creates a copy of self.
See also: kkc_keymap_entry_dup()
, kkc_keymap_entry_destroy()
, kkc_keymap_entry_free()
self |
the struct to copy |
|
dest |
a unused struct. Use |
void
kkc_keymap_entry_destroy (KkcKeymapEntry *self
);
Frees the content of the struct pointed by self
.
See also: kkc_keymap_entry_dup()
, kkc_keymap_entry_copy()
, kkc_keymap_entry_free()
struct KkcKeymapClass { GObjectClass parent_class; };
The class structure for KKC_TYPE_KEYMAP
. All the fields in this structure are private and should never be accessed directly.