Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIScrollable Interface Reference

The nsIScrollable is an interface that can be implemented by a control that supports scrolling. More...

import "nsIScrollable.idl";

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

List of all members.

Public Member Functions

long getCurScrollPos (in long scrollOrientation)
void setCurScrollPos (in long scrollOrientation, in long curPos)
void setCurScrollPosEx (in long curHorizontalPos, in long curVerticalPos)
void getScrollRange (in long scrollOrientation, out long minPos, out long maxPos)
void setScrollRange (in long scrollOrientation, in long minPos, in long maxPos)
void setScrollRangeEx (in long minHorizontalPos, in long maxHorizontalPos, in long minVerticalPos, in long maxVerticalPos)
long getDefaultScrollbarPreferences (in long scrollOrientation)
void setDefaultScrollbarPreferences (in long scrollOrientation, in long scrollbarPref)
void getScrollbarVisibility (out boolean verticalVisible, out boolean horizontalVisible)

Public Attributes

const long ScrollOrientation_X = 1
const long ScrollOrientation_Y = 2
const long Scrollbar_Auto = 1
const long Scrollbar_Never = 2
const long Scrollbar_Always = 3

Detailed Description

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.

Definition at line 52 of file nsIScrollable.idl.


Member Function Documentation

long nsIScrollable::getCurScrollPos ( in long  scrollOrientation)
void nsIScrollable::getScrollbarVisibility ( out boolean  verticalVisible,
out boolean  horizontalVisible 
)
void nsIScrollable::getScrollRange ( in long  scrollOrientation,
out long  minPos,
out long  maxPos 
)
void nsIScrollable::setCurScrollPos ( in long  scrollOrientation,
in long  curPos 
)
void nsIScrollable::setCurScrollPosEx ( in long  curHorizontalPos,
in long  curVerticalPos 
)
void nsIScrollable::setDefaultScrollbarPreferences ( in long  scrollOrientation,
in long  scrollbarPref 
)
void nsIScrollable::setScrollRange ( in long  scrollOrientation,
in long  minPos,
in long  maxPos 
)
void nsIScrollable::setScrollRangeEx ( in long  minHorizontalPos,
in long  maxHorizontalPos,
in long  minVerticalPos,
in long  maxVerticalPos 
)

Member Data Documentation

Definition at line 109 of file nsIScrollable.idl.

Definition at line 107 of file nsIScrollable.idl.

Definition at line 108 of file nsIScrollable.idl.

Definition at line 63 of file nsIScrollable.idl.

Definition at line 64 of file nsIScrollable.idl.


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