From d5fd3906e62969fce7fec7f2fccdc5a7436cbdbc Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 18 Feb 2025 12:54:42 +1300 Subject: Filled holes in FLTK, FLTK.Events, FLTK.Screen, tweaked Fl_Shortcut implementation --- doc/enumerations.html | 7 +- doc/fl.html | 108 ++------ doc/fl_(fltk-event).html | 547 ---------------------------------------- doc/fl_(fltk-events).html | 619 ++++++++++++++++++++++++++++++++++++++++++++++ doc/fl_(fltk-screen).html | 59 ++++- doc/fl_(fltk-static).html | 48 ++-- doc/index.html | 4 +- 7 files changed, 744 insertions(+), 648 deletions(-) delete mode 100644 doc/fl_(fltk-event).html create mode 100644 doc/fl_(fltk-events).html (limited to 'doc') diff --git a/doc/enumerations.html b/doc/enumerations.html index 3533cd9..6e4f521 100644 --- a/doc/enumerations.html +++ b/doc/enumerations.html @@ -78,9 +78,10 @@ - #define FL_LEFT_MOUSE 1
- #define FL_MIDDLE_MOUSE 2
- #define FL_RIGHT_MOUSE 3 + #define FL_BUTTON1 0x01000000
+ #define FL_BUTTON2 0x02000000
+ #define FL_BUTTON3 0x04000000
+ #define FL_BUTTONS 0x7f000000 Mouse_Button diff --git a/doc/fl.html b/doc/fl.html index 7d4d3ee..9cefff7 100644 --- a/doc/fl.html +++ b/doc/fl.html @@ -67,6 +67,31 @@ + + + + + + + + + + + + + +
Static Attributes
+static char const * const clipboard_image = "image";
+
+Clipboard_Image : constant String;
+
+static char const * const clipboard_plain_text = "text/plain";
+
+Clipboard_Plain_Text : constant String;
+
+ + + @@ -103,15 +128,6 @@ function API_Version - - - - - @@ -150,6 +166,8 @@ static cairo_t * cairo_make_current(Fl_Window *w); static int check(); @@ -164,26 +182,6 @@ static void clear_widget_pointer(Fl_Widget const *w); - - - - - - - - - - @@ -198,15 +196,6 @@ static void do_widget_deletion(); - - - - - @@ -214,24 +203,6 @@ static int gl_visual(int, int *alist=0); - - - - - - - - - - - - - - - @@ -268,22 +230,6 @@ function Run - - - - - - - - - - diff --git a/doc/fl_(fltk-event).html b/doc/fl_(fltk-event).html deleted file mode 100644 index 3aaca1f..0000000 --- a/doc/fl_(fltk-event).html +++ /dev/null @@ -1,547 +0,0 @@ - - - - - - Fl (FLTK.Event) Binding Map - - - - - - -

Fl (FLTK.Event) Binding Map

- - -Back to Index - - -
Static Functions and Procedures
-static void awake(void *message=0);
-
-procedure Awake;
-
 static void cairo_autolink_context(bool alink);
 
 
+procedure Check;
+
 function Check
     return Boolean;
 
-static void damage(int d);
-
-procedure Set_Damaged
-       (To : in Boolean);
-
-static int damage();
-
-function Is_Damaged
-    return Boolean;
-
 static void delete_widget(Fl_Widget *w);
 
Used automatically as appropriate by the binding.
-static void flush();
-
-procedure Flush;
-
 static int gl_visual(int, int *alist=0);
 
 
-static int handle(int, Fl_Window *);
-
-static int handle_(int, Fl_Window *);
-
 
-static int lock();
-
-procedure Lock;
-
 static int ready();
 
@@ -242,15 +213,6 @@ function Ready
 
   
-static void redraw();
-
-procedure Redraw;
-
 static void release_widget_pointer(Fl_Widget *&w);
 
Marked as internal use only.
-static void * thread_message();
-
 
-static void unlock();
-
-procedure Unlock;
-
 static void use_high_res_GL(int val);
 
 
- - - - - - - -
Package name
FlFLTK.Event
- - - - - - - - - - - - - - - - -
Types
Fl_Event_HandlerEvent_Handler
Fl_Event_Dispatch 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Static Functions and Procedures
-static void add_handler(Fl_Event_Handler h);
-
-procedure Add_Handler
-       (Func : in Event_Handler);
-
-static Fl_Widget * belowmouse();
-
-function Get_Below_Mouse
-    return access FLTK.Widgets.Widget'Class;
-
-static void belowmouse(Fl_Widget *);
-
-procedure Set_Below_Mouse
-       (To : in FLTK.Widgets.Widget'Class);
-
-static int compose(int &del);
-
-function Compose
-       (Del : out Natural)
-    return Boolean;
-
-static void compose_reset();
-
-procedure Compose_Reset;
-
-static int event();
-
-function Last
-    return Event_Kind;
-
-static int event_alt();
-
-function Key_Alt
-    return Boolean;
-
-static int event_button();
-
-function Last_Button
-    return Mouse_Button;
-
-static int event_button1();
-
-function Mouse_Left
-    return Boolean;
-
-static int event_button2();
-
-function Mouse_Middle
-    return Boolean;
-
-static int event_button3();
-
-function Mouse_Right
-    return Boolean;
-
-static int event_buttons();
-
 
-static int event_clicks();
-
-function Is_Multi_Click
-    return Boolean;
-
-static void event_clicks(int i);
-
-procedure Set_Clicks
-       (To : in Natural);
-
-static void * event_clipboard();
-
 
-static const char * event_clipboard_type();
-
 
-static int event_command();
-
-function Key_Command
-    return Boolean;
-
-static int event_ctrl();
-
-function Key_Ctrl
-    return Boolean;
-
-static Fl_Event_Dispatch event_dispatch();
-
TBA
-static void event_dispatch(Fl_Event_Dispatch d);
-
 
-static int event_dx();
-
-function Mouse_DX
-    return Integer;
-
-static int event_dy();
-
-function Mouse_DY
-    return Integer;
-
-static int event_inside(const Fl_Widget *);
-
 
-static int event_inside(int, int, int, int);
-
-function Is_Inside
-       (X, Y, W, H : in Integer)
-    return Boolean;
-
-static int event_is_click();
-
-function Is_Click
-    return Boolean;
-
-static void event_is_click(int i);
-
See static void event_clicks(int i);
-static int event_key();
-
-function Last_Key
-    return Keypress;
-
-static int event_key(int key);
-
-function Pressed_During
-       (Key : in Keypress)
-    return Boolean;
-
-static int event_length();
-
-function Text_Length
-    return Natural;
-
-static int event_original_key();
-
-function Original_Last_Key
-    return Keypress;
-
-static int event_shift();
-
-function Key_Shift
-    return Boolean;
-
-static int event_state();
-
-function Last_Modifier
-    return Modifier;
-
-static int event_state(int mask);
-
-function Last_Modifier
-       (Had : in Modifier)
-    return Boolean;
-
-static const char * event_text();
-
-function Text
-    return String;
-
-static int event_x();
-
-function Mouse_X
-    return Integer;
-
-static int event_x_root();
-
-function Mouse_X_Root
-    return Integer;
-
-static int event_y();
-
-function Mouse_Y
-    return Integer;
-
-static int event_y_root();
-
-function Mouse_Y_Root
-    return Integer;
-
-static Fl_Widget * focus();
-
-function Get_Focus
-    return access FLTK.Widgets.Widget'Class;
-
-static void focus(Fl_Widget *);
-
-procedure Set_Focus
-       (To : in FLTK.Widgets.Widget'Class);
-
-static int get_key(int key);
-
-function Key_Now
-       (Key : in Keypress)
-    return Boolean;
-
-static void get_mouse(int &, int &);
-
-procedure Get_Mouse
-       (X, Y : out Integer);
-
-static Fl_Window * grab();
-
-function Get_Grab
-    return access FLTK.Widgets.Groups.Windows.Window'Class;
-
-static void grab(Fl_Window *);
-
-static void grab(Fl_Window &win);
-
-procedure Set_Grab
-       (To : in FLTK.Widgets.Groups.Windows.Window'Class);
-
-static Fl_Widget * pushed();
-
-function Get_Pushed
-    return access FLTK.Widgets.Widget'Class;
-
-static void pushed(Fl_Widget *);
-
-procedure Set_Pushed
-       (To : in FLTK.Widgets.Widget'Class);
-
-static void release();
-
-procedure Release_Grab;
-
-static void remove_handler(Fl_Event_Handler h);
-
-procedure Remove_Handler
-       (Func : in Event_Handler);
-
-static int test_shortcut(Fl_Shortcut);
-
 
-static int visible_focus();
-
-function Has_Visible_Focus
-    return Boolean;
-
-static void visible_focus(int v);
-
-procedure Set_Visible_Focus
-       (To : in Boolean);
-
- - - - - diff --git a/doc/fl_(fltk-events).html b/doc/fl_(fltk-events).html new file mode 100644 index 0000000..c9846fd --- /dev/null +++ b/doc/fl_(fltk-events).html @@ -0,0 +1,619 @@ + + + + + + Fl (FLTK.Events) Binding Map + + + + + + +

Fl (FLTK.Events) Binding Map

+ + +Back to Index + + + + + + + + + + +
Package name
FlFLTK.Events
+ + + + + + + + + + + + + + + + +
Types
Fl_Event_HandlerEvent_Handler
Fl_Event_DispatchEvent_Dispatch
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Static Functions and Procedures
+static void add_handler(Fl_Event_Handler h);
+
+procedure Add_Handler
+       (Func : in Event_Handler);
+
+static Fl_Widget * belowmouse();
+
+function Get_Below_Mouse
+    return access FLTK.Widgets.Widget'Class;
+
+static void belowmouse(Fl_Widget *);
+
+procedure Set_Below_Mouse
+       (To : in FLTK.Widgets.Widget'Class);
+
+static int compose(int &del);
+
+function Compose
+       (Del : out Natural)
+    return Boolean;
+
+static void compose_reset();
+
+procedure Compose_Reset;
+
+static int event();
+
+function Last
+    return Event_Kind;
+
+static int event_alt();
+
+function Key_Alt
+    return Boolean;
+
+static int event_button();
+
+function Last_Button
+    return Mouse_Button;
+
+static int event_button1();
+
+function Mouse_Left
+    return Boolean;
+
+static int event_button2();
+
+function Mouse_Middle
+    return Boolean;
+
+static int event_button3();
+
+function Mouse_Right
+    return Boolean;
+
+static int event_button4();
+
+function Mouse_Back
+    return Boolean;
+
+static int event_button5();
+
+function Mouse_Forward
+    return Boolean;
+
+static int event_buttons();
+
+procedure Mouse_Buttons
+       (Left, Middle, Right, Back, Forward : out Boolean);
+
+static int event_clicks();
+
+function Is_Multi_Click
+    return Boolean;
+
+function Get_Clicks
+    return Natural;
+
+static void event_clicks(int i);
+
+procedure Set_Clicks
+       (To : in Natural);
+
+static void * event_clipboard();
+
+function Clipboard_Text
+    return String;
+
+static const char * event_clipboard_type();
+
+function Clipboard_Kind
+    return String;
+
+static int event_command();
+
+function Key_Command
+    return Boolean;
+
+static int event_ctrl();
+
+function Key_Ctrl
+    return Boolean;
+
+static Fl_Event_Dispatch event_dispatch();
+
+function Get_Dispatch
+    return Event_Dispatch;
+
+static void event_dispatch(Fl_Event_Dispatch d);
+
+procedure Set_Dispatch
+       (Func : in Event_Dispatch);
+
+static int event_dx();
+
+function Mouse_DX
+    return Integer;
+
+static int event_dy();
+
+function Mouse_DY
+    return Integer;
+
+static int event_inside(const Fl_Widget *);
+
+function Is_Inside
+       (Child : in FLTK.Widgets.Widget'Class)
+    return Boolean;
+
+static int event_inside(int, int, int, int);
+
+function Is_Inside
+       (X, Y, W, H : in Integer)
+    return Boolean;
+
+static int event_is_click();
+
+function Is_Click
+    return Boolean;
+
+static void event_is_click(int i);
+
+procedure Clear_Click;
+
+static int event_key();
+
+function Last_Key
+    return Keypress;
+
+static int event_key(int key);
+
+function Pressed_During
+       (Key : in Keypress)
+    return Boolean;
+
+static int event_length();
+
+function Text_Length
+    return Natural;
+
+static int event_original_key();
+
+function Original_Last_Key
+    return Keypress;
+
+static int event_shift();
+
+function Key_Shift
+    return Boolean;
+
+static int event_state();
+
+function Last_Modifier
+    return Modifier;
+
+static int event_state(int mask);
+
+function Last_Modifier
+       (Had : in Modifier)
+    return Boolean;
+
+static const char * event_text();
+
+function Text
+    return String;
+
+static int event_x();
+
+function Mouse_X
+    return Integer;
+
+static int event_x_root();
+
+function Mouse_X_Root
+    return Integer;
+
+static int event_y();
+
+function Mouse_Y
+    return Integer;
+
+static int event_y_root();
+
+function Mouse_Y_Root
+    return Integer;
+
+static Fl_Widget * focus();
+
+function Get_Focus
+    return access FLTK.Widgets.Widget'Class;
+
+static void focus(Fl_Widget *);
+
+procedure Set_Focus
+       (To : in FLTK.Widgets.Widget'Class);
+
+static int get_key(int key);
+
+function Key_Now
+       (Key : in Keypress)
+    return Boolean;
+
+static void get_mouse(int &, int &);
+
+procedure Get_Mouse
+       (X, Y : out Integer);
+
+static Fl_Window * grab();
+
+function Get_Grab
+    return access FLTK.Widgets.Groups.Windows.Window'Class;
+
+static void grab(Fl_Window *);
+
+static void grab(Fl_Window &win);
+
+procedure Set_Grab
+       (To : in FLTK.Widgets.Groups.Windows.Window'Class);
+
+static int handle(int, Fl_Window *);
+
+function Handle_Dispatch
+       (Event  : in     Event_Kind;
+        Origin : in out FLTK.Widgets.Groups.Windows.Window'Class)
+    return Event_Outcome;
+
+static int handle_(int, Fl_Window *);
+
+function Handle
+       (Event  : in     Event_Kind;
+        Origin : in out FLTK.Widgets.Groups.Windows.Window'Class)
+    return Event_Outcome;
+
+static Fl_Widget * pushed();
+
+function Get_Pushed
+    return access FLTK.Widgets.Widget'Class;
+
+static void pushed(Fl_Widget *);
+
+procedure Set_Pushed
+       (To : in FLTK.Widgets.Widget'Class);
+
+static void release();
+
+procedure Release_Grab;
+
+static void remove_handler(Fl_Event_Handler h);
+
+procedure Remove_Handler
+       (Func : in Event_Handler);
+
+static int test_shortcut(Fl_Shortcut);
+
+function Test_Shortcut
+       (Shortcut : in Key_Combo)
+    return Boolean;
+
+static int visible_focus();
+
+function Has_Visible_Focus
+    return Boolean;
+
+static void visible_focus(int v);
+
+procedure Set_Visible_Focus
+       (To : in Boolean);
+
+ + + + + diff --git a/doc/fl_(fltk-screen).html b/doc/fl_(fltk-screen).html index a5f8722..7d44273 100644 --- a/doc/fl_(fltk-screen).html +++ b/doc/fl_(fltk-screen).html @@ -28,11 +28,43 @@ + + + + + + + + +
Types
Fl_ModeVisual_Mode
+ + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/doc/fl_(fltk-static).html b/doc/fl_(fltk-static).html index 3afc53a..ac47474 100644 --- a/doc/fl_(fltk-static).html +++ b/doc/fl_(fltk-static).html @@ -132,20 +132,6 @@ static void (*atclose)(Fl_Window *, void *); - - - - - - - - - - @@ -281,6 +267,15 @@ static int awake(Fl_Awake_Handler cb, void *message=0); + + + + + + + + + + + + + + + + + + + +
Static Functions and Procedures
+static int damage();
+
+function Is_Damaged
+    return Boolean;
+
+static void damage(int d);
+
+procedure Set_Damaged
+       (To : in Boolean);
+
 static void display(const char *);
 
@@ -43,6 +75,15 @@ procedure Set_Display_String
 
   
+static void flush();
+
+procedure Flush;
+
 static int h();
 
@@ -53,6 +94,15 @@ function Get_H
 
   
+static void redraw();
+
+procedure Redraw;
+
 static int screen_count();
 
@@ -180,7 +230,14 @@ procedure Work_Area
 
 static int visual(int);
 
 
+procedure Set_Visual_Mode
+       (Value : in Visual_Mode);
+
+function Set_Visual_Mode
+       (Value : in Visual_Mode)
+    return Boolean;
+
-static char const * const clipboard_image = "image";
-
 
-static char const * const clipboard_plain_text = "text/plain";
-
 
 static const char * const help = helpmsg + 13;
 
 
+static void awake(void *message=0);
+
+procedure Awake;
+
 static void background(uchar, uchar, uchar);
 
@@ -603,6 +598,15 @@ function Is_Scheme
 
   
+static int lock();
+
+procedure Lock;
+
 static Fl_Window * modal();
 
@@ -948,6 +952,22 @@ static void set_labeltype(Fl_Labeltype, Fl_Labeltype from);
 
 
+static void * thread_message();
+
 
+static void unlock();
+
+procedure Unlock;
+
diff --git a/doc/index.html b/doc/index.html index 57ff15c..af2faf1 100644 --- a/doc/index.html +++ b/doc/index.html @@ -20,7 +20,7 @@
  • Filename
  • Fl
  • Fl (FLTK.Errors)
  • -
  • Fl (FLTK.Event)
  • +
  • Fl (FLTK.Events)
  • Fl (FLTK.Screen)
  • Fl (FLTK.Static)
  • Fl_Adjuster
  • @@ -161,7 +161,7 @@
  • FLTK.Draw
  • FLTK.Environment
  • FLTK.Errors
  • -
  • FLTK.Event
  • +
  • FLTK.Events
  • FLTK.File_Choosers
  • FLTK.Filenames
  • FLTK.Help_Dialogs
  • -- cgit