summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-scrolls.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-14 00:06:33 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-14 00:06:33 +1300
commit88ca2ea14ba6651404cd4ea347ac8f06afdd0558 (patch)
tree74f6b8064f112bd96e66c060537c439ec54d67cd /src/fltk-widgets-groups-scrolls.ads
parent41fca67267180571b5107bf7b9516eb669588b25 (diff)
Ensured Widgets will remove themselves from a Group upon dealloc and Groups won't inadvertantly dealloc Widgets upon Clear
Diffstat (limited to 'src/fltk-widgets-groups-scrolls.ads')
-rw-r--r--src/fltk-widgets-groups-scrolls.ads26
1 files changed, 21 insertions, 5 deletions
diff --git a/src/fltk-widgets-groups-scrolls.ads b/src/fltk-widgets-groups-scrolls.ads
index 11b7f9a..8030fcd 100644
--- a/src/fltk-widgets-groups-scrolls.ads
+++ b/src/fltk-widgets-groups-scrolls.ads
@@ -4,6 +4,11 @@
-- Released into the public domain
+with
+
+ FLTK.Widgets.Valuators.Sliders.Scrollbars;
+
+
package FLTK.Widgets.Groups.Scrolls is
@@ -36,6 +41,17 @@ package FLTK.Widgets.Groups.Scrolls is
+ function H_Bar
+ (This : in out Scroll)
+ return Valuators.Sliders.Scrollbars.Scrollbar_Reference;
+
+ function V_Bar
+ (This : in out Scroll)
+ return Valuators.Sliders.Scrollbars.Scrollbar_Reference;
+
+
+
+
procedure Clear
(This : in out Scroll);
@@ -86,7 +102,9 @@ package FLTK.Widgets.Groups.Scrolls is
private
- type Scroll is new Group with null record;
+ type Scroll is new Group with record
+ Horizon, Vertigo : aliased Valuators.Sliders.Scrollbars.Scrollbar;
+ end record;
overriding procedure Initialize
(This : in out Scroll);
@@ -97,12 +115,10 @@ private
procedure Extra_Init
(This : in out Scroll;
X, Y, W, H : in Integer;
- Text : in String)
- with Inline;
+ Text : in String);
procedure Extra_Final
- (This : in out Scroll)
- with Inline;
+ (This : in out Scroll);
pragma Inline (Clear);