Back to index
|virtual nsIFrame *||GetScrolledFrame () const =0|
|Get the frame that we are scrolling within the scrollable frame. |
|virtual ScrollbarStyles||GetScrollbarStyles () const =0|
|virtual nsMargin||GetActualScrollbarSizes () const =0|
|Return the actual sizes of all possible scrollbars. |
|virtual nsMargin||GetDesiredScrollbarSizes (nsBoxLayoutState *aState)=0|
|Return the sizes of all scrollbars assuming that any scrollbars that could be visible due to overflowing content, are. |
|virtual nsPoint||GetScrollPosition () const =0|
|Get the position of the scrolled view. |
|virtual void||ScrollTo (nsPoint aScrollPosition, PRUint32 aFlags=NS_VMREFRESH_NO_SYNC)=0|
|Scroll the view to the given x,y, update's the scrollbar's thumb positions and the view's offset. |
|virtual nsIScrollableView *||GetScrollableView ()=0|
|virtual void||SetScrollbarVisibility (PRBool aVerticalVisible, PRBool aHorizontalVisible)=0|
|Set information about whether the vertical and horizontal scrollbars are currently visible. |
|virtual nsIBox *||GetScrollbarBox (PRBool aVertical)=0|
|virtual void||CurPosAttributeChanged (nsIContent *aChild, PRInt32 aModType)=0|
|virtual void||ScrollToRestoredPosition ()=0|
|This tells the scroll frame to try scrolling to the scroll position that was restored from the history. |
|virtual void nsIScrollableFrame::CurPosAttributeChanged||(||nsIContent *||aChild,|
Return the actual sizes of all possible scrollbars.
Returns 0 for scrollbar positions that don't have a scrollbar or where the scrollbar is not visible. Do not call this while this frame's descendants are being reflowed, it won't be accurate.
|virtual nsMargin nsIScrollableFrame::GetDesiredScrollbarSizes||(||nsBoxLayoutState *||aState||)||
|virtual void nsIScrollableFrame::ScrollTo||(||nsPoint||aScrollPosition,|
Scroll the view to the given x,y, update's the scrollbar's thumb positions and the view's offset.
Clamps the values to be legal. Updates the display based on aUpdateFlags.
|aX||left edge to scroll to|
|aY||top edge to scroll to|
|aUpdateFlags||passed onto nsIViewManager->UpdateView()|
This tells the scroll frame to try scrolling to the scroll position that was restored from the history.
This must be called at least once after state has been restored. It is called by the scrolled frame itself during reflow, but sometimes state can be restored after reflows are done...
|virtual void nsIScrollableFrame::SetScrollbarVisibility||(||PRBool||aVerticalVisible,|