IAccessibleImage 编辑

other-licenses/ia2/AccessibleImage.idlNot scriptable This interface represents images and icons. 1.0 66 Introduced Gecko 1.9 Inherits from: IUnknown Last changed in Gecko 1.9 (Firefox 3)

This interface is used for a representation of images like icons on buttons. IAccessibleImage only needs to be implemented in certain situations. Some examples are:

  1. The accessible name and description() are not enough to fully describe the image, for example when the accessible description() is used to define the behavior of an actionable image and the image itself conveys semantically significant information.
  2. The user can edit the content that includes an image and therefore the user needs to be able to review the image's position.

Method overview

[propget] HRESULT description([out] BSTR description );
[propget] HRESULT imagePosition([in] enum IA2CoordinateType coordinateType, [out] long x, [out] long y );
[propget] HRESULT imageSize([out] long height, [out] long width );

Methods

description()

Returns the localized description of the image.

[propget] HRESULT description(
  [out] BSTR description
);
Parameters
description
The localized description of the image.
Return value

S_FALSE if there is nothing to return, [out] value is null. S_OK.

imagePosition()

Returns the coordinates of the image.

[propget] HRESULT imagePosition(
  [in] enum IA2CoordinateType coordinateType,
  [out] long x,
  [out] long y
);
Parameters
coordinateType
Specifies whether the returned coordinates should be relative to the screen or the parent object.
x
The x coordinate.
y
The y coordinate.
Return value

S_OK.

imageSize()

Returns the size of the image in units specified by parent's coordinate system.

[propget] HRESULT imageSize(
  [out] long height,
  [out] long width
);
Parameters
height
The height of the image.
width
The width of the image.
Return value

S_OK.

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

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

发布评论

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

词条统计

浏览:121 次

字数:3692

最后编辑:7年前

编辑次数:0 次

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