Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > d0e538fc3b36eaa21319109269df7489 > files > 157

libat-spi-devel-1.22.0-2mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>at-spi-idl: Accessibility::Component Interface Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
  </ul>
</div>
<div class="nav">
<a class="el" href="namespaceAccessibility.html">Accessibility</a>::<a class="el" href="interfaceAccessibility_1_1Component.html">Component</a></div>
<h1>Accessibility::Component Interface Reference</h1><!-- doxytag: class="Accessibility::Component" --><code>import &quot;<a class="el" href="Accessibility__Component_8idl-source.html">Accessibility_Component.idl</a>&quot;;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">boolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#7dcdec1abb4cb5e008ab6d8cbc6566b2">contains</a> (in long x, in long y, in short coord_type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="interfaceAccessibility_1_1Accessible.html">Accessible</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#9c3e1cb20e93c52614597a2a78f77e6f">getAccessibleAtPoint</a> (in long x, in long y, in short coord_type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structAccessibility_1_1BoundingBox.html">BoundingBox</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#b5ac6f95d3667ad2fce20ffe1c6322b8">getExtents</a> (in short coord_type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#d86e7ecbecc4a209b1bf9ee9af53277c">getPosition</a> (out long x, out long y, in short coord_type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#d8d6b0f5cf4af5a91371c793c140613b">getSize</a> (out long width, out long height)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespaceAccessibility.html#31b81c9e65e0be91eee66dbb1fc30937">ComponentLayer</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#d7e4766cc98039c785a5f49d93a94c2b">getLayer</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">short&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#e73b97f016dabcabd603469af8d56355">getMDIZOrder</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">boolean&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#9586b717bc7c056f4ff0443e3537d4b5">grabFocus</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#e550b44977f799a57732b30ea07f70b1">registerFocusHandler</a> (in <a class="el" href="interfaceAccessibility_1_1EventListener.html">EventListener</a> handler)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#e9422c46894429337c71f312a51c83be">deregisterFocusHandler</a> (in <a class="el" href="interfaceAccessibility_1_1EventListener.html">EventListener</a> handler)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfaceAccessibility_1_1Component.html#4ca621625162137468320c6180ac8ee2">getAlpha</a> ()</td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="interfaceAccessibility_1_1Component.html">Component</a> interface is implemented by objects which occupy on-screen space, e.g. objects which have onscreen visual representations. The methods in <a class="el" href="interfaceAccessibility_1_1Component.html">Component</a> allow clients to identify where the objects lie in the onscreen coordinate system, their relative size, stacking order, and position. It also provides a mechanism whereby keyboard focus may be transferred to specific user interface elements programmatically. This is a 2D API, coordinates of 3D objects are projected into the 2-dimensional screen view for purposes of this interface.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>the meaning and defined values of the <code>short</code> <code>coord_type</code> parameter used by some <a class="el" href="interfaceAccessibility_1_1Component.html">Component</a> methods is as follows: <ul>
<li>0 indicates coord_type_xy_screen, coordinates are relative to the display screen, in pixels. </li>
<li>1 indicates coord_type_xy_window, coordinates are relative to the current toplevel window, in pixels.</li>
</ul>
<p>
Events emitted by <a class="el" href="interfaceAccessibility_1_1Component.html">Component</a> instances include: <ul>
<li><code>"object:bounds-changed"</code> </li>
<li><code>"object:visible-data-changed"</code> </li>
</ul>
</dd></dl>

<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7dcdec1abb4cb5e008ab6d8cbc6566b2"></a><!-- doxytag: member="Accessibility::Component::contains" ref="7dcdec1abb4cb5e008ab6d8cbc6566b2" args="(in long x, in long y, in short coord_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean Accessibility::Component::contains           </td>
          <td>(</td>
          <td class="paramtype">in long&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in long&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in short&nbsp;</td>
          <td class="paramname"> <em>coord_type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>True</code> if the specified point lies within the Component's bounding box, <code>False</code> otherwise. </dd></dl>

</div>
</div><p>
<a class="anchor" name="9c3e1cb20e93c52614597a2a78f77e6f"></a><!-- doxytag: member="Accessibility::Component::getAccessibleAtPoint" ref="9c3e1cb20e93c52614597a2a78f77e6f" args="(in long x, in long y, in short coord_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfaceAccessibility_1_1Accessible.html">Accessible</a> Accessibility::Component::getAccessibleAtPoint           </td>
          <td>(</td>
          <td class="paramtype">in long&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in long&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in short&nbsp;</td>
          <td class="paramname"> <em>coord_type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the <a class="el" href="interfaceAccessibility_1_1Accessible.html">Accessible</a> child whose bounding box contains the specified point. </dd></dl>

</div>
</div><p>
<a class="anchor" name="b5ac6f95d3667ad2fce20ffe1c6322b8"></a><!-- doxytag: member="Accessibility::Component::getExtents" ref="b5ac6f95d3667ad2fce20ffe1c6322b8" args="(in short coord_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structAccessibility_1_1BoundingBox.html">BoundingBox</a> Accessibility::Component::getExtents           </td>
          <td>(</td>
          <td class="paramtype">in short&nbsp;</td>
          <td class="paramname"> <em>coord_type</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Obtain the Component's bounding box, in pixels, relative to the specified coordinate system. <dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="structAccessibility_1_1BoundingBox.html">BoundingBox</a> which entirely contains the object's onscreen visual representation. </dd></dl>

</div>
</div><p>
<a class="anchor" name="d86e7ecbecc4a209b1bf9ee9af53277c"></a><!-- doxytag: member="Accessibility::Component::getPosition" ref="d86e7ecbecc4a209b1bf9ee9af53277c" args="(out long x, out long y, in short coord_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Accessibility::Component::getPosition           </td>
          <td>(</td>
          <td class="paramtype">out long&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out long&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in short&nbsp;</td>
          <td class="paramname"> <em>coord_type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Obtain the position of the current component in the coordinate system specified by <code>coord_type</code>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>coord_type</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>an out parameter which will be back-filled with the returned x coordinate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>an out parameter which will be back-filled with the returned y coordinate. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="d8d6b0f5cf4af5a91371c793c140613b"></a><!-- doxytag: member="Accessibility::Component::getSize" ref="d8d6b0f5cf4af5a91371c793c140613b" args="(out long width, out long height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Accessibility::Component::getSize           </td>
          <td>(</td>
          <td class="paramtype">out long&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out long&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Obtain the size, in the coordinate system specified by <code>coord_type</code>, of the rectangular area which fully contains the object's visual representation, without accounting for viewport clipping. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>the object's horizontal extents in the specified coordinate system. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>the object's vertical extents in the specified coordinate system. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="d7e4766cc98039c785a5f49d93a94c2b"></a><!-- doxytag: member="Accessibility::Component::getLayer" ref="d7e4766cc98039c785a5f49d93a94c2b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceAccessibility.html#31b81c9e65e0be91eee66dbb1fc30937">ComponentLayer</a> Accessibility::Component::getLayer           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the ComponentLayer in which this object resides. </dd></dl>

</div>
</div><p>
<a class="anchor" name="e73b97f016dabcabd603469af8d56355"></a><!-- doxytag: member="Accessibility::Component::getMDIZOrder" ref="e73b97f016dabcabd603469af8d56355" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">short Accessibility::Component::getMDIZOrder           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Obtain the relative stacking order (i.e. 'Z' order) of an object. Larger values indicate that an object is on "top" of the stack, therefore objects with smaller MDIZOrder may be obscured by objects with a larger MDIZOrder, but not vice-versa. <dl class="note" compact><dt><b>Note:</b></dt><dd>only relevant for objects in LAYER_MDI or LAYER_WINDOW </dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>an integer indicating the object's place in the stacking order. </dd></dl>

</div>
</div><p>
<a class="anchor" name="9586b717bc7c056f4ff0443e3537d4b5"></a><!-- doxytag: member="Accessibility::Component::grabFocus" ref="9586b717bc7c056f4ff0443e3537d4b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean Accessibility::Component::grabFocus           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Request that the object obtain keyboard focus.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>True</code> if keyboard focus was successfully transferred to the <a class="el" href="interfaceAccessibility_1_1Component.html">Component</a>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="e550b44977f799a57732b30ea07f70b1"></a><!-- doxytag: member="Accessibility::Component::registerFocusHandler" ref="e550b44977f799a57732b30ea07f70b1" args="(in EventListener handler)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Accessibility::Component::registerFocusHandler           </td>
          <td>(</td>
          <td class="paramtype">in <a class="el" href="interfaceAccessibility_1_1EventListener.html">EventListener</a>&nbsp;</td>
          <td class="paramname"> <em>handler</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Register an <a class="el" href="interfaceAccessibility_1_1EventListener.html">EventListener</a> for notification when this object receives keyboard focus. <dl class="note" compact><dt><b>Note:</b></dt><dd>you probably want to register for ¨focus:¨ events via <a class="el" href="interfaceAccessibility_1_1Registry.html#c8411c32e2af083ceb73850e24c62bc4">Registry::registerGlobalEventListener</a> instead. </dd></dl>

</div>
</div><p>
<a class="anchor" name="e9422c46894429337c71f312a51c83be"></a><!-- doxytag: member="Accessibility::Component::deregisterFocusHandler" ref="e9422c46894429337c71f312a51c83be" args="(in EventListener handler)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Accessibility::Component::deregisterFocusHandler           </td>
          <td>(</td>
          <td class="paramtype">in <a class="el" href="interfaceAccessibility_1_1EventListener.html">EventListener</a>&nbsp;</td>
          <td class="paramname"> <em>handler</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Request that an <a class="el" href="interfaceAccessibility_1_1EventListener.html">EventListener</a> registered via registerFocusHandler no longer be notified when this object receives keyboard focus. 
</div>
</div><p>
<a class="anchor" name="4ca621625162137468320c6180ac8ee2"></a><!-- doxytag: member="Accessibility::Component::getAlpha" ref="4ca621625162137468320c6180ac8ee2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Accessibility::Component::getAlpha           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Obtain the alpha value of the component. An alpha value of 1.0 or greater indicates that the object is fully opaque, and an alpha value of 0.0 indicates that the object is fully transparent. Negative alpha values have no defined meaning at this time.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>alpha values are used in conjunction with Z-order calculations to determine whether an object wholly or partially obscures another object's visual intersection, in the event that their bounds intersect.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="namespaceAccessibility.html#b031cd3b44c1273acafd59ea54dd998c2c604669f4d7fc16c6e9f940694e3202">STATE_OPAQUE</a></dd></dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>AT-SPI 1.7.0 </dd></dl>

</div>
</div><p>
<hr>The documentation for this interface was generated from the following file:<ul>
<li>/home/liyuan/src/at-spi/idl/<a class="el" href="Accessibility__Component_8idl-source.html">Accessibility_Component.idl</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Jul 10 10:46:52 2007 for at-spi-idl by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>