1<page xmlns="http://projectmallard.org/1.0/" type="topic" id="interface_viewer_plugin">
2  <info>
3    <link type="guide" xref="index#examining_a11y" />
4    <title type="sort">2. Interface Viewer Plugin</title>
5    <link type="next" xref="validator_plugin" />
6    <desc>
7      Examining your accessibility implementation
8    </desc>
9    <credit type="author">
10      <name>Eitan Isaacson</name>
11      <email>eitan@ascender.com</email>
12    </credit>
13    <credit type="author">
14      <name>Peter Parente</name>
15      <email>pparent@us.ibm.com</email>
16    </credit>
17    <credit type="author">
18      <name>Aline Bessa</name>
19      <email>alibezz@gmail.com</email>
20    </credit>
21    <license>
22      <p>Creative Commons Share Alike 3.0</p>
23    </license>
24  </info>
25  <title>Interface Viewer Plugin</title>
26
27  <p>
28    The Interface Viewer Plugin shows the information and controls provided by the AT-SPI interfaces
29    present in each accessible item from the <link xref="desktop_tree_view">Application Tree View</link>. After
30    selecting an item, you can use this plugin to quickly review its supported interfaces, to retrieve
31    each interface's information, and to manipulate the item through all the interface’s methods.
32  </p>
33
34  <figure>
35    <title>Examining a Menu with the Interface Viewer Plugin</title>
36    <desc>
37      Given a selected item in the Application Tree View, all of its AT-SPI interfaces will be shown as sensitive
38      in the Interface Viewer Plugin. Those unsupported will appear grayed out, such as the Application
39      and Collection interfaces in the figure above.
40    </desc>
41    <media type="image" mime="image/png" width="800" height="450" src="figures/interface_viewer_plugin.png">
42      <p>Given a selected item in the Application Tree View, all of its AT-SPI interfaces will be shown as sensitive
43      in the Interface Viewer Plugin. Those unsupported will appear grayed out, such as the Application and Collection
44      interfaces in the figure above.</p>
45    </media>
46  </figure>
47
48  <section id="running_interface_viewer">
49    <title>Running the Interface Viewer Plugin</title>
50    <p>
51      The first step to run the Interface Viewer Plugin is to select an item in the <link xref="desktop_tree_view">
52      Application Tree View</link>. After that, all AT-SPI interfaces covered by the plugin will be listed in the
53      plugin's panel. The interfaces implemented by the selected item will be sensitive, so you can click each one of
54      them to either retrieve their provided information or to interact with available methods. The following interfaces
55      can be explored in <app>Accerciser</app>, assuming the selected item implements them:
56    </p>
57    <list>
58      <item>
59        <p>
60          Accessible - This interface shows the selected item's child count (number of child widgets), description, states,
61          relations, and attributes.
62        </p>
63      </item>
64      <item>
65        <p>
66          Action - This interface shows all the actions that can be performed by the selected item. For each interface,
67          you will see its name, such as "press" or "click", followed by a description and a key binding, if there are
68          any. If you select an action, a "Perform action" button will become sensitive. Press this button to see the
69          item performing the selected action.
70        </p>
71      </item>
72      <item>
73        <p>
74          Application - This interface can be implemented by items with role "application". It is worth to point out that
75          items with role "application" not necessarily implement this interface. If the selected item implements it, the interface
76          will show its ID and, if there are any, its toolkit and version.
77        </p>
78      </item>
79      <item>
80        <p>
81          Component - This interface shows the selected item's absolute position (with respect to the desktop coordinate system), relative           position (with respect to the window coordinate system), size, layer type, MDI-Z-order (a short integer indicating the
82          stacking order of the component in the MDI layer), and alpha (if alpha blending is used).
83        </p>
84      </item>
85      <item>
86        <p>
87          Document - This interface shows the selected item's document attributes and locale description, if there is one.
88        </p>
89      </item>
90      <item>
91        <p>
92          Hypertext - This interface shows a list with all the selected item's hypertext hyperlinks. For each hyperlink, the interface
93          provides its name, URI, start (the index in the hypertext at which the hyperlink begins) and end (the index in the hypertext
94          at which this hyperlink ends).
95        </p>
96      </item>
97      <item>
98        <p>
99          Image - This interface shows the selected item's description (or "no description" if unspecified), size, position
100          (with respect to the desktop coordinate system), and locale, if there is one.
101        </p>
102      </item>
103      <item>
104        <p>
105          Selection - This interface shows all selectable child items of the selected item. If the selected item is a menu bar
106          with options "File", "Edit", "View", and "Help", and all of them are selectable, then they will be listed in this
107          interface. If you click a listed option - "File", for example - and want to clear it, just press the "Clear" button
108          below the list.
109        </p>
110      </item>
111      <item>
112        <p>
113          Streamable Content - This interface shows the selected item's content types and their corresponding URIs.
114        </p>
115      </item>
116      <item>
117        <p>
118          Table - This interface shows the selected item's caption and summary, rows (number of rows), columns (number of columns),
119          selected rows (number of selected rows), and selected columns (number of selected columns). For a selected cell, the
120          interface shows its row's and column's header and extents.
121        </p>
122      </item>
123      <item>
124        <p>
125          Text - This interface shows the selected item's text content, that can be editable, and its attributes. The basic
126          attributes are offset (the number of characters the text has) and justification. To see possible CSS attributes,
127          click the "Include defaults" check box.
128        </p>
129      </item>
130      <item>
131        <p>
132          Value - This interface shows the selected item's current value, minimum allowed value, maximum allowed value, and
133          the minimum increment by which the value may be changed (or zero if this value cannot be determined). The current
134          value can be manually changed via a spin button.
135        </p>
136      </item>
137    </list>
138  </section>
139</page>
140