func_list_t Struct Reference

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

Detailed Description

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.


Member Enumeration Documentation

anonymous enum
Enumerator:
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.

00049          {              
00050         FUNCTION,       
00051         SEPARATOR,      
00052         SUBMENU         
00053     } type;


Field Documentation

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

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

The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Tue Jan 12 00:48:45 2010 for ENSIBSynema by  doxygen 1.6.1