From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- doc/fl_menu_.html | 109 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 80 insertions(+), 29 deletions(-) (limited to 'doc/fl_menu_.html') diff --git a/doc/fl_menu_.html b/doc/fl_menu_.html index ac54a35..5f93e0f 100644 --- a/doc/fl_menu_.html +++ b/doc/fl_menu_.html @@ -42,12 +42,12 @@ -   + int Index -   + int Extended_Index @@ -61,7 +61,49 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
Protected Attributes
+uchar alloc;
+
Intentionally left unbound.
+uchar down_box_;
+
Intentionally left unbound.
+Fl_Color textcolor_;
+
Intentionally left unbound.
+Fl_Font textfont_;
+
Intentionally left unbound.
+Fl_Fontsize textsize_;
+
Intentionally left unbound.
+ + + + + +
Constructors
@@ -70,14 +112,22 @@ Fl_Menu_(int, int, int, int, const char *=0);
 
 function Create
        (X, Y, W, H : in Integer;
-        Text       : in String)
+        Text       : in String := "")
     return Menu;
 
+ + + + + + @@ -153,22 +204,14 @@ procedure Set_Down_Box - + - - - - - - + @@ -255,16 +298,6 @@ procedure Make_Global - - - - - @@ -325,7 +360,8 @@ function Item @@ -595,6 +631,21 @@ procedure Set_Chosen
Functions and Procedures
-int add(const char *, int shortcut, Fl_Callback *, void *=0, int=0);
+int add(const char *, int shortcut, Fl_Callback *,
+    void *=0, int=0);
 
 procedure Add
@@ -91,7 +141,8 @@ procedure Add
 
   
-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);
 
 
 Fl_Color down_color() const;
 
 See selection_color / Get_Selection_Color from Fl_Widget.
 void down_color(unsigned c);
 
 
 
-procedure Draw
-       (This : in out Menu) is null;
-
See selection_color / Set_Selection_Color from Fl_Widget.
 
-function Handle
-       (This  : in out Menu;
-        Event : in     Event_Kind)
-    return Event_Outcome;
-
 
 function Has_Item
        (This  : in Menu;
         Place : in Index)
@@ -283,7 +316,8 @@ function Has_Item
 
   
-int insert(int index, const char *, int shortcut, Fl_Callback *, void *=0, int=0);
+int insert(int index, const char *, int shortcut,
+    Fl_Callback *, void *=0, int=0);
 
 procedure Insert
@@ -298,7 +332,8 @@ procedure Insert
 
   
-int insert(int index, const char *a, const char *b, Fl_Callback *c, void *d=0, int e=0);
+int insert(int index, const char *a, const char *b,
+    Fl_Callback *c, void *d=0, int e=0);
 
 
-int item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem=0) const;
+int item_pathname(char *name, int namelen,
+    const Fl_Menu_Item *finditem=0) const;
 
 
+ + + + + + + + + +
Protection Functions and Procedures
+int item_pathname_(char *name, int namelen,
+    const Fl_Menu_Item *finditem, const Fl_Menu_Item *menu=0) const;
+
Intentionally left unbound.
+ + -- cgit