blob: 655e357225b78de63ccaaa9b75d03dead581102a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
-- 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 Show_With_Args
(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 (Show_With_Args);
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;
|