summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-windows-double-overlay.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-12 01:14:58 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-12 01:14:58 +1300
commite93b9bbc02e2791f3a35b6f077fcbb8514c28aed (patch)
tree3661530027db6809a9cbad7b2477416009e00787 /src/fltk-widgets-groups-windows-double-overlay.ads
parent53aa8144851913994b963ed611cca8885b8f9a9e (diff)
Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there
Diffstat (limited to 'src/fltk-widgets-groups-windows-double-overlay.ads')
-rw-r--r--src/fltk-widgets-groups-windows-double-overlay.ads40
1 files changed, 10 insertions, 30 deletions
diff --git a/src/fltk-widgets-groups-windows-double-overlay.ads b/src/fltk-widgets-groups-windows-double-overlay.ads
index 097abb8..082087c 100644
--- a/src/fltk-widgets-groups-windows-double-overlay.ads
+++ b/src/fltk-widgets-groups-windows-double-overlay.ads
@@ -7,10 +7,6 @@
package FLTK.Widgets.Groups.Windows.Double.Overlay is
- -------------
- -- Types --
- -------------
-
type Overlay_Window is new Double_Window with private;
type Overlay_Window_Reference (Data : not null access Overlay_Window'Class) is
@@ -19,10 +15,6 @@ package FLTK.Widgets.Groups.Windows.Double.Overlay is
- --------------------
- -- Constructors --
- --------------------
-
package Forge is
function Create
@@ -40,10 +32,6 @@ package FLTK.Widgets.Groups.Windows.Double.Overlay is
- ---------------
- -- Display --
- ---------------
-
procedure Show
(This : in out Overlay_Window);
@@ -56,41 +44,33 @@ package FLTK.Widgets.Groups.Windows.Double.Overlay is
- -------------
- -- Other --
- -------------
-
function Can_Do_Overlay
(This : in Overlay_Window)
return Boolean;
+ procedure Resize
+ (This : in out Overlay_Window;
+ X, Y, W, H : in Integer);
- ----------------------------------
- -- Drawing and Event Handling --
- ----------------------------------
-
- procedure Draw
- (This : in out Overlay_Window);
+ -- You must override this subprogram
procedure Draw_Overlay
- (This : in out Overlay_Window) is null;
+ (This : in out Overlay_Window);
procedure Redraw_Overlay
(This : in out Overlay_Window);
- function Handle
- (This : in out Overlay_Window;
- Event : in Event_Kind)
- return Event_Outcome;
-
private
type Overlay_Window is new Double_Window with null record;
+ overriding procedure Initialize
+ (This : in out Overlay_Window);
+
overriding procedure Finalize
(This : in out Overlay_Window);
@@ -110,11 +90,11 @@ private
pragma Inline (Flush);
pragma Inline (Can_Do_Overlay);
+ pragma Inline (Resize);
- pragma Inline (Draw);
pragma Inline (Redraw_Overlay);
- pragma Inline (Handle);
end FLTK.Widgets.Groups.Windows.Double.Overlay;
+