nsIAccessibleImage

This interface allows in-process accessibility clients to retrieve information about an image.
1.0
28
Introduced
Gecko 1.9
Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3)

Method overview

void getImagePosition(in unsigned long coordType, out long x, out long y);
void getImageSize(out long width, out long height);

Methods

getImagePosition()

Returns the coordinates of the image accessible.

This method is the same as nsIAccessible.getBounds() excepting coordinate origin parameter.

void getImagePosition(
  in unsigned long coordType,
  out long x,
  out long y
);
Parameters
coordType
Specifies coordinates origin (for available constants refer to nsIAccessibleCoordinateType).
x
The x coordinate of the image accessible position.
y
The y coordinate of the image accessible position.
Exceptions thrown
NS_ERROR_FAILURE
Indicates that the accessible is unattached from the accessible tree.

getImageSize()

Returns the size of the image accessible.

This method is the same as nsIAccessible.getBounds().

void getImageSize(
  out long width,
  out long height
);
Parameters
width
The width of the image accessible.
height
The height of the image accessible.
Exceptions thrown
NS_ERROR_FAILURE
Indicates that the accessible is unattached from the accessible tree.

Document Tags and Contributors

Contributors to this page: Sheppy, trevorh, Surkov.alexander
Last updated by: Sheppy,