aboutsummaryrefslogtreecommitdiff
path: root/body/fltk-widgets-groups-windows-double-overlay.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-groups-windows-double-overlay.adb')
-rw-r--r--body/fltk-widgets-groups-windows-double-overlay.adb30
1 files changed, 18 insertions, 12 deletions
diff --git a/body/fltk-widgets-groups-windows-double-overlay.adb b/body/fltk-widgets-groups-windows-double-overlay.adb
index c4460f1..94542af 100644
--- a/body/fltk-widgets-groups-windows-double-overlay.adb
+++ b/body/fltk-widgets-groups-windows-double-overlay.adb
@@ -6,7 +6,7 @@
with
- FLTK.Show_Argv,
+ FLTK.Args_Marshal,
Interfaces.C,
System.Address_To_Access_Conversions;
@@ -22,6 +22,8 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_overlay_window
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -44,6 +46,8 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
+ -- Visibility --
+
procedure fl_overlay_window_show
(W : in Storage.Integer_Address);
pragma Import (C, fl_overlay_window_show, "fl_overlay_window_show");
@@ -69,6 +73,8 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
+ -- Settings --
+
function fl_overlay_window_can_do_overlay
(W : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -84,6 +90,8 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
+ -- Drawing, Events --
+
procedure fl_overlay_window_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_overlay_window_draw, "fl_overlay_window_draw");
@@ -117,7 +125,7 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
procedure Overlay_Window_Draw_Overlay_Hook
(U : in Storage.Integer_Address)
is
- Overlay_Widget : access Overlay_Window'Class :=
+ Overlay_Widget : constant access Overlay_Window'Class :=
Over_Convert.To_Pointer (Storage.To_Address (U));
begin
Overlay_Widget.Draw_Overlay;
@@ -233,9 +241,11 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
- ---------------
- -- Display --
- ---------------
+ -----------------------
+ -- API Subprograms --
+ -----------------------
+
+ -- Visibility --
procedure Show
(This : in out Overlay_Window) is
@@ -247,7 +257,7 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
procedure Show_With_Args
(This : in out Overlay_Window) is
begin
- FLTK.Show_Argv.Dispatch (fl_overlay_window_show2'Access, This.Void_Ptr);
+ FLTK.Args_Marshal.Dispatch (fl_overlay_window_show2'Access, This.Void_Ptr);
end Show_With_Args;
@@ -267,9 +277,7 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
- -------------
- -- Other --
- -------------
+ -- Settings --
function Can_Do_Overlay
(This : in Overlay_Window)
@@ -294,9 +302,7 @@ package body FLTK.Widgets.Groups.Windows.Double.Overlay is
- ----------------------------------
- -- Drawing and Event Handling --
- ----------------------------------
+ -- Drawing, Events --
procedure Draw_Overlay
(This : in out Overlay_Window) is