summaryrefslogtreecommitdiff
path: root/body/fltk-registry.ads
blob: 9911925202b46749ffd197950c50a81896d5d07c (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


--  Programmed by Jedidiah Barber
--  Released into the public domain


with

    Ada.Containers.Ordered_Maps,
    FLTK.Labels;


private package FLTK.Registry is


    --  It finally became untenable to keep only ad hoc back-references to Ada
    --  when some crucial structs and objects don't have handy built-in space
    --  for user data already available.


    type Label_Access is access all FLTK.Labels.Label'Class;

    package Label_Backref_Maps is new Ada.Containers.Ordered_Maps
       (Key_Type     => Storage.Integer_Address,
        Element_Type => Label_Access);

    Label_Store : Label_Backref_Maps.Map;


end FLTK.Registry;