summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-clocks-updated.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-clocks-updated.adb')
-rw-r--r--body/fltk-widgets-clocks-updated.adb28
1 files changed, 17 insertions, 11 deletions
diff --git a/body/fltk-widgets-clocks-updated.adb b/body/fltk-widgets-clocks-updated.adb
index 8b7d5e6..035ffda 100644
--- a/body/fltk-widgets-clocks-updated.adb
+++ b/body/fltk-widgets-clocks-updated.adb
@@ -17,6 +17,8 @@ package body FLTK.Widgets.Clocks.Updated is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_clock
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -40,6 +42,8 @@ package body FLTK.Widgets.Clocks.Updated is
+ -- Drawing, Events --
+
procedure fl_clock_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_clock_draw, "fl_clock_draw");
@@ -109,11 +113,11 @@ package body FLTK.Widgets.Clocks.Updated is
begin
return This : Updated_Clock do
This.Void_Ptr := new_fl_clock
- (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;
@@ -139,12 +143,12 @@ package body FLTK.Widgets.Clocks.Updated is
begin
return This : Updated_Clock do
This.Void_Ptr := new_fl_clock2
- (Box_Kind'Pos (Kind),
- Interfaces.C.int (X),
- Interfaces.C.int (Y),
- Interfaces.C.int (W),
- Interfaces.C.int (H),
- Interfaces.C.To_C (Text));
+ (Box_Kind'Pos (Kind),
+ 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;
@@ -171,6 +175,8 @@ package body FLTK.Widgets.Clocks.Updated is
-- API Subprograms --
-----------------------
+ -- Events --
+
function Handle
(This : in out Updated_Clock;
Event : in Event_Kind)