summaryrefslogtreecommitdiff
path: root/src/fltk-help_dialogs.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-11-05 06:28:09 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-11-05 06:28:09 +1300
commit1e97ffcd6ec01eaa4b79d4903b721019e12657da (patch)
tree515cc256a34c5dbb65878b3d4a3de7cda29f318e /src/fltk-help_dialogs.ads
parenta6a1c9763c62b9aa8643b0c5b9937f3a930337b8 (diff)
Fl_Help_Dialog bound
Diffstat (limited to 'src/fltk-help_dialogs.ads')
-rw-r--r--src/fltk-help_dialogs.ads145
1 files changed, 145 insertions, 0 deletions
diff --git a/src/fltk-help_dialogs.ads b/src/fltk-help_dialogs.ads
new file mode 100644
index 0000000..ebe59df
--- /dev/null
+++ b/src/fltk-help_dialogs.ads
@@ -0,0 +1,145 @@
+
+
+-- Programmed by Jedidiah Barber
+-- Released into the public domain
+
+
+package FLTK.Help_Dialogs is
+
+
+ type Help_Dialog is new Wrapper with private;
+
+ type Help_Dialog_Reference (Data : not null access Help_Dialog'Class) is limited null record
+ with Implicit_Dereference => Data;
+
+
+
+
+ package Forge is
+
+ function Create
+ return Help_Dialog;
+
+ function Create
+ (X, Y, W, H : in Integer)
+ return Help_Dialog;
+
+ private
+
+ pragma Inline (Create);
+
+ end Forge;
+
+
+
+
+ procedure Show
+ (This : in out Help_Dialog);
+
+ procedure Hide
+ (This : in out Help_Dialog);
+
+ function Is_Visible
+ (This : in Help_Dialog)
+ return Boolean;
+
+
+
+
+ procedure Set_Topline_Number
+ (This : in out Help_Dialog;
+ Line : in Positive);
+
+ procedure Set_Topline_Target
+ (This : in out Help_Dialog;
+ Value : in String);
+
+
+
+
+ -- Name here can be either a ftp/http/https/ipp/mailto/news URL or a filename
+ -- See Load procedure in FLTK.Widgets.Groups.Help_Views
+ procedure Load
+ (This : in out Help_Dialog;
+ Name : in String);
+
+ function Get_Content
+ (This : in Help_Dialog)
+ return String;
+
+ procedure Set_Content
+ (This : in out Help_Dialog;
+ Value : in String);
+
+
+
+
+ function Get_Text_Size
+ (This : in Help_Dialog)
+ return Font_Size;
+
+ procedure Set_Text_Size
+ (This : in out Help_Dialog;
+ Size : in Font_Size);
+
+
+
+
+ function Get_X
+ (This : in Help_Dialog)
+ return Integer;
+
+ function Get_Y
+ (This : in Help_Dialog)
+ return Integer;
+
+ function Get_W
+ (This : in Help_Dialog)
+ return Integer;
+
+ function Get_H
+ (This : in Help_Dialog)
+ return Integer;
+
+ procedure Resize
+ (This : in out Help_Dialog;
+ X, Y, W, H : in Integer);
+
+ procedure Reposition
+ (This : in out Help_Dialog;
+ X, Y : in Integer);
+
+
+private
+
+
+ type Help_Dialog is new Wrapper with null record;
+
+ overriding procedure Finalize
+ (This : in out Help_Dialog);
+
+
+ pragma Inline (Show);
+ pragma Inline (Hide);
+ pragma Inline (Is_Visible);
+
+ pragma Inline (Set_Topline_Number);
+ pragma Inline (Set_Topline_Target);
+
+ pragma Inline (Load);
+ pragma Inline (Set_Content);
+
+ pragma Inline (Get_Text_Size);
+ pragma Inline (Set_Text_Size);
+
+ pragma Inline (Get_X);
+ pragma Inline (Get_Y);
+ pragma Inline (Get_W);
+ pragma Inline (Get_H);
+ pragma Inline (Resize);
+ pragma Inline (Reposition);
+
+
+end FLTK.Help_Dialogs;
+
+