class Fl_Menu_ : public Fl_Object

This is the base class for all objects that contain a menu, including Fl_Menu_Button, Fl_Choice, and Fl_Menu_Bar. This base class provides the methods for setting or modifying the menu.

The menu is an array of Fl_Menu objects. You may either declare the array yourself, or call methods on this object to construct it's own array.

~Fl_Menu_();

const Fl_Menu *menu() const ;
void menu(const Fl_Menu *);

int value() const ;
const Fl_Menu *mvalue() const;
int value(int);
int value(const Fl_Menu *);

int changed() const;
void set_changed();
void clear_changed();

uchar when() const;
void when(uchar);

char *text() const ;
char *text(int i) const ;

int size() const ;

int add(const char *,const char *,Fl_Callback *,void *v=0,int f=0);

int add(const char *);

void clear();

void replace(int,const char *);

void remove(int);

void shortcut(int i,const char *str);

void mode(int i,int x);