IAccessibleComponent 编辑

other-licenses/ia2/AccessibleComponent.idlNot scriptable This interface is implemented by any object that can be rendered on the screen. 1.0 66 Introduced Gecko 1.9 Inherits from: IUnknown Last changed in Gecko 1.9 (Firefox 3)

This interface provides the standard mechanism for an assistive technology to retrieve information concerning the graphical representation of an object. Coordinates used by the functions of this interface are specified in different coordinate systems. Their scale is the same and is equal to that of the screen coordinate system. In other words all coordinates are measured in pixels. They differ in their respective origin:

  • The screen coordinate system has its origin in the upper left corner of the current screen.
  • The origin of the parent coordinate system is the upper left corner of the parent's bounding box. With no parent the screen coordinate system is used instead.

 

Method overview

[propget] HRESULT background([out] IA2Color background );
[propget] HRESULT foreground([out] IA2Color foreground );
[propget] HRESULT locationInParent([out] long x, [out] long y );

Methods

background()

Returns the background color of this object.

[propget] HRESULT background(
  [out] IA2Color background
);
Parameters
background
The returned color is the background color of this object or, if that is not supported, the default background color.
Return value

S_OK.

foreground()

Returns the foreground color of this object.

[propget] HRESULT foreground(
  [out] IA2Color foreground
);
Parameters
foreground
The returned color is the foreground color of this object or, if that is not supported, the default foreground color.
Return value

S_OK.

locationInParent()

Returns the location of the upper left corner of the object's bounding box relative to the immediate parent object. The coordinates of the bounding box are given relative to the parent's coordinate system. The coordinates of the returned position are relative to this object's parent or relative to the screen on which this object is rendered if it has no parent. If the object is not on any screen the returned position is (0,0).

[propget] HRESULT locationInParent(
  [out] long x,
  [out] long y
);
Parameters
x
The x coordinate of the upper left corner of the object's bounding box relative to the immediate parent object.
y
The y coordinate of the upper left corner of the object's bounding box relative to the immediate parent object.
Return value

S_OK.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:84 次

字数:4122

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文