A list of (display name, function) couples used to populate a menu. More...
#include <func-list.h>
Public Types | |
enum | { FUNCTION, SEPARATOR, SUBMENU } |
Data Fields | |
char * | name |
Display name of the function/menu - set to NULL for SEPEATOR type. | |
enum func_list_t:: { ... } | type |
union { | |
void(* func )(GtkMenuItem *, gpointer) | |
Data depending on the type of the func_list_t. | |
GList * children | |
Pointer to a child submenu for SUBMENU type. | |
} | data |
A list of (display name, function) couples used to populate a menu.
This struct is a list of couples (display name, function pointer). It is used for passing frame type specific functions to the main application. It can also be a submenu for more menu entries, or a menu separator.
The lists created by each group will be displayed in a menu attached to each frame.
Definition at line 47 of file func-list.h.
anonymous enum |
FUNCTION |
Type of the func_list_t. Pointer to a function |
SEPARATOR |
Menu separator. |
SUBMENU |
Submenu. |
Definition at line 49 of file func-list.h.
GList* func_list_t::children |
Pointer to a child submenu for SUBMENU type.
Definition at line 57 of file func-list.h.
union { ... } func_list_t::data |
void(* func_list_t::func)(GtkMenuItem *, gpointer) |
Data depending on the type of the func_list_t.
< Pointer to the function for FUNCTION type
char* func_list_t::name |
Display name of the function/menu - set to NULL for SEPEATOR type.
Definition at line 48 of file func-list.h.
enum { ... } func_list_t::type |