An interactor that allow the placement of two other interactors next to each other with a bar between them that allows the adjustment of the proportions that the two interactors take up.
![]() | Construction |
![]() | New functions for class |
![]() | splitBar Rectangle for the position of the bar between the interactors. |
![]() | trackCanvas Canvas used to draw the tracking of the movement of the bar between the interactors. |
![]() | Overrides from class PInteractor |
![]() | New functions for class |
Overrides from class PObject
System callback functions.
An interactor that allow the placement of two other interactors next to each other with a bar between them that allows the adjustment of the proportions that the two interactors take up.The last two child interactors of the splitter are used as the two interactors to "split".
This is an abstract class for horizontal and vertical versions.
This behaviour in a splitter is to track the movement of the "bar" between the two interactors.
This behaviour in a splitter is to begin tracking the movement of the
"bar" between the two interactors.
This behaviour in a splitter is to finish tracking the movement of the
"bar" between the two interactors. The two child interactors are then
resized at this point via a call to the splitter
\ref{PInteractor::SetDimensions()} function.
This behaviour in a splitter is to draw the "bar" between the two
interactors.
virtual void OnMouseDown( PKeyCode button, const PPoint & where, BOOL doubleClick )
where - The position of the mouse pointer provided in pixels with its origin
at the top left of the interactor.
doubleClick - Is TRUE if the mouse down is the second click of a double click.virtual void OnMouseUp( PKeyCode button, const PPoint & where )
where - The position of the mouse pointer provided in pixels with its origin
at the top left of the interactor.
virtual void OnRedraw( PCanvas & canvas )
void AdjustChildInteractors( PDIMENSION width1, PDIMENSION height1, PORDINATE x2, PORDINATE y2, PDIMENSION width2, PDIMENSION height2 )
height1 - Height of first child interactor.
x2 - X position of second child interactor.
y2 - Y position of second child interactor.
width2 - Width of second child interactor.
height2 - Height of second child interactor.
PDrawCanvas* trackCanvas
Alphabetic index HTML hierarchy of classes or Java