summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-scrolls.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-05-31 21:16:34 +1000
committerJed Barber <jjbarber@y7mail.com>2017-05-31 21:16:34 +1000
commitb2aed4668c563b5649614938b22bf417b0b7f0bc (patch)
treef8c0166b359f25d0e157562a9cf1818286166828 /src/fltk-widgets-groups-scrolls.ads
parentdda92d3223611c1ce22597c5839e67ecf0dff5ae (diff)
Scroll widgets added
Diffstat (limited to 'src/fltk-widgets-groups-scrolls.ads')
-rw-r--r--src/fltk-widgets-groups-scrolls.ads78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/fltk-widgets-groups-scrolls.ads b/src/fltk-widgets-groups-scrolls.ads
new file mode 100644
index 0000000..e4ead1b
--- /dev/null
+++ b/src/fltk-widgets-groups-scrolls.ads
@@ -0,0 +1,78 @@
+
+
+package FLTK.Widgets.Groups.Scrolls is
+
+
+ type Scroll is new Group with private;
+
+
+ type Scroll_Kind is
+ (Horizontal,
+ Vertical,
+ Both,
+ Always_On,
+ Horizontal_Always,
+ Vertical_Always,
+ Both_Always);
+
+
+ function Create
+ (X, Y, W, H : in Integer;
+ Text : in String)
+ return Scroll;
+
+
+ procedure Scroll_To
+ (This : in out Scroll;
+ X, Y : in Integer);
+
+
+ function Get_Scrollbar_Size
+ (This : in Scroll)
+ return Integer;
+
+
+ procedure Set_Scrollbar_Size
+ (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
+ (This : in Scroll)
+ return Integer;
+
+
+ function Get_Scroll_Y
+ (This : in Scroll)
+ return Integer;
+
+
+ procedure Set_Type
+ (This : in out Scroll;
+ Mode : in Scroll_Kind);
+
+
+ procedure Draw
+ (This : in out Scroll);
+
+
+ function Handle
+ (This : in out Scroll;
+ Event : in Event_Kind)
+ return Event_Outcome;
+
+
+private
+
+
+ type Scroll is new Group with null record;
+
+
+ overriding procedure Finalize
+ (This : in out Scroll);
+
+
+end FLTK.Widgets.Groups.Scrolls;
+