An interactor that has support for scroll bars so that its logical contents may be larger than the drawable bounds.
![]() | vScroll Vertical scroll bar child interactors for scrollable window |
![]() | PScroller ( PInteractor * parent ) Create an interactor that has scroll bars and will automatically scroll a PScrollable interactor when scrolled by the user. |
![]() | GetContents () Get the scrollable that the scroller scrolls. |
![]() | GetVerticalScrollBar () const Get the vertical scroll bar in the scroller. |
![]() | GetHorizontalScrollBar () const Get the horizontal scroll bar in the scroller. |
![]() | ShowAll () Show the interactor and all child and grandchild etc interactors. |
![]() | New functions for class |
![]() | hScroll Horizontal scroll bar child interactors for scrollable window |
![]() | _SetDimensions ( PDIMENSION width, PDIMENSION height, CoordinateSystem coords ) Set the dimensions of the scroller interactor. |
![]() | Overrides from class PInteractor |
![]() | Member variables |
Overrides from class PObject
System callback functions.
An interactor that has support for scroll bars so that its logical contents may be larger than the drawable bounds. This works in conjunction with the PScrollable class to produce a scrolling interactor.The bounds returned by a PCanvas attached to an interactor normally indicate the size of the internal area of the window. With a scrollable interactor the PCanvas may return a larger dimension, as set by the PScrollable::SetScrollRange() function.
The canvas does not know (or care) what is visible and this interactor handles the necessary coordinate adjustments and and bitblt's for scrolling around a large drawable area.
Note that the last child interactor that is a descendent of the PScrollable class is the contents" that is scrolled by the scroller.
This enabled the interactor tree in post order, ie all children have
their PInteractor::ShowAll() function called and then the
interactor itself is shown using the PInteractor::Show()
function.
When scaling is used (coords == LocalCoords), the
coordinates used are 1/4 average font width and 1/8 the font height.
New functions for class
PScrollable& GetContents()
PVerticalScrollBar& GetVerticalScrollBar() const
PHorizontalScrollBar& GetHorizontalScrollBar() const
Overrides from class PInteractor
virtual void ShowAll()
virtual void _SetDimensions( PDIMENSION width, PDIMENSION height, CoordinateSystem coords )
height - New height for scroller.
coords - Coordinate system to use. Member variables
PVerticalScrollBar* vScroll
PHorizontalScrollBar* hScroll
Alphabetic index HTML hierarchy of classes or Java