summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-windows-single-menu.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-groups-windows-single-menu.adb')
-rw-r--r--src/fltk-widgets-groups-windows-single-menu.adb32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/fltk-widgets-groups-windows-single-menu.adb b/src/fltk-widgets-groups-windows-single-menu.adb
index 9c69d9c..9c4d1f4 100644
--- a/src/fltk-widgets-groups-windows-single-menu.adb
+++ b/src/fltk-widgets-groups-windows-single-menu.adb
@@ -1,9 +1,14 @@
-with Interfaces.C;
-with System;
-use type System.Address;
-use type Interfaces.C.unsigned;
+with
+
+ Interfaces.C,
+ System;
+
+use type
+
+ System.Address,
+ Interfaces.C.unsigned;
package body FLTK.Widgets.Groups.Windows.Single.Menu is
@@ -18,6 +23,8 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
pragma Import (C, menu_window_set_handle_hook, "menu_window_set_handle_hook");
+
+
function new_fl_menu_window
(X, Y, W, H : in Interfaces.C.int;
Label : in Interfaces.C.char_array)
@@ -34,6 +41,8 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
pragma Import (C, free_fl_menu_window, "free_fl_menu_window");
+
+
procedure fl_menu_window_show
(M : in System.Address);
pragma Import (C, fl_menu_window_show, "fl_menu_window_show");
@@ -46,6 +55,9 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
(M : in System.Address);
pragma Import (C, fl_menu_window_flush, "fl_menu_window_flush");
+
+
+
procedure fl_menu_window_set_overlay
(M : in System.Address);
pragma Import (C, fl_menu_window_set_overlay, "fl_menu_window_set_overlay");
@@ -59,6 +71,9 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
return Interfaces.C.unsigned;
pragma Import (C, fl_menu_window_overlay, "fl_menu_window_overlay");
+
+
+
procedure fl_menu_window_draw
(W : in System.Address);
pragma Import (C, fl_menu_window_draw, "fl_menu_window_draw");
@@ -110,8 +125,6 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Create;
-
-
function Create
(W, H : in Integer)
return Menu_Window is
@@ -138,8 +151,6 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Show;
-
-
procedure Hide
(This : in out Menu_Window) is
begin
@@ -147,8 +158,6 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Hide;
-
-
procedure Flush
(This : in out Menu_Window) is
begin
@@ -166,7 +175,6 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Get_Overlay;
-
procedure Set_Overlay
(This : in out Menu_Window;
Value : in Boolean) is
@@ -188,8 +196,6 @@ package body FLTK.Widgets.Groups.Windows.Single.Menu is
end Draw;
-
-
function Handle
(This : in out Menu_Window;
Event : in Event_Kind)