dbuf interface for AT-SPI

C++ code posted by Mark Doffman
created at 10 Aug 01:25, updated at 10 Aug 01:27

Edit | Back
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
    using Attributes = org.freestandards.atspi.Attributes;
    using Reference = org.freestandards.atspi.Reference;
    
    /*
    The base interface which is implemented by all accessible objects.
    */
    
    interface org.freestandards.atspi.Accessible {
        enum <uint32> Role {
            ROLE_INVALID = 0,
            ROLE_ACCELERATOR_LABEL,
            ROLE_ALERT,
            ROLE_ANIMATION,
            ROLE_ARROW,
            ROLE_CALENDAR,
            ROLE_CANVAS,
            ROLE_CHECK_BOX,
            ROLE_CHECK_MENU_ITEM,
        }
        
        /*
          Represents a bit-field of currently held states.
          TODO Could just be a uint64?
         */
        typedef uint32[] State;
        
        /* A short string representing the object's name. */
        read property string Name;
        
        /* The accessible object which is this objects containing parent */
        read property Reference Parent;
        
        /* Access this objects non-hierarchical relationships to other accessible objects */
        method GetRelationSet reply {
                RelationSet relations;
        }
        
        /* 
         Get the Role indicating the type of
         UI role played by this object. 
        */
        method GetRole reply {
                Role role;
        }
        
        /* Access the states currently held by this object. */
        method GetState reply {
                State state;
        }
        
        /*
          Get a properties applied to this object as a whole, as an
          set name-value pairs. As such these attributes may be considered
          weakly-typed properties or annotations, as distinct
          from the strongly-typed interface instance data.
        */
        method GetAttributes reply {
                Attributes attributes;
        }
    }
1.87 KB in 2 ms with coderay