Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIScrollBoxObject Interface Reference

import "nsIScrollBoxObject.idl";

Inheritance diagram for nsIScrollBoxObject:
Inheritance graph
[legend]
Collaboration diagram for nsIScrollBoxObject:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void scrollTo (in long x, in long y)
 Scroll to the given coordinates, in css pixels.
void scrollBy (in long dx, in long dy)
 Scroll the given amount of device pixels to the right and down.
void scrollByLine (in long dlines)
void scrollByIndex (in long dindexes)
void scrollToLine (in long line)
void scrollToElement (in nsIDOMElement child)
void scrollToIndex (in long index)
void getPosition (out long x, out long y)
 Get the current scroll position in css pixels.
void getScrolledSize (out long width, out long height)
void ensureElementIsVisible (in nsIDOMElement child)
void ensureIndexIsVisible (in long index)
void ensureLineIsVisible (in long line)

Detailed Description

Definition at line 45 of file nsIScrollBoxObject.idl.


Member Function Documentation

Get the current scroll position in css pixels.

See also:
scrollTo for the definition of x and y.

Scroll the given amount of device pixels to the right and down.

Values will be clamped to make the resuling position legal.

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.


The documentation for this interface was generated from the following file: