/** Remove all entries from the menu */
void clear();
- /** Return the index of the menu item that was 'hit' (ie. the user
- clicked on it) in the last event() call */
- int check ();
-
virtual void check_menu() =0;
MenuItem& get_item(int index)
void set_toggled(int id, bool toggled);
protected:
+ /** Return the index of the menu item that was 'hit' (ie. the user
+ clicked on it) in the last event() call */
+ int check ();
+
MenuItem* add_item(std::unique_ptr<MenuItem> menu_item);
float get_width() const;
float get_height() const;