summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-scrolls.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 00:53:56 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 00:53:56 +1300
commitf9e453e3d456514066e8ecbed9fbac93a588a0d0 (patch)
tree06587afde830fb324d5ab7372f0f1686c4fd993a /src/fltk-widgets-groups-scrolls.ads
parent67a43ef89ba41ac32b86cda7396c16fffaf691b3 (diff)
Using the type method is now more consistent
Diffstat (limited to 'src/fltk-widgets-groups-scrolls.ads')
-rw-r--r--src/fltk-widgets-groups-scrolls.ads45
1 files changed, 25 insertions, 20 deletions
diff --git a/src/fltk-widgets-groups-scrolls.ads b/src/fltk-widgets-groups-scrolls.ads
index 9f5cdd2..f4cbad0 100644
--- a/src/fltk-widgets-groups-scrolls.ads
+++ b/src/fltk-widgets-groups-scrolls.ads
@@ -18,13 +18,13 @@ package FLTK.Widgets.Groups.Scrolls is
with Implicit_Dereference => Data;
type Scroll_Kind is
- (Horizontal,
- Vertical,
- Both,
- Always_On,
- Horizontal_Always,
- Vertical_Always,
- Both_Always);
+ (Horizontal,
+ Vertical,
+ Both,
+ Always_On,
+ Horizontal_Always,
+ Vertical_Always,
+ Both_Always);
@@ -68,9 +68,15 @@ package FLTK.Widgets.Groups.Scrolls is
(This : in out Scroll;
X, Y : in Integer);
- procedure Set_Type
- (This : in out Scroll;
- Mode : in Scroll_Kind);
+ -- These two functions are far too similar in name and
+ -- function to the Get_X and Get_Y for Widgets.
+ function Get_Scroll_X
+ (This : in Scroll)
+ return Integer;
+
+ function Get_Scroll_Y
+ (This : in Scroll)
+ return Integer;
@@ -83,15 +89,13 @@ package FLTK.Widgets.Groups.Scrolls is
(This : in out Scroll;
To : in Integer);
- -- These two functions are far too similar in name and
- -- function to the Get_X and Get_Y for Widgets.
- function Get_Scroll_X
+ function Get_Kind
(This : in Scroll)
- return Integer;
+ return Scroll_Kind;
- function Get_Scroll_Y
- (This : in Scroll)
- return Integer;
+ procedure Set_Kind
+ (This : in out Scroll;
+ Mode : in Scroll_Kind);
@@ -130,12 +134,13 @@ private
pragma Inline (Clear);
pragma Inline (Scroll_To);
- pragma Inline (Set_Type);
+ pragma Inline (Get_Scroll_X);
+ pragma Inline (Get_Scroll_Y);
pragma Inline (Get_Scrollbar_Size);
pragma Inline (Set_Scrollbar_Size);
- pragma Inline (Get_Scroll_X);
- pragma Inline (Get_Scroll_Y);
+ pragma Inline (Get_Kind);
+ pragma Inline (Set_Kind);
pragma Inline (Draw);
pragma Inline (Handle);