This is a special kind of frame that pretends to be much larger than it actually is.
More...
Public Member Functions |
| | PGScrollFrame (string name) |
| | PGScrollFrame () |
| | clearHorizontalSlider () |
| | Removes the horizontal scroll bar from control of the frame.
|
| | clearVerticalSlider () |
| | Removes the vertical scroll bar from control of the frame.
|
| | clearVirtualFrame () |
| | Removes the virtual frame from the item.
|
| bool | getAutoHide () |
| | Returns the auto_hide flag.
|
| PGSliderBar | getHorizontalSlider () |
| | Returns the PGSliderBar that serves as the horizontal scroll bar for this frame, if any, or NULL if it is not set.
|
| bool | getManagePieces () |
| | Returns the manage_pieces flag.
|
| PGSliderBar | getVerticalSlider () |
| | Returns the PGSliderBar that serves as the vertical scroll bar for this frame, if any, or NULL if it is not set.
|
| VBase4 const | getVirtualFrame () |
| | Returns the bounding rectangle of the virtual frame.
|
| bool | hasVirtualFrame () |
| | Returns true if the virtual frame has a bounding rectangle; see set_virtual_frame().
|
| | recompute () |
| | Forces the PGScrollFrame to recompute itself right now.
|
| | remanage () |
| | Manages the position and size of the scroll bars.
|
| | setAutoHide (bool auto_hide) |
| | Sets the auto_hide flag.
|
| | setHorizontalSlider (PGSliderBar horizontal_slider) |
| | Sets the PGSliderBar object that will serve as the horizontal scroll bar for this frame.
|
| | setManagePieces (bool manage_pieces) |
| | Sets the manage_pieces flag.
|
| | setup (float width, float height, float left, float right, float bottom, float top, float slider_width, float bevel) |
| | Creates a PGScrollFrame with the indicated dimensions, and the indicated virtual frame.
|
| | setVerticalSlider (PGSliderBar vertical_slider) |
| | Sets the PGSliderBar object that will serve as the vertical scroll bar for this frame.
|
| | setVirtualFrame (float left, float right, float bottom, float top) |
| | Sets the bounding rectangle of the virtual frame.
|
| | setVirtualFrame (VBase4 const virtual_frame) |
| | Sets the bounding rectangle of the virtual frame.
|
Static Public Member Functions |
| static TypeHandle | getClassType () |
This is a special kind of frame that pretends to be much larger than it actually is.
You can scroll through the frame, as if you're looking through a window at the larger frame beneath. All children of this frame node are scrolled and clipped as if they were children of the larger, virtual frame.
This is implemented as a specialization of PGVirtualFrame, which handles the meat of the virtual canvas. This class adds automatic support for scroll bars, and restricts the virtual transform to translate only (no scale or rotate).