From 36302e60475e3531d5034fd97cc87aabb9fbd588 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 13 Jan 2025 00:06:47 +1300 Subject: Documentation improvements --- doc/fl_menu_item.html | 104 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 97 insertions(+), 7 deletions(-) (limited to 'doc/fl_menu_item.html') diff --git a/doc/fl_menu_item.html b/doc/fl_menu_item.html index b01c4e6..e64aec7 100644 --- a/doc/fl_menu_item.html +++ b/doc/fl_menu_item.html @@ -46,10 +46,80 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
Attributes
+Fl_Callback * callback_;
+
Intentionally left unbound.
+int flags;
+
Intentionally left unbound.
+Fl_Color labelcolor_;
+
Intentionally left unbound.
+Fl_Font labelfont_;
+
Intentionally left unbound.
+Fl_Fontsize labelsize_;
+
Intentionally left unbound.
N/A due to being a struct, not a class
+uchar labeltype_;
+
Intentionally left unbound.
+int shortcut_;
+
Intentionally left unbound.
+const char * text;
+
Intentionally left unbound.
+void * user_data_;
+
Intentionally left unbound.
+ + + + + + + + +
Constructors
Initialize manually as per any other struct.
 function Create
        (Text        : in String;
@@ -60,6 +130,13 @@ function Create
 
+ + + + + + @@ -134,8 +213,11 @@ function Get_Callback @@ -221,6 +307,7 @@ const Fl_Menu_Item * find_shortcut(int *ip=0, const bool require_alt=false) cons @@ -257,6 +344,7 @@ procedure Hide @@ -264,7 +352,8 @@ void image(Fl_Image &a); @@ -396,6 +485,7 @@ int measure(int *h, const Fl_Menu_ *) const; -- cgit
Functions and Procedures
 void activate();
@@ -94,14 +171,16 @@ function Is_Active_And_Visible
 
   
-int add(const char *, int shortcut, Fl_Callback *, void *=0, int=0);
+int add(const char *, int shortcut, Fl_Callback *,
+    void *=0, int=0);
 
See Add procedure in FLTK.Widgets.Menus
-int add(const char *a, const char *b, Fl_Callback *c, void *d=0, int e=0);
+int add(const char *a, const char *b, Fl_Callback *c,
+    void *d=0, int e=0);
 
 
 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);
 
@@ -194,7 +276,9 @@ procedure Deactivate
   
 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;
 
@@ -206,14 +290,16 @@ procedure Do_Callback
 
   
-void draw(int x, int y, int w, int h, const Fl_Menu_ *, int t=0) const;
+void draw(int x, int y, int w, int h, const Fl_Menu_ *,
+    int t=0) const;
 
See Draw_Item procedure in FLTK.Widgets.Menus
-const Fl_Menu_Item * find_shortcut(int *ip=0, const bool require_alt=false) const;
+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();
 
Use FLTK.Widgets.Menus iterators instead
 void image(Fl_Image *a);
+
 void image(Fl_Image &a);
 
 
-int insert(int, const char *, int, Fl_Callback *, void *=0, int=0);
+int insert(int, const char *, int, Fl_Callback *,
+    void *=0, int=0);
 
See Insert procedure in FLTK.Widgets.Menus
 const Fl_Menu_Item * next(int=1) const;
+
 Fl_Menu_Item * next(int i=1);
 
Use FLTK.Widgets.Menus iterators instead