blob: a1afdadc4f7e60400df6671f0568893f0e263d70 (
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
|
with FLTK.Widgets.Groups.Windows.Double;
with FLTK.Widgets.Menus;
with FLTK.Text_Buffers;
private with FLTK.Widgets.Groups.Text_Displays.Text_Editors;
private with FLTK.Widgets.Menus.Menu_Bars;
package Windows.Editor is
type Editor_Window is new FLTK.Widgets.Groups.Windows.Double.Double_Window with private;
Min_Editor_Height : Integer := 60;
Min_Editor_Width : Integer := 300;
function Create
(X, Y, W, H : in Integer;
Label_Text : in String)
return Editor_Window;
function Create
(W, H : in Integer)
return Editor_Window;
function Get_Buffer
(This : in Editor_Window)
return FLTK.Text_Buffers.Text_Buffer_Cursor;
procedure Set_Buffer
(This : in out Editor_Window;
Buff : in out FLTK.Text_Buffers.Text_Buffer);
function Get_Menu
(This : in out Editor_Window)
return FLTK.Widgets.Menus.Menu_Cursor;
procedure Undo
(This : in out Editor_Window);
procedure Cut
(This : in out Editor_Window);
procedure Copy
(This : in out Editor_Window);
procedure Paste
(This : in out Editor_Window);
procedure Delete
(This : in out Editor_Window);
function Get_Insert_Position
(This : in Editor_Window)
return Natural;
procedure Set_Insert_Position
(This : in out Editor_Window;
Pos : in Natural);
procedure Show_Insert_Position
(This : in out Editor_Window);
private
type Editor_Window is new FLTK.Widgets.Groups.Windows.Double.Double_Window with
record
Bar : aliased FLTK.Widgets.Menus.Menu_Bars.Menu_Bar;
Editor : FLTK.Widgets.Groups.Text_Displays.Text_Editors.Text_Editor;
end record;
end Windows.Editor;
|