nsIScrollBoxObject
| IID: | 56E2ADA8-4631-11d4-BA11-001083023C1E |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
Methods
void ensureElementIsVisible ( nsIDOMElement child )
void ensureIndexIsVisible ( PRInt32 index )
void ensureLineIsVisible ( PRInt32 line )
void getPosition ( out PRInt32 x , out PRInt32 y )
void getScrolledSize ( out PRInt32 width , out PRInt32 height )
void scrollBy ( PRInt32 dx , PRInt32 dy )
void scrollByIndex ( PRInt32 dindexes )
void scrollByLine ( PRInt32 dlines )
void scrollTo ( PRInt32 x , PRInt32 y )
void scrollToElement ( nsIDOMElement child )
void scrollToIndex ( PRInt32 index )
void scrollToLine ( PRInt32 line )
void ensureElementIsVisible ( nsIDOMElement child )
- Arguments:
- child
void getPosition ( out PRInt32 x , out PRInt32 y )
Get the current scroll position in css pixels.
- Arguments:
- x
- y
void scrollBy ( PRInt32 dx , PRInt32 dy )
Scroll the given amount of device pixels to the right and down. Values will be clamped to make the resuling position legal.
- Arguments:
- dx
- dy
void scrollTo ( PRInt32 x , PRInt32 y )
Scroll to the given coordinates, in css pixels. (0,0) will put the top left corner of the scrolled element's padding-box at the top left corner of the scrollport (which is its inner-border-box). Values will be clamped to legal values.
- Arguments:
- x
- y
void scrollToElement ( nsIDOMElement child )
- Arguments:
- child
Reference documentation is generated from Mozilla's source.
