summaryrefslogtreecommitdiff
path: root/fltk-widgets-inputs.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2016-10-04 18:52:32 +1100
committerJed Barber <jjbarber@y7mail.com>2016-10-04 18:52:32 +1100
commit3f1a529a3b82c322678163cb70a8884fdf3eb920 (patch)
treef4c37f9c5d156d5d66658df7cae20557c8f6ac02 /fltk-widgets-inputs.adb
parentbc54653c3e5277afecaecf2f208e1ee335df3a6e (diff)
Basic find functionality working
Diffstat (limited to 'fltk-widgets-inputs.adb')
-rw-r--r--fltk-widgets-inputs.adb16
1 files changed, 16 insertions, 0 deletions
diff --git a/fltk-widgets-inputs.adb b/fltk-widgets-inputs.adb
index 17ab621..9af8e87 100644
--- a/fltk-widgets-inputs.adb
+++ b/fltk-widgets-inputs.adb
@@ -1,6 +1,7 @@
with Interfaces.C;
+with Interfaces.C.Strings;
with System;
use type System.Address;
@@ -18,6 +19,11 @@ package body FLTK.Widgets.Inputs is
(F : in System.Address);
pragma Import (C, free_fl_input, "free_fl_input");
+ function fl_input_get_value
+ (F : in System.Address)
+ return Interfaces.C.Strings.chars_ptr;
+ pragma Import (C, fl_input_get_value, "fl_input_get_value");
+
@@ -54,5 +60,15 @@ package body FLTK.Widgets.Inputs is
end Create;
+
+
+ function Get_Value
+ (This : in Input)
+ return String is
+ begin
+ return Interfaces.C.Strings.Value (fl_input_get_value (This.Void_Ptr));
+ end Get_Value;
+
+
end FLTK.Widgets.Inputs;