summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-progress_bars.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2018-03-03 11:36:05 +1100
committerJed Barber <jjbarber@y7mail.com>2018-03-03 11:36:05 +1100
commit624318b4c5bd9ce18f232a1b180fd68c59493628 (patch)
treefcd10f2d9ff58601eeb53780dc56e17e18c6e2bd /src/fltk-widgets-progress_bars.ads
parentde5fa364a30e187fd450bf4420019936f09fd9ab (diff)
Added FLTK.Widgets.Progress_Bars
Diffstat (limited to 'src/fltk-widgets-progress_bars.ads')
-rw-r--r--src/fltk-widgets-progress_bars.ads65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/fltk-widgets-progress_bars.ads b/src/fltk-widgets-progress_bars.ads
new file mode 100644
index 0000000..252657b
--- /dev/null
+++ b/src/fltk-widgets-progress_bars.ads
@@ -0,0 +1,65 @@
+
+
+package FLTK.Widgets.Progress_Bars is
+
+
+ type Progress_Bar is new Widget with private;
+
+
+
+
+ function Create
+ (X, Y, W, H : in Integer;
+ Text : in String)
+ return Progress_Bar;
+
+
+
+
+ function Get_Minimum
+ (This : in Progress_Bar)
+ return Float;
+
+ procedure Set_Minimum
+ (This : in out Progress_Bar;
+ To : in Float);
+
+ function Get_Maximum
+ (This : in Progress_Bar)
+ return Float;
+
+ procedure Set_Maximum
+ (This : in out Progress_Bar;
+ To : in Float);
+
+ function Get_Value
+ (This : in Progress_Bar)
+ return Float;
+
+ procedure Set_Value
+ (This : in out Progress_Bar;
+ To : in Float);
+
+
+
+
+ procedure Draw
+ (This : in out Progress_Bar);
+
+ function Handle
+ (This : in out Progress_Bar;
+ Event : in Event_Kind)
+ return Event_Outcome;
+
+
+private
+
+
+ type Progress_Bar is new Widget with null record;
+
+ overriding procedure Finalize
+ (This : in out Progress_Bar);
+
+
+end FLTK.Widgets.Progress_Bars;
+