summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-inputs-text-file.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-inputs-text-file.adb')
-rw-r--r--body/fltk-widgets-inputs-text-file.adb24
1 files changed, 19 insertions, 5 deletions
diff --git a/body/fltk-widgets-inputs-text-file.adb b/body/fltk-widgets-inputs-text-file.adb
index 18b227f..ac3cec7 100644
--- a/body/fltk-widgets-inputs-text-file.adb
+++ b/body/fltk-widgets-inputs-text-file.adb
@@ -28,6 +28,8 @@ package body FLTK.Widgets.Inputs.Text.File is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_file_input
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -43,6 +45,8 @@ package body FLTK.Widgets.Inputs.Text.File is
+ -- Settings --
+
function fl_file_input_get_down_box
(F : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -70,6 +74,8 @@ package body FLTK.Widgets.Inputs.Text.File is
+ -- Text Field --
+
function fl_file_input_get_value
(F : in Storage.Integer_Address)
return Interfaces.C.Strings.chars_ptr;
@@ -87,6 +93,8 @@ package body FLTK.Widgets.Inputs.Text.File is
+ -- Drawing, Events --
+
procedure fl_file_input_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_file_input_draw, "fl_file_input_draw");
@@ -156,11 +164,11 @@ package body FLTK.Widgets.Inputs.Text.File is
begin
return This : File_Input do
This.Void_Ptr := new_fl_file_input
- (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;
@@ -186,6 +194,8 @@ package body FLTK.Widgets.Inputs.Text.File is
-- API Subprograms --
-----------------------
+ -- Settings --
+
function Get_Down_Box
(This : in File_Input)
return Box_Kind is
@@ -220,6 +230,8 @@ package body FLTK.Widgets.Inputs.Text.File is
+ -- Text Field --
+
function Get_Value
(This : in File_Input)
return String
@@ -253,6 +265,8 @@ package body FLTK.Widgets.Inputs.Text.File is
+ -- Drawing, Events --
+
procedure Draw
(This : in out File_Input) is
begin