From f27eb859eff94ec9c13239daee15f60ffecde089 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sat, 18 Jan 2025 00:43:55 +1300 Subject: Added Fl_Sys_Menu_Bar --- doc/fl_sys_menu_bar.html | 355 +++++++++++++++++++++++++++++++++++++++++++++++ doc/index.html | 3 +- 2 files changed, 357 insertions(+), 1 deletion(-) create mode 100644 doc/fl_sys_menu_bar.html (limited to 'doc') diff --git a/doc/fl_sys_menu_bar.html b/doc/fl_sys_menu_bar.html new file mode 100644 index 0000000..0965675 --- /dev/null +++ b/doc/fl_sys_menu_bar.html @@ -0,0 +1,355 @@ + + + + + + Fl_Sys_Menu_Bar Binding Map + + + + + + +

Fl_Sys_Menu_Bar Binding Map

+ + +Back to Index + + + + + + + + + + +
Package name
Fl_Sys_Menu_BarFLTK.Widgets.Menus.Menu_Bars.Systemwide
+ + + + + + + + + + + + + + + + +
Types
Fl_Sys_Menu_BarSystem_Menu_Bar
 System_Menu_Bar_Reference
+ + + + + + + + + + + + + + + + +
Constructors
+Fl_Sys_Menu_Bar(int x, int y, int w, int h, const char *l=0);
+
+function Create
+       (X, Y, W, H : in Integer;
+        Text       : in String := "")
+    return System_Menu_Bar;
+
Rely on the automatic use of begin when a group is created, or use begin/end +explicitly, or add each widget to its intended parent group manually.
+function Create
+       (Parent     : in out FLTK.Widgets.Groups.Group'Class;
+        X, Y, W, H : in     Integer;
+        Text       : in     String := "")
+    return System_Menu_Bar;
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Functions and Procedures
+int add(const char *label, const char *shortcut,
+    Fl_Callback *cb, void *user_data=0, int flags=0);
+
+procedure Add
+       (This     : in out System_Menu_Bar;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     String;
+        Flags    : in     Menu_Flag := Flag_Normal);
+
+function Add
+       (This     : in out System_Menu_Bar;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     String;
+        Flags    : in     Menu_Flag := Flag_Normal)
+    return Index;
+
+int add(const char *label, int shortcut, Fl_Callback *,
+    void *user_data=0, int flags=0);
+
+procedure Add
+       (This     : in out System_Menu_Bar;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     Key_Combo := No_Key;
+        Flags    : in     Menu_Flag := Flag_Normal);
+
+function Add
+       (This     : in out System_Menu_Bar;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     Key_Combo := No_Key;
+        Flags    : in     Menu_Flag := Flag_Normal)
+    return Index;
+
+int add(const char *str);
+
+procedure Add
+       (This : in out System_Menu_Bar;
+        Text : in     String);
+
+function Add
+       (This : in out System_Menu_Bar;
+        Text : in     String)
+    return Index;
+
+void clear();
+
+procedure Clear
+       (This : in out System_Menu_Bar);
+
+int clear_submenu(int index);
+
+procedure Clear_Submenu
+       (This  : in out System_Menu_Bar;
+        Place : in     Index);
+
+void global();
+
+procedure Make_Global
+       (This : in out System_Menu_Bar);
+
+int insert(int index, const char *label, const char *shortcut,
+    Fl_Callback *cb, void *user_data=0, int flags=0);
+
+procedure Insert
+       (This     : in out System_Menu_Bar;
+        Place    : in     Index;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     String;
+        Flags    : in     Menu_Flag := Flag_Normal);
+
+function Insert
+       (This     : in out System_Menu_Bar;
+        Place    : in     Index;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     String;
+        Flags    : in     Menu_Flag := Flag_Normal)
+    return Index;
+
+int insert(int index, const char *label, int shortcut,
+    Fl_Callback *cb, void *user_data=0, int flags=0);
+
+procedure Insert
+       (This     : in out System_Menu_Bar;
+        Place    : in     Index;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     Key_Combo := No_Key;
+        Flags    : in     Menu_Flag := Flag_Normal);
+
+function Insert
+       (This     : in out System_Menu_Bar;
+        Place    : in     Index;
+        Text     : in     String;
+        Action   : in     Widget_Callback := null;
+        Shortcut : in     Key_Combo := No_Key;
+        Flags    : in     Menu_Flag := Flag_Normal)
+    return Index;
+
Use the menu method to access the menu item array and index it directly.
+function Item
+       (This  : in System_Menu_Bar;
+        Place : in Index)
+    return FLTK.Menu_Items.Menu_Item_Reference;
+
+const Fl_Menu_Item * menu() const;
+
Use Item or Iterate as necessary to access specific items or walk the array.
+void menu(const Fl_Menu_Item *m);
+
+procedure Use_Same_Items
+       (This  : in out System_Menu_Bar;
+        Donor : in     Menu'Class);
+
+int mode(int i) const;
+
+function Get_Flags
+       (This  : in System_Menu_Bar;
+        Place : in Index)
+    return Menu_Flag;
+
+void mode(int i, int fl);
+
+procedure Set_Flags
+       (This  : in out System_Menu_Bar;
+        Place : in     Index;
+        Flags : in     Menu_Flag);
+
+void remove(int n);
+
+procedure Remove
+       (This  : in out System_Menu_Bar;
+        Place : in     Index);
+
+void replace(int index, const char *name);
+
+procedure Set_Label
+       (This  : in out System_Menu_Bar;
+        Place : in     Index;
+        Text  : in     String);
+
+void setonly(Fl_Menu_Item *item);
+
+procedure Set_Only
+       (This : in out System_Menu_Bar;
+        Item : in out FLTK.Menu_Items.Menu_Item);
+
+void shortcut(int i, int s);
+
+procedure Set_Shortcut
+       (This  : in out System_Menu_Bar;
+        Place : in     Index;
+        Press : in     Key_Combo);
+
+void update();
+
+procedure Update
+       (This : in out System_Menu_Bar);
+
+ + + + + + + + + + + +
Protected Functions and Procedures
+void draw();
+
+procedure Draw
+       (This : in out System_Menu_Bar);
+
+ + + + + diff --git a/doc/index.html b/doc/index.html index 5c38e3a..faff436 100644 --- a/doc/index.html +++ b/doc/index.html @@ -114,7 +114,7 @@
  • Fl_Slider
  • Fl_Spinner
  • Fl_Surface_Device
  • -
  • Fl_Sys_Menu_Bar
  • +
  • Fl_Sys_Menu_Bar
  • Fl_Table
  • Fl_Table_Row
  • Fl_Tabs
  • @@ -233,6 +233,7 @@
  • FLTK.Widgets.Menus
  • FLTK.Widgets.Menus.Choices
  • FLTK.Widgets.Menus.Menu_Bars
  • +
  • FLTK.Widgets.Menus.Menu_Bars.Systemwide
  • FLTK.Widgets.Menus.Menu_Buttons
  • FLTK.Widgets.Positioners
  • FLTK.Widgets.Progress_Bars
  • -- cgit