summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-buttons-light-round.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-buttons-light-round.adb')
-rw-r--r--src/fltk-widgets-buttons-light-round.adb42
1 files changed, 23 insertions, 19 deletions
diff --git a/src/fltk-widgets-buttons-light-round.adb b/src/fltk-widgets-buttons-light-round.adb
index 7b10003..3287308 100644
--- a/src/fltk-widgets-buttons-light-round.adb
+++ b/src/fltk-widgets-buttons-light-round.adb
@@ -65,25 +65,29 @@ package body FLTK.Widgets.Buttons.Light.Round is
- function Create
- (X, Y, W, H : in Integer;
- Text : in String)
- return Round_Button is
- begin
- return This : Round_Button do
- This.Void_Ptr := new_fl_round_button
- (Interfaces.C.int (X),
- Interfaces.C.int (Y),
- Interfaces.C.int (W),
- Interfaces.C.int (H),
- Interfaces.C.To_C (Text));
- fl_widget_set_user_data
- (This.Void_Ptr,
- Widget_Convert.To_Address (This'Unchecked_Access));
- round_button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
- round_button_set_handle_hook (This.Void_Ptr, Handle_Hook'Address);
- end return;
- end Create;
+ package body Forge is
+
+ function Create
+ (X, Y, W, H : in Integer;
+ Text : in String)
+ return Round_Button is
+ begin
+ return This : Round_Button do
+ This.Void_Ptr := new_fl_round_button
+ (Interfaces.C.int (X),
+ Interfaces.C.int (Y),
+ Interfaces.C.int (W),
+ Interfaces.C.int (H),
+ Interfaces.C.To_C (Text));
+ fl_widget_set_user_data
+ (This.Void_Ptr,
+ Widget_Convert.To_Address (This'Unchecked_Access));
+ round_button_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
+ round_button_set_handle_hook (This.Void_Ptr, Handle_Hook'Address);
+ end return;
+ end Create;
+
+ end Forge;