menu.h File Reference

#include "generic/callbackfwd.h"
#include <string>
Include dependency graph for menu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define INCLUDED_GTKUTIL_MENU_H

Typedefs

typedef int gint
typedef gint gboolean
typedef struct _GSList GSList
typedef struct _GtkMenu GtkMenu
typedef struct _GtkMenuBar GtkMenuBar
typedef struct _GtkMenuItem GtkMenuItem
typedef struct _GtkCheckMenuItem GtkCheckMenuItem
typedef struct _GtkRadioMenuItem GtkRadioMenuItem
typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem

Functions

void menu_add_item (GtkMenu *menu, GtkMenuItem *item)
void menu_remove_item (GtkMenu *menu, GtkMenuItem *item)
GtkMenuItemmenu_separator (GtkMenu *menu)
GtkTearoffMenuItemmenu_tearoff (GtkMenu *menu)
GtkMenuItemnew_sub_menu_item_with_mnemonic (const std::string &mnemonic)
GtkMenucreate_sub_menu_with_mnemonic (GtkMenuBar *bar, const std::string &mnemonic)
GtkMenucreate_sub_menu_with_mnemonic (GtkMenu *parent, const std::string &mnemonic)
GtkMenuItemcreate_menu_item_with_mnemonic (GtkMenu *menu, const std::string &mnemonic, const Callback &callback, const std::string &icon="")
GtkCheckMenuItemcreate_check_menu_item_with_mnemonic (GtkMenu *menu, const std::string &mnemonic, const Callback &callback, const std::string &icon)
GtkRadioMenuItemcreate_radio_menu_item_with_mnemonic (GtkMenu *menu, GSList **group, const std::string &mnemonic, const Callback &callback, const std::string &icon)
GtkMenuItemcreate_menu_item_with_mnemonic (GtkMenu *menu, const std::string &mnemonic, const Command &command, const std::string &icon="")
GtkCheckMenuItemcreate_check_menu_item_with_mnemonic (GtkMenu *menu, const std::string &mnemonic, const Toggle &toggle, const std::string &icon)
void check_menu_item_set_active_no_signal (GtkCheckMenuItem *item, gboolean active)
void radio_menu_item_set_active_no_signal (GtkRadioMenuItem *item, gboolean active)

Define Documentation

#define INCLUDED_GTKUTIL_MENU_H

Definition at line 23 of file menu.h.


Typedef Documentation

typedef gint gboolean

Definition at line 29 of file menu.h.

typedef int gint

Definition at line 28 of file menu.h.

typedef struct _GSList GSList

Definition at line 30 of file menu.h.

typedef struct _GtkCheckMenuItem GtkCheckMenuItem

Definition at line 34 of file menu.h.

typedef struct _GtkMenu GtkMenu

Definition at line 31 of file menu.h.

typedef struct _GtkMenuBar GtkMenuBar

Definition at line 32 of file menu.h.

typedef struct _GtkMenuItem GtkMenuItem

Definition at line 33 of file menu.h.

typedef struct _GtkRadioMenuItem GtkRadioMenuItem

Definition at line 35 of file menu.h.

typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem

Definition at line 36 of file menu.h.


Function Documentation

void check_menu_item_set_active_no_signal ( GtkCheckMenuItem item,
gboolean  active 
)
GtkCheckMenuItem* create_check_menu_item_with_mnemonic ( GtkMenu menu,
const std::string mnemonic,
const Toggle toggle,
const std::string icon 
)
GtkCheckMenuItem* create_check_menu_item_with_mnemonic ( GtkMenu menu,
const std::string mnemonic,
const Callback &  callback,
const std::string icon 
)
GtkMenuItem* create_menu_item_with_mnemonic ( GtkMenu menu,
const std::string mnemonic,
const Command command,
const std::string icon = "" 
)
GtkMenuItem* create_menu_item_with_mnemonic ( GtkMenu menu,
const std::string mnemonic,
const Callback &  callback,
const std::string icon = "" 
)
GtkRadioMenuItem* create_radio_menu_item_with_mnemonic ( GtkMenu menu,
GSList **  group,
const std::string mnemonic,
const Callback &  callback,
const std::string icon 
)
GtkMenu* create_sub_menu_with_mnemonic ( GtkMenu parent,
const std::string mnemonic 
)
GtkMenu* create_sub_menu_with_mnemonic ( GtkMenuBar bar,
const std::string mnemonic 
)
void menu_add_item ( GtkMenu menu,
GtkMenuItem item 
)
void menu_remove_item ( GtkMenu menu,
GtkMenuItem item 
)
GtkMenuItem* menu_separator ( GtkMenu menu  ) 
GtkTearoffMenuItem* menu_tearoff ( GtkMenu menu  ) 
GtkMenuItem* new_sub_menu_item_with_mnemonic ( const std::string mnemonic  ) 
void radio_menu_item_set_active_no_signal ( GtkRadioMenuItem item,
gboolean  active 
)

Generated by  doxygen 1.6.2