GuiRolloutCtrl Class Reference#include <guiRolloutCtrl.h>
Inheritance diagram for GuiRolloutCtrl:
[legend]List of all members.
|
Public Types |
| | CollapsedLeft = 0 |
| | CollapsedCenter |
| | CollapsedRight |
| | TopLeftHeader |
| | TopMidHeader |
| | TopRightHeader |
| | MidPageLeft |
| | MidPageCenter |
| | MidPageRight |
| | BottomLeftHeader |
| | BottomMidHeader |
| | BottomRightHeader |
| | NumBitmaps |
| | Number of bitmaps in this array.
|
| enum | {
CollapsedLeft = 0,
CollapsedCenter,
CollapsedRight,
TopLeftHeader,
TopMidHeader,
TopRightHeader,
MidPageLeft,
MidPageCenter,
MidPageRight,
BottomLeftHeader,
BottomMidHeader,
BottomRightHeader,
NumBitmaps
} |
Public Member Functions |
| | GuiRolloutCtrl () |
| | ~GuiRolloutCtrl () |
| | DECLARE_CONOBJECT (GuiRolloutCtrl) |
| bool | onWake () |
| | Called when this object is asked to wake up returns true if it's actually awake at the end.
|
| void | addObject (SimObject *obj) |
| | Adds an object as a child of this object.
|
| void | removeObject (SimObject *obj) |
| | Removes a child object from this control.
|
| virtual void | childResized (GuiControl *child) |
| | Called when a child control of the object is resized.
|
| virtual void | onMouseDown (const GuiEvent &event) |
| virtual void | onMouseUp (const GuiEvent &event) |
| virtual void | calculateHeights () |
| virtual bool | resize (const Point2I &newPosition, const Point2I &newExtent) |
| | Changes the size and/or position of this control.
|
| virtual void | sizeToContents () |
| bool | isExpanded () |
| void | animateTo (S32 height) |
| virtual void | processTick () |
| | This method is called once every 32ms if isProcessingTicks returns true when called on the object.
|
| void | collapse () |
| void | expand () |
| void | instantCollapse () |
| void | instantExpand () |
| virtual void | onRender (Point2I offset, const RectI &updateRect) |
| | Called when this control is to render itself.
|
| bool | onAdd () |
| | Called when this object is added to the scene.
|
Static Public Member Functions |
| static void | initPersistFields () |
| | Register dynamic fields in a subclass of ConsoleObject.
|
| static bool | setCollapsed (void *obj, const char *data) |
Public Attributes |
| StringTableEntry | mCaption |
| RectI | mHeader |
| RectI | mExpanded |
| RectI | mChildRect |
| Point2I | mMargin |
| bool | mIsExpanded |
| bool | mIsAnimating |
| bool | mCollapsing |
| S32 | mAnimateDestHeight |
| S32 | mAnimateStep |
| S32 | mDefaultHeight |
| bool | mCanCollapse |
| GuiCursor * | mDefaultCursor |
| GuiCursor * | mVertSizingCursor |
| bool | mHasTexture |
| | Indicates whether we have a texture to render the tabs with.
|
| RectI * | mBitmapBounds |
| | Array of rectangles identifying textures for tab book.
|
Private Types |
| typedef GuiControl | Parent |
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
-
| CollapsedLeft |
|
| CollapsedCenter |
|
| CollapsedRight |
|
| TopLeftHeader |
|
| TopMidHeader |
|
| TopRightHeader |
|
| MidPageLeft |
|
| MidPageCenter |
|
| MidPageRight |
|
| BottomLeftHeader |
|
| BottomMidHeader |
|
| BottomRightHeader |
|
| NumBitmaps |
Number of bitmaps in this array. |
Constructor & Destructor Documentation
| GuiRolloutCtrl::GuiRolloutCtrl |
( |
|
) |
|
| GuiRolloutCtrl::~GuiRolloutCtrl |
( |
|
) |
|
Member Function Documentation
| static void GuiRolloutCtrl::initPersistFields |
( |
|
) |
[static] |
| bool GuiRolloutCtrl::onWake |
( |
|
) |
[virtual] |
Called when this object is asked to wake up returns true if it's actually awake at the end.
Reimplemented from GuiControl.
Adds an object as a child of this object.
- Parameters:
-
| obj | New child object of this control |
Reimplemented from GuiControl.
Removes a child object from this control.
- Parameters:
-
| obj | Object to remove from this control |
Reimplemented from GuiControl.
| virtual void GuiRolloutCtrl::childResized |
( |
GuiControl * |
child |
) |
[virtual] |
Called when a child control of the object is resized.
- Parameters:
-
Reimplemented from GuiControl.
| virtual void GuiRolloutCtrl::onMouseDown |
( |
const GuiEvent & |
event |
) |
[virtual] |
| virtual void GuiRolloutCtrl::onMouseUp |
( |
const GuiEvent & |
event |
) |
[virtual] |
| virtual void GuiRolloutCtrl::calculateHeights |
( |
|
) |
[virtual] |
| virtual bool GuiRolloutCtrl::resize |
( |
const Point2I & |
newPosition, |
|
|
const Point2I & |
newExtent | |
|
) |
| | [virtual] |
Changes the size and/or position of this control.
- Parameters:
-
| newPosition | New position of this control |
| newExtent | New size of this control |
Reimplemented from GuiControl.
| virtual void GuiRolloutCtrl::sizeToContents |
( |
|
) |
[virtual] |
| bool GuiRolloutCtrl::isExpanded |
( |
|
) |
[inline] |
| void GuiRolloutCtrl::animateTo |
( |
S32 |
height |
) |
|
| virtual void GuiRolloutCtrl::processTick |
( |
|
) |
[virtual] |
This method is called once every 32ms if isProcessingTicks returns true when called on the object.
Reimplemented from GuiTickCtrl.
| void GuiRolloutCtrl::collapse |
( |
|
) |
[inline] |
| void GuiRolloutCtrl::expand |
( |
|
) |
[inline] |
| void GuiRolloutCtrl::instantCollapse |
( |
|
) |
|
| void GuiRolloutCtrl::instantExpand |
( |
|
) |
|
| static bool GuiRolloutCtrl::setCollapsed |
( |
void * |
obj, |
|
|
const char * |
data | |
|
) |
| | [inline, static] |
| virtual void GuiRolloutCtrl::onRender |
( |
Point2I |
offset, |
|
|
const RectI & |
updateRect | |
|
) |
| | [virtual] |
Called when this control is to render itself.
- Parameters:
-
| offset | The location this control is to begin rendering |
| updateRect | The screen area this control has drawing access to |
Reimplemented from GuiControl.
| bool GuiRolloutCtrl::onAdd |
( |
|
) |
[virtual] |
Member Data Documentation
Indicates whether we have a texture to render the tabs with.
Array of rectangles identifying textures for tab book.
|