summaryrefslogtreecommitdiff
path: root/src/fltk-widgets-groups-spinners.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-12 15:45:37 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-12 15:45:37 +1300
commit8b01c23e0ba1fd22e0bfc797d6ca540c79079674 (patch)
tree007c84462e326b8030ba04cba875532f7419c565 /src/fltk-widgets-groups-spinners.ads
parente324057cbd9b02704172bb5db4163f4a0c276288 (diff)
Format string methods for Fl_Spinner
Diffstat (limited to 'src/fltk-widgets-groups-spinners.ads')
-rw-r--r--src/fltk-widgets-groups-spinners.ads41
1 files changed, 30 insertions, 11 deletions
diff --git a/src/fltk-widgets-groups-spinners.ads b/src/fltk-widgets-groups-spinners.ads
index 5c6233e..39ed4b3 100644
--- a/src/fltk-widgets-groups-spinners.ads
+++ b/src/fltk-widgets-groups-spinners.ads
@@ -4,6 +4,11 @@
-- Released into the public domain
+private with
+
+ Interfaces.C.Strings;
+
+
package FLTK.Widgets.Groups.Spinners is
@@ -104,14 +109,6 @@ package FLTK.Widgets.Groups.Spinners is
(This : in out Spinner;
To : in Long_Float);
- function Get_Type
- (This : in Spinner)
- return Spinner_Kind;
-
- procedure Set_Type
- (This : in out Spinner;
- To : in Spinner_Kind);
-
function Get_Value
(This : in Spinner)
return Long_Float;
@@ -123,6 +120,25 @@ package FLTK.Widgets.Groups.Spinners is
+ function Get_Format
+ (This : in Spinner)
+ return String;
+
+ procedure Set_Format
+ (This : in out Spinner;
+ To : in String);
+
+ function Get_Type
+ (This : in Spinner)
+ return Spinner_Kind;
+
+ procedure Set_Type
+ (This : in out Spinner;
+ To : in Spinner_Kind);
+
+
+
+
procedure Resize
(This : in out Spinner;
X, Y, W, H : in Integer);
@@ -139,7 +155,9 @@ package FLTK.Widgets.Groups.Spinners is
private
- type Spinner is new Group with null record;
+ type Spinner is new Group with record
+ Format_Str : Interfaces.C.Strings.chars_ptr;
+ end record;
overriding procedure Initialize
(This : in out Spinner);
@@ -176,11 +194,12 @@ private
pragma Inline (Set_Range);
pragma Inline (Get_Step);
pragma Inline (Set_Step);
- pragma Inline (Get_Type);
- pragma Inline (Set_Type);
pragma Inline (Get_Value);
pragma Inline (Set_Value);
+ pragma Inline (Get_Type);
+ pragma Inline (Set_Type);
+
pragma Inline (Resize);
pragma Inline (Handle);