diff options
Diffstat (limited to 'src/fltk-widgets-groups-wizards.adb')
-rw-r--r-- | src/fltk-widgets-groups-wizards.adb | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/src/fltk-widgets-groups-wizards.adb b/src/fltk-widgets-groups-wizards.adb index ff9bc92..84c70ae 100644 --- a/src/fltk-widgets-groups-wizards.adb +++ b/src/fltk-widgets-groups-wizards.adb @@ -89,26 +89,30 @@ package body FLTK.Widgets.Groups.Wizards is - function Create - (X, Y, W, H : in Integer; - Text : in String) - return Wizard is - begin - return This : Wizard do - This.Void_Ptr := new_fl_wizard - (Interfaces.C.int (X), - Interfaces.C.int (Y), - Interfaces.C.int (W), - Interfaces.C.int (H), - Interfaces.C.To_C (Text)); - fl_group_end (This.Void_Ptr); - fl_widget_set_user_data - (This.Void_Ptr, - Widget_Convert.To_Address (This'Unchecked_Access)); - wizard_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); - wizard_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 Wizard is + begin + return This : Wizard do + This.Void_Ptr := new_fl_wizard + (Interfaces.C.int (X), + Interfaces.C.int (Y), + Interfaces.C.int (W), + Interfaces.C.int (H), + Interfaces.C.To_C (Text)); + fl_group_end (This.Void_Ptr); + fl_widget_set_user_data + (This.Void_Ptr, + Widget_Convert.To_Address (This'Unchecked_Access)); + wizard_set_draw_hook (This.Void_Ptr, Draw_Hook'Address); + wizard_set_handle_hook (This.Void_Ptr, Handle_Hook'Address); + end return; + end Create; + + end Forge; |