IAccessibleImage 编辑
other-licenses/ia2/AccessibleImage.idl
Not 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:
- The accessible name and
description()
are not enough to fully describe the image, for example when the accessibledescription()
is used to define the behavior of an actionable image and the image itself conveys semantically significant information. - 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论