From 6e8b2cd87a74ac8d1366775186f35268837523e1 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 4 May 2018 02:07:02 +1000 Subject: Finished and polished FLTK.Menu_Items --- doc/fl_menu_item.html | 532 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 532 insertions(+) create mode 100644 doc/fl_menu_item.html (limited to 'doc') diff --git a/doc/fl_menu_item.html b/doc/fl_menu_item.html new file mode 100644 index 0000000..d259fb5 --- /dev/null +++ b/doc/fl_menu_item.html @@ -0,0 +1,532 @@ + + + + + + + Fl_Menu_Item Binding Map + + + + + + +

Fl_Menu_Item Binding Map

+ + + + + + + + + + +
Package name
Fl_Menu_ItemFLTK.Menu_Items
+ + + + + + + + + + + + + + + + +
Types
Fl_Menu_ItemMenu_Item
 Menu_Item_Reference
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
N/A due to being a struct, not a class
+function Create
+       (Text        : in String;
+        Action      : in FLTK.Widgets.Widget_Callback := null;
+        Shortcut    : in Key_Combo := No_Key;
+        Flags       : in Menu_Flag := Flag_Normal)
+    return Menu_Item;
+
+void activate();
+
+procedure Activate
+       (Item : in out Menu_Item);
+
+int active() const;
+
+function Is_Active
+       (Item : in Menu_Item)
+    return Boolean;
+
+int activevisible() const;
+
+function Is_Active_And_Visible
+       (Item : in Menu_Item)
+    return Boolean;
+
+int add(const char *, int shortcut, Fl_Callback *, void *=0, int=0);
+
See Fl_Menu
+int add(const char *a, const char *b, Fl_Callback *c, void *d=0, int e=0);
+
See Fl_Menu
+long argument() const;
+
 
+void argument(long v);
+
 
+Fl_Callback_p callback() const;
+
+function Get_Callback
+       (Item : in Menu_Item)
+    return FLTK.Widgets.Widget_Callback;
+
+void callback(Fl_Callback *c, void *p);
+void callback(Fl_Callback *c);
+void callback(Fl_Callback0 *c);
+void callback(Fl_Callback1 *c, long p=0);
+
+procedure Set_Callback
+       (Item : in out Menu_Item;
+        Func : in     FLTK.Widgets.Widget_Callback);
+
+void check();
+
 
+int checkbox() const;
+
+function Has_Checkbox
+       (Item : in Menu_Item)
+    return Boolean;
+
+int checked() const;
+
 
+void clear();
+
+procedure Set_State
+       (Item : in out Menu_Item;
+        To   : in     Boolean);
+
+void deactivate();
+
+procedure Deactivate
+       (Item : in out Menu_Item);
+
+void do_callback(Fl_Widget *o) const;
+void do_callback(Fl_Widget *o, void *arg) const;
+void do_callback(Fl_Widget *o, long arg) const;
+
+procedure Do_Callback
+       (Item   : in out Menu_Item;
+        Widget : in out FLTK.Widgets.Widget'Class);
+
+void draw(int x, int y, int w, int h, const Fl_Menu_ *, int t=0) const;
+
See Fl_Menu
+const Fl_Menu_Item * find_shortcut(int *ip=0, const bool require_alt=false) const;
+
 
+const Fl_Menu_Item * first() const;
+Fl_Menu_Item * first();
+
See Fl_Menu
+void hide();
+
+procedure Hide
+       (Item : in out Menu_Item);
+
+void image(Fl_Image *a);
+void image(Fl_Image &a);
+
 
+int insert(int, const char *, int, Fl_Callback *, void *=0, int=0);
+
See Fl_Menu
+const char * label() const;
+
+function Get_Label
+       (Item : in Menu_Item)
+    return String;
+
+void label(const char *a);
+
+procedure Set_Label
+       (Item : in out Menu_Item;
+        Text : in     String);
+
+void label(Fl_Labeltype a, const char *b);
+
 
+Fl_Color labelcolor() const;
+
+function Get_Label_Color
+       (Item : in Menu_Item)
+    return Color;
+
+void labelcolor(Fl_Color a);
+
+procedure Set_Label_Color
+       (Item : in out Menu_Item;
+        To   : in     Color);
+
+Fl_Font labelfont() const;
+
+function Get_Label_Font
+       (Item : in Menu_Item)
+    return Font_Kind;
+
+void labelfont(Fl_Font a);
+
+procedure Set_Label_Font
+       (Item : in out Menu_Item;
+        To   : in     Font_Kind);
+
+Fl_Fontsize labelsize() const;
+
+function Get_Label_Size
+       (Item : in Menu_Item)
+    return Font_Size;
+
+void labelsize(Fl_Fontsize a);
+
+procedure Set_Label_Size
+       (Item : in out Menu_Item;
+        To   : in     Font_Size);
+
+Fl_Labeltype labeltype() const;
+
+function Get_Label_Type
+       (Item : in Menu_Item)
+    return Label_Kind;
+
+void labeltype(Fl_Labeltype a);
+
+procedure Set_Label_Type
+       (Item : in out Menu_Item;
+        To   : in     Label_Kind);
+
+int measure(int *h, const Fl_Menu_ *) const;
+
See Fl_Menu
+const Fl_Menu_Item * next(int=1) const;
+Fl_Menu_Item * next(int i=1);
+
See Fl_Menu
+const Fl_Menu_Item * popup
+   (int X, int Y, const char *title=0,
+    const Fl_Menu_Item *picked=0, const Fl_Menu_*=0) const;
+
See Fl_Menu
+const Fl_Menu_Item * pulldown
+   (int X, int Y, int W, int H,
+    const Fl_Menu_Item *picked=0, const Fl_Menu_*=0,
+    const Fl_Menu_Item *title=0, int menubar=0) const;
+
See Fl_Menu
+int radio() const;
+
+function Is_Radio
+       (Item : in Menu_Item)
+    return Boolean;
+
+void set();
+
See void clear();
+void setonly();
+
+procedure Set_Only
+       (Item : in out Menu_Item);
+
+int shortcut() const;
+
+function Get_Shortcut
+       (Item : in Menu_Item)
+    return Key_Combo;
+
+void shortcut(int s);
+
+procedure Set_Shortcut
+       (Item : in out Menu_Item;
+        To   : in     Key_Combo);
+
+void show();
+
+procedure Show
+       (Item : in out Menu_Item);
+
+int size() const;
+
See Fl_Menu
+int submenu() const;
+
 
+const Fl_Menu_Item * test_shortcut() const;
+
 
+void uncheck();
+
 
+void * user_data() const;
+
 
+void user_data(void *v);
+
 
+int value() const;
+
+function Get_State
+       (Item : in Menu_Item)
+    return Boolean;
+
+int visible() const;
+
+function Is_Visible
+       (Item : in Menu_Item)
+    return Boolean;
+
+ + + + + -- cgit