Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

cmd Struct Reference

Command item structure. More...

#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
cmdparent
 The parent category.

cmdnext
 The next command in the same category.


Detailed Description

Command item structure.


Field Documentation

void(* cmd::action_f)(void *)
 

The command action function.

struct cmd* cmd::first
 

The first command of the category.

void(* cmd::modify_state_f)(struct cmd *, GtkWidget * widget)
 

A function to modify the state (selected, ...) of the command in addition to the standard request.

struct of_state* cmd::of_state
 

The factory state which to start an operation with.

int cmd::request_cnt
 

The requested object count. If 0, any number is suitable, if -1, any nonzero number is suitable.

uns cmd::request_mask
 

The bitmask of requested objects. All possible objects the command can be applied on.

uns cmd::request_type
 

One of the enum req_type values.

struct cmd* cmd::selected
 

The selected command of the category.


The documentation for this struct was generated from the following file:
Generated on Tue Dec 9 16:30:10 2008 for Vrr by doxygen 1.3.5