summaryrefslogtreecommitdiff
path: root/body/fltk-widgets-inputs.adb
diff options
context:
space:
mode:
Diffstat (limited to 'body/fltk-widgets-inputs.adb')
-rw-r--r--body/fltk-widgets-inputs.adb44
1 files changed, 39 insertions, 5 deletions
diff --git a/body/fltk-widgets-inputs.adb b/body/fltk-widgets-inputs.adb
index 6863110..888ef68 100644
--- a/body/fltk-widgets-inputs.adb
+++ b/body/fltk-widgets-inputs.adb
@@ -28,6 +28,8 @@ package body FLTK.Widgets.Inputs is
-- Functions From C --
------------------------
+ -- Allocation --
+
function new_fl_input
(X, Y, W, H : in Interfaces.C.int;
Text : in Interfaces.C.char_array)
@@ -43,6 +45,8 @@ package body FLTK.Widgets.Inputs is
+ -- Clipboard --
+
function fl_input_copy
(I : in Storage.Integer_Address;
C : in Interfaces.C.int)
@@ -85,6 +89,8 @@ package body FLTK.Widgets.Inputs is
+ -- Readonly, Tabs, Wrap --
+
function fl_input_get_readonly
(I : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -124,6 +130,8 @@ package body FLTK.Widgets.Inputs is
+ -- Shortcut, Input Position --
+
function fl_input_get_input_type
(I : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -184,6 +192,8 @@ package body FLTK.Widgets.Inputs is
+ -- Text Field --
+
function fl_input_index
(I : in Storage.Integer_Address;
P : in Interfaces.C.int)
@@ -219,6 +229,8 @@ package body FLTK.Widgets.Inputs is
+ -- Input Size --
+
function fl_input_get_maximum_size
(I : in Storage.Integer_Address)
return Interfaces.C.int;
@@ -240,6 +252,8 @@ package body FLTK.Widgets.Inputs is
+ -- Cursors, Text Settings --
+
function fl_input_get_cursor_color
(I : in Storage.Integer_Address)
return Interfaces.C.unsigned;
@@ -291,6 +305,8 @@ package body FLTK.Widgets.Inputs is
+ -- Dimensions --
+
procedure fl_input_set_size
(I : in Storage.Integer_Address;
W, H : in Interfaces.C.int);
@@ -306,6 +322,8 @@ package body FLTK.Widgets.Inputs is
+ -- Drawing, Events --
+
procedure fl_input_draw
(W : in Storage.Integer_Address);
pragma Import (C, fl_input_draw, "fl_input_draw");
@@ -375,11 +393,11 @@ package body FLTK.Widgets.Inputs is
begin
return This : Input do
This.Void_Ptr := new_fl_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;
@@ -405,6 +423,8 @@ package body FLTK.Widgets.Inputs is
-- API Subprograms --
-----------------------
+ -- Clipboard --
+
procedure Copy
(This : in out Input;
Destination : in Clipboard_Kind := Cut_Paste_Board)
@@ -540,6 +560,8 @@ package body FLTK.Widgets.Inputs is
+ -- Readonly, Tabs, Wrap --
+
function Is_Readonly
(This : in Input)
return Boolean is
@@ -590,6 +612,8 @@ package body FLTK.Widgets.Inputs is
+ -- Shortcut, Input Position --
+
function Get_Kind
(This : in Input)
return Input_Kind
@@ -712,6 +736,8 @@ package body FLTK.Widgets.Inputs is
+ -- Text Field --
+
function Index
(This : in Input;
Place : in Integer)
@@ -817,6 +843,8 @@ package body FLTK.Widgets.Inputs is
+ -- Input Size --
+
function Get_Maximum_Size
(This : in Input)
return Natural is
@@ -843,6 +871,8 @@ package body FLTK.Widgets.Inputs is
+ -- Cursors, Text Settings --
+
function Get_Cursor_Color
(This : in Input)
return Color is
@@ -909,6 +939,8 @@ package body FLTK.Widgets.Inputs is
+ -- Dimensions --
+
procedure Resize
(This : in out Input;
W, H : in Integer) is
@@ -932,6 +964,8 @@ package body FLTK.Widgets.Inputs is
+ -- Changing Input Type --
+
package body Extra is
procedure Set_Kind