summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-buttons.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-06-17 11:28:39 +1000
committerJed Barber <jjbarber@y7mail.com>2017-06-17 11:28:39 +1000
commitfb37523537cdb69a31dede401a604981ce8b7b9d (patch)
tree9d8f8dc3a00ce27b69aa4b7d7696b49d659fcbe1 /src/fltk-widgets-buttons.adb
parent33c3691b571ce4b6a2aa6997b70c3bc5d991ca9d (diff)
Updated coding style, added progress log
Diffstat (limited to 'src/fltk-widgets-buttons.adb')
-rw-r--r--src/fltk-widgets-buttons.adb24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/fltk-widgets-buttons.adb b/src/fltk-widgets-buttons.adb
index b28449f..45b3a6e 100644
--- a/src/fltk-widgets-buttons.adb
+++ b/src/fltk-widgets-buttons.adb
@@ -1,8 +1,13 @@
-with Interfaces.C;
-with System;
-use type System.Address;
+with
+
+ Interfaces.C,
+ System;
+
+use type
+
+ System.Address;
package body FLTK.Widgets.Buttons is
@@ -17,6 +22,8 @@ package body FLTK.Widgets.Buttons is
pragma Import (C, button_set_handle_hook, "button_set_handle_hook");
+
+
function new_fl_button
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -28,6 +35,8 @@ package body FLTK.Widgets.Buttons is
pragma Import (C, free_fl_button, "free_fl_button");
+
+
function fl_button_get_state
(B : in System.Address)
return Interfaces.C.int;
@@ -42,6 +51,9 @@ package body FLTK.Widgets.Buttons is
(B : in System.Address);
pragma Import (C, fl_button_set_only, "fl_button_set_only");
+
+
+
procedure fl_button_draw
(W : in System.Address);
pragma Import (C, fl_button_draw, "fl_button_draw");
@@ -101,8 +113,6 @@ package body FLTK.Widgets.Buttons is
end Get_State;
-
-
procedure Set_State
(This : in out Button;
St : in State) is
@@ -111,8 +121,6 @@ package body FLTK.Widgets.Buttons is
end Set_State;
-
-
procedure Set_Only
(This : in out Button) is
begin
@@ -129,8 +137,6 @@ package body FLTK.Widgets.Buttons is
end Draw;
-
-
function Handle
(This : in out Button;
Event : in Event_Kind)