summaryrefslogtreecommitdiff
path: root/src/fltk_binding/fltk-widgets-menus.ads
blob: 7a08de4b09117e47f1334f6fec52c48696088008 (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


private with Ada.Containers.Vectors;
private with FLTK.Menu_Items;


package FLTK.Widgets.Menus is


    type Menu is abstract new Widget with private;
    type Index is new Positive;


    function Create
           (X, Y, W, H : in Integer;
            Text       : in String)
        return Menu is abstract;


private


    type Menu_Item_Access is access all FLTK.Menu_Items.Menu_Item;
    package Menu_Vectors is new Ada.Containers.Vectors (Index, Menu_Item_Access);


    type Menu is abstract new Widget with
        record
            Menu_Item_List : Menu_Vectors.Vector;
        end record;


    overriding procedure Initialize
           (This : in out Menu);


end FLTK.Widgets.Menus;