aboutsummaryrefslogtreecommitdiff
path: root/spec/fltk-asks.ads
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fltk-asks.ads')
-rw-r--r--spec/fltk-asks.ads20
1 files changed, 19 insertions, 1 deletions
diff --git a/spec/fltk-asks.ads b/spec/fltk-asks.ads
index fc6e150..23e2076 100644
--- a/spec/fltk-asks.ads
+++ b/spec/fltk-asks.ads
@@ -30,7 +30,7 @@ package FLTK.Asks is
type RGB_Float is new Long_Float range 0.0 .. 1.0;
- type RGB_Int is mod 256;
+ subtype RGB_Int is Color_Component;
type File_Chooser_Callback is access procedure
(Item : in String);
@@ -38,6 +38,8 @@ package FLTK.Asks is
+ -- Static Attributes --
+
function Get_Cancel_String
return String;
@@ -71,6 +73,8 @@ package FLTK.Asks is
+ -- Simple Messages --
+
procedure Alert
(Message : String);
@@ -117,6 +121,8 @@ package FLTK.Asks is
+ -- Choosers --
+
function Color_Chooser
(Title : in String;
R, G, B : in out RGB_Float;
@@ -131,6 +137,10 @@ package FLTK.Asks is
FLTK.Widgets.Groups.Color_Choosers.RGB)
return Confirm_Result;
+ function Show_Colormap
+ (Old_Hue : in Color)
+ return Color;
+
function Dir_Chooser
(Message, Default : in String;
Relative : in Boolean := False)
@@ -150,6 +160,8 @@ package FLTK.Asks is
+ -- Settings --
+
function Get_Message_Hotspot
return Boolean;
@@ -160,6 +172,10 @@ package FLTK.Asks is
(Font : in Font_Kind;
Size : in Font_Size);
+ -- Technically the returned Box should have a parent, but you can't access
+ -- it for annoying technical reasons relating to how the Choice functions
+ -- work in C++. You shouldn't be trying to poke at those internals anyway.
+ -- Just stick to calling subprograms to change stuff about this Box.
function Get_Message_Icon
return FLTK.Widgets.Boxes.Box_Reference;
@@ -195,6 +211,7 @@ private
pragma Inline (Password);
pragma Inline (Color_Chooser);
+ pragma Inline (Show_Colormap);
pragma Inline (Dir_Chooser);
pragma Inline (File_Chooser);
pragma Inline (Set_File_Chooser_Callback);
@@ -218,3 +235,4 @@ private
end FLTK.Asks;
+