summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-inputs-outputs.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/fltk-widgets-inputs-outputs.adb')
-rw-r--r--src/fltk-widgets-inputs-outputs.adb42
1 files changed, 23 insertions, 19 deletions
diff --git a/src/fltk-widgets-inputs-outputs.adb b/src/fltk-widgets-inputs-outputs.adb
index 8db5671..00c7d0c 100644
--- a/src/fltk-widgets-inputs-outputs.adb
+++ b/src/fltk-widgets-inputs-outputs.adb
@@ -65,25 +65,29 @@ package body FLTK.Widgets.Inputs.Outputs is
- function Create
- (X, Y, W, H : in Integer;
- Text : in String)
- return Output is
- begin
- return This : Output do
- This.Void_Ptr := new_fl_output
- (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));
- output_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
- output_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 Output is
+ begin
+ return This : Output do
+ This.Void_Ptr := new_fl_output
+ (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));
+ output_set_draw_hook (This.Void_Ptr, Draw_Hook'Address);
+ output_set_handle_hook (This.Void_Ptr, Handle_Hook'Address);
+ end return;
+ end Create;
+
+ end Forge;