#include <cmdmgr.h>
Data Fields | |
| char * | title |
| char * | description |
| uns | type |
| The item type. One of the enum cmd_type values. | |
| uns | flags |
| char * | icon_path |
| The icon path or the GTK stock name. | |
| GdkPixbuf * | icon_pixbuf |
| The pixbuf created during icon load. | |
| int | accel |
| The command keyboard shortcut. | |
| GdkModifierType | modifier |
| The command keyboard modifiers. | |
| union { | |
| struct { | |
| uns request_mask | |
| int request_cnt | |
| uns request_type | |
| void(* modify_state_f )(struct cmd *, GtkWidget *widget) | |
| void(* action_f )(void *) | |
| } func | |
| struct { | |
| of_state * of_state | |
| } op | |
| struct { | |
| uns flags | |
| cmd * first | |
| cmd * selected | |
| } ctg | |
| } | spec |
| cmd * | parent |
| The parent category. | |
| cmd * | next |
| The next command in the same category. | |
|
|
The command action function.
|
|
|
The first command of the category.
|
|
|
A function to modify the state (selected, ...) of the command in addition to the standard request.
|
|
|
The factory state which to start an operation with.
|
|
|
The requested object count. If 0, any number is suitable, if -1, any nonzero number is suitable.
|
|
|
The bitmask of requested objects. All possible objects the command can be applied on.
|
|
|
One of the enum req_type values.
|
|
|
The selected command of the category.
|
1.3.5