nsIHTMLObjectResizer

IID:b0338f6c-ded3-4c39-a953-56e8bae494f5
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

PRInt16 eTopLeft = 0
PRInt16 eTop = 1
PRInt16 eTopRight = 2
PRInt16 eLeft = 3
PRInt16 eRight = 4
PRInt16 eBottomLeft = 5
PRInt16 eBottom = 6
PRInt16 eBottomRight = 7

Properties

PRBool objectResizingEnabled

A boolean indicating if object resizing is enabled in the editor

readonly nsIDOMElement resizedObject

The element currently displaying resizers


Methods

void addObjectResizeEventListener ( nsIHTMLObjectResizeListener listener ) void hideResizers ( ) void mouseDown ( PRInt32 aX , PRInt32 aY , nsIDOMElement target ) void mouseMove ( nsIDOMEvent mouseEvent ) void mouseUp ( PRInt32 aX , PRInt32 aY , nsIDOMElement target ) void refreshResizers ( ) void removeObjectResizeEventListener ( nsIHTMLObjectResizeListener listener ) void showResizers ( nsIDOMElement resizedElement )

void addObjectResizeEventListener ( nsIHTMLObjectResizeListener listener )

Creates a resize listener that can be used to get notifications that the user started to resize an object or finalized such an operation

Arguments:
listener: [IN] an instance of nsIHTMLObjectResizeListener

void hideResizers ( )

Hide resizers if they are visible


void mouseDown ( PRInt32 aX , PRInt32 aY , nsIDOMElement target )

Event callback when a mouse button is pressed

Arguments:
aX: [IN] horizontal position of the pointer
aY: [IN] vertical position of the pointer
target: [IN] the element triggering the event

void mouseMove ( nsIDOMEvent mouseEvent )

Event callback when the mouse pointer is moved

Arguments:
mouseEvent: [IN] the event

void mouseUp ( PRInt32 aX , PRInt32 aY , nsIDOMElement target )

Event callback when a mouse button is released

Arguments:
aX: [IN] horizontal position of the pointer
aY: [IN] vertical position of the pointer
target: [IN] the element triggering the event

void refreshResizers ( )

Refresh visible resizers


void removeObjectResizeEventListener ( nsIHTMLObjectResizeListener listener )

Deletes a resize listener

Arguments:
listener: [IN] an instance of nsIHTMLObjectResizeListener

void showResizers ( nsIDOMElement resizedElement )

Shows active resizers around an element's frame

Arguments:
resizedElement: [IN] a DOM Element

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com