diff options
Diffstat (limited to 'src/fltk-widgets-groups-windows-double.adb')
-rw-r--r-- | src/fltk-widgets-groups-windows-double.adb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/fltk-widgets-groups-windows-double.adb b/src/fltk-widgets-groups-windows-double.adb index da48471..c81ffc9 100644 --- a/src/fltk-widgets-groups-windows-double.adb +++ b/src/fltk-widgets-groups-windows-double.adb @@ -12,10 +12,20 @@ package body FLTK.Widgets.Groups.Windows.Double is (W, D : in System.Address); pragma Import (C, double_window_set_draw_hook, "double_window_set_draw_hook"); + procedure double_window_set_handle_hook + (W, H : in System.Address); + pragma Import (C, double_window_set_handle_hook, "double_window_set_handle_hook"); + procedure fl_double_window_draw (W : in System.Address); pragma Import (C, fl_double_window_draw, "fl_double_window_draw"); + function fl_double_window_handle + (W : in System.Address; + E : in Interfaces.C.int) + return Interfaces.C.int; + pragma Import (C, fl_double_window_handle, "fl_double_window_handle"); + function new_fl_double_window (X, Y, W, H : in Interfaces.C.int; Text : in Interfaces.C.char_array) @@ -69,6 +79,18 @@ package body FLTK.Widgets.Groups.Windows.Double is + function Handle + (This : in out Double_Window; + Event : in Event_Kind) + return Event_Outcome is + begin + return Event_Outcome'Val + (fl_double_window_handle (This.Void_Ptr, Event_Kind'Pos (Event))); + end Handle; + + + + procedure Finalize (This : in out Double_Window) is begin @@ -102,6 +124,7 @@ package body FLTK.Widgets.Groups.Windows.Double is (This.Void_Ptr, Widget_Convert.To_Address (This'Unchecked_Access)); double_window_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); + double_window_set_handle_hook (This.Void_Ptr, Handle_Hook'Address); end return; end Create; |