nsIScrollable

IID:61792520-82C2-11d3-AF76-00A024FFC08C
Inherits From:nsISupports

The nsIScrollable is an interface that can be implemented by a control that supports scrolling. This is a generic interface without concern for the type of content that may be inside. It simply deals blindly with scroll position as a composite of the lowest possible scroll position, the highest possible position and the current position lying somewhere between the min and the max.

This interface is implemented by the following components:


Constants

PRInt32 ScrollOrientation_Y = 1
PRInt32 ScrollOrientation_X = 2
PRInt32 Scrollbar_Auto = 1
PRInt32 Scrollbar_Never = 2
PRInt32 Scrollbar_Always = 3

Methods

void getCurrentScrollbarPreferences ( PRInt32 scrollOrientation , out PRInt32 scrollbarPref ) void getCurScrollPos ( PRInt32 scrollOrientation , out PRInt32 curPos ) void getDefaultScrollbarPreferences ( PRInt32 scrollOrientation , out PRInt32 scrollbarPref ) void getScrollbarVisibility ( out PRBool verticalVisible , out PRBool horizontalVisible ) void getScrollRange ( PRInt32 scrollOrientation , out PRInt32 minPos , out PRInt32 maxPos ) void resetScrollbarPreferences ( ) void setCurrentScrollbarPreferences ( PRInt32 scrollOrientation , PRInt32 scrollbarPref ) void setCurScrollPos ( PRInt32 scrollOrientation , PRInt32 curPos ) void setCurScrollPosEx ( PRInt32 curHorizontalPos , PRInt32 curVerticalPos ) void setDefaultScrollbarPreferences ( PRInt32 scrollOrientation , PRInt32 scrollbarPref ) void setScrollRange ( PRInt32 scrollOrientation , PRInt32 minPos , PRInt32 maxPos ) void setScrollRangeEx ( PRInt32 minHorizontalPos , PRInt32 maxHorizontalPos , PRInt32 minVerticalPos , PRInt32 maxVerticalPos )

void getCurrentScrollbarPreferences ( PRInt32 scrollOrientation , out PRInt32 scrollbarPref )

Arguments:
scrollOrientation
scrollbarPref

void getCurScrollPos ( PRInt32 scrollOrientation , out PRInt32 curPos )

Arguments:
scrollOrientation
curPos

void getDefaultScrollbarPreferences ( PRInt32 scrollOrientation , out PRInt32 scrollbarPref )

Arguments:
scrollOrientation
scrollbarPref

void getScrollbarVisibility ( out PRBool verticalVisible , out PRBool horizontalVisible )

Arguments:
verticalVisible
horizontalVisible

void getScrollRange ( PRInt32 scrollOrientation , out PRInt32 minPos , out PRInt32 maxPos )

Arguments:
scrollOrientation
minPos
maxPos

void resetScrollbarPreferences ( )


void setCurrentScrollbarPreferences ( PRInt32 scrollOrientation , PRInt32 scrollbarPref )

Arguments:
scrollOrientation
scrollbarPref

void setCurScrollPos ( PRInt32 scrollOrientation , PRInt32 curPos )

Arguments:
scrollOrientation
curPos

void setCurScrollPosEx ( PRInt32 curHorizontalPos , PRInt32 curVerticalPos )

Arguments:
curHorizontalPos
curVerticalPos

void setDefaultScrollbarPreferences ( PRInt32 scrollOrientation , PRInt32 scrollbarPref )

Arguments:
scrollOrientation
scrollbarPref

void setScrollRange ( PRInt32 scrollOrientation , PRInt32 minPos , PRInt32 maxPos )

Arguments:
scrollOrientation
minPos
maxPos

void setScrollRangeEx ( PRInt32 minHorizontalPos , PRInt32 maxHorizontalPos , PRInt32 minVerticalPos , PRInt32 maxVerticalPos )

Arguments:
minHorizontalPos
maxHorizontalPos
minVerticalPos
maxVerticalPos

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com