summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-progress_bars.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-progress_bars.adb')
-rw-r--r--body/fltk-widgets-progress_bars.adb20
1 files changed, 15 insertions, 5 deletions
diff --git a/body/fltk-widgets-progress_bars.adb b/body/fltk-widgets-progress_bars.adb
index b82fef6..8dc24ee 100644
--- a/body/fltk-widgets-progress_bars.adb
+++ b/body/fltk-widgets-progress_bars.adb
@@ -17,6 +17,8 @@ package body FLTK.Widgets.Progress_Bars is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_progress
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -32,6 +34,8 @@ package body FLTK.Widgets.Progress_Bars is
+ -- Values --
+
function fl_progress_get_minimum
(P : in Storage.Integer_Address)
return Interfaces.C.C_float;
@@ -71,6 +75,8 @@ package body FLTK.Widgets.Progress_Bars is
+ -- Drawing, Events --
+
procedure fl_progress_draw
(P : in Storage.Integer_Address);
pragma Import (C, fl_progress_draw, "fl_progress_draw");
@@ -140,11 +146,11 @@ package body FLTK.Widgets.Progress_Bars is
begin
return This : Progress_Bar do
This.Void_Ptr := new_fl_progress
- (Interfaces.C.int (X),
- Interfaces.C.int (Y),
- Interfaces.C.int (W),
- Interfaces.C.int (H),
- Interfaces.C.To_C (Text));
+ (Interfaces.C.int (X),
+ Interfaces.C.int (Y),
+ Interfaces.C.int (W),
+ Interfaces.C.int (H),
+ Interfaces.C.To_C (Text));
Extra_Init (This, X, Y, W, H, Text);
end return;
end Create;
@@ -170,6 +176,8 @@ package body FLTK.Widgets.Progress_Bars is
-- API Subprograms --
-----------------------
+ -- Values --
+
function Get_Minimum
(This : in Progress_Bar)
return Float is
@@ -220,6 +228,8 @@ package body FLTK.Widgets.Progress_Bars is
+ -- Drawing --
+
procedure Draw
(This : in out Progress_Bar) is
begin