summaryrefslogtreecommitdiff
path: root/src/fltk_binding/fltk-widget-button.ads
blob: 14762bfef48669078caf9bf36124c859b99ce637 (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


package FLTK.Widget.Button is


    type Button_Type is new Widget_Type with private;
    type State is (On, Off);


    function Create
           (X, Y, W, H : Integer;
            Label      : String)
        return Button_Type;


    function Get_State
           (B : in Button_Type'Class)
        return State;


    procedure Set_State
           (B : in Button_Type'Class;
            S : in State);


    procedure Set_Only
           (B : in Button_Type'Class);


private


    type Button_Type is new Widget_Type with null record;


    overriding procedure Finalize (This : in out Button_Type);


end FLTK.Widget.Button;