summaryrefslogtreecommitdiff
path: root/doc/fl_menu_item.html
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-13 00:06:47 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-13 00:06:47 +1300
commit36302e60475e3531d5034fd97cc87aabb9fbd588 (patch)
treefb60f17a16000f91e4fa20ba28e3f908c28aee10 /doc/fl_menu_item.html
parent7be33a9cec0e67c34b674c5ac32a947e6aa2fce6 (diff)
Documentation improvements
Diffstat (limited to 'doc/fl_menu_item.html')
-rw-r--r--doc/fl_menu_item.html104
1 files changed, 97 insertions, 7 deletions
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 @@
<table class="function">
- <tr><th colspan="2">Functions and Procedures</th></tr>
+ <tr><th colspan="2">Attributes</th></tr>
+
+ <tr>
+<td><pre>
+Fl_Callback * callback_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+int flags;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+Fl_Color labelcolor_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+Fl_Font labelfont_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+Fl_Fontsize labelsize_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
<tr>
-<td>N/A due to being a struct, not a class</td>
+<td><pre>
+uchar labeltype_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+int shortcut_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+const char * text;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+ <tr>
+<td><pre>
+void * user_data_;
+</pre></td>
+<td>Intentionally left unbound.</td>
+ </tr>
+
+</table>
+
+
+
+<table class="function">
+ <tr><th colspan="2">Constructors</th></tr>
+
+ <tr>
+<td>Initialize manually as per any other struct.</td>
<td><pre>
function Create
(Text : in String;
@@ -60,6 +130,13 @@ function Create
</pre></td>
</tr>
+</table>
+
+
+
+<table class="function">
+ <tr><th colspan="2">Functions and Procedures</th></tr>
+
<tr>
<td><pre>
void activate();
@@ -94,14 +171,16 @@ function Is_Active_And_Visible
<tr>
<td><pre>
-int add(const char *, int shortcut, Fl_Callback *, void *=0, int=0);
+int add(const char *, int shortcut, Fl_Callback *,
+ void *=0, int=0);
</pre></td>
<td>See Add procedure in FLTK.Widgets.Menus</td>
</tr>
<tr>
<td><pre>
-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);
</pre></td>
<td>&nbsp;</td>
</tr>
@@ -134,8 +213,11 @@ function Get_Callback
<tr>
<td><pre>
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);
</pre></td>
<td><pre>
@@ -194,7 +276,9 @@ procedure Deactivate
<tr>
<td><pre>
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;
</pre></td>
<td><pre>
@@ -206,14 +290,16 @@ procedure Do_Callback
<tr>
<td><pre>
-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;
</pre></td>
<td>See Draw_Item procedure in FLTK.Widgets.Menus</td>
</tr>
<tr>
<td><pre>
-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;
</pre></td>
<td>&nbsp;</td>
</tr>
@@ -221,6 +307,7 @@ const Fl_Menu_Item * find_shortcut(int *ip=0, const bool require_alt=false) cons
<tr>
<td><pre>
const Fl_Menu_Item * first() const;
+
Fl_Menu_Item * first();
</pre></td>
<td>Use FLTK.Widgets.Menus iterators instead</td>
@@ -257,6 +344,7 @@ procedure Hide
<tr>
<td><pre>
void image(Fl_Image *a);
+
void image(Fl_Image &a);
</pre></td>
<td>&nbsp;</td>
@@ -264,7 +352,8 @@ void image(Fl_Image &a);
<tr>
<td><pre>
-int insert(int, const char *, int, Fl_Callback *, void *=0, int=0);
+int insert(int, const char *, int, Fl_Callback *,
+ void *=0, int=0);
</pre></td>
<td>See Insert procedure in FLTK.Widgets.Menus</td>
</tr>
@@ -396,6 +485,7 @@ int measure(int *h, const Fl_Menu_ *) const;
<tr>
<td><pre>
const Fl_Menu_Item * next(int=1) const;
+
Fl_Menu_Item * next(int i=1);
</pre></td>
<td>Use FLTK.Widgets.Menus iterators instead</td>