summaryrefslogtreecommitdiff
path: root/src/windows-jump.ads
blob: e79af6cd96ccf321922e58149aa14d0edf0198b7 (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


private with

    FLTK.Widgets.Buttons.Enter,
    FLTK.Widgets.Inputs.Integer;


package Windows.Jump is


    type Jump_Window is new Window with private;


    type Jump_Callback is access procedure
        (Line_Number : in Positive);


    function Create
        return Jump_Window;


    function Create
           (X, Y, W, H : in Integer;
            Label_Text : in String)
        return Jump_Window;


    function Create
           (W, H : in Integer)
        return Jump_Window;


    procedure Set_Jump_Callback
           (This : in out Jump_Window;
            Func : in     Jump_Callback);


private


    type Jump_Window is new Window with
        record
            To_Line  : FLTK.Widgets.Inputs.Integer.Integer_Input;
            Cancel   : FLTK.Widgets.Buttons.Button;
            Go_Jump  : FLTK.Widgets.Buttons.Enter.Enter_Button;
            Callback : Jump_Callback;
        end record;


end Windows.Jump;