summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.h
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-01-14 01:14:40 +0100
committerMatthias Melcher <git@matthiasm.com>2019-01-14 01:14:40 +0100
commit6a61772c80dee13b4ff120b4b3e53259eae52a78 (patch)
tree9f571468495c218982d2bebc9130165a462e503b /fluid/Fl_Type.h
parentb71601fe7c959eb4a68967b1ff2bcf52c67b4d77 (diff)
STR 3460: Fluid menu item types
Added pulldown menus to create radio style and checkbox style menu items without going through the Class menu.
Diffstat (limited to 'fluid/Fl_Type.h')
-rw-r--r--fluid/Fl_Type.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h
index 45b881ee3..6794bef37 100644
--- a/fluid/Fl_Type.h
+++ b/fluid/Fl_Type.h
@@ -690,6 +690,16 @@ public:
int pixmapID() { return 16; }
};
+class Fl_Radio_Menu_Item_Type : public Fl_Menu_Item_Type {
+public:
+ Fl_Type* make();
+};
+
+class Fl_Checkbox_Menu_Item_Type : public Fl_Menu_Item_Type {
+public:
+ Fl_Type* make();
+};
+
class Fl_Submenu_Type : public Fl_Menu_Item_Type {
public:
Fl_Menu_Item* subtypes() {return 0;}
@@ -707,6 +717,7 @@ public:
};
+
#include <FL/Fl_Menu_.H>
class Fl_Menu_Type : public Fl_Widget_Type {
int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) {