NvUIWindow Class Reference
A single, top-level container that can manage all NvUIElements in the view. More...
#include <NvUI.h>
Inheritance diagram for NvUIWindow:
Public Member Functions | |
NvUIWindow (float width, float height) | |
Default constructor, takes starting window/viewport width/height. | |
virtual | ~NvUIWindow () |
Default destructor. | |
virtual NvUIEventResponse | HandleEvent (const NvGestureEvent &ev, NvUST timeUST, NvUIElement *hasInteract) |
Overrides and calls normal HandleEvent , with pointer to this as element with focus. | |
virtual void | HandleReshape (float w, float h) |
Responsible for ensuring things get appropriate resized, in as much as that is possible given current NvUI system design constraints. | |
virtual void | Draw (const NvUIDrawState &drawState) |
We override to ensure we save and restore outside drawing state around the UI calls. |
Detailed Description
A single, top-level container that can manage all NvUIElements in the view.
Most importantly, the NvUIWindow class automatically takes care of calling HandleReaction
on its children after processing the HandleEvent
.
- See also:
- NvUIContainer
Constructor & Destructor Documentation
NvUIWindow::NvUIWindow | ( | float | width, | |
float | height | |||
) |
Default constructor, takes starting window/viewport width/height.
Also responsible for initializing the NvUIText system with the same dimensions.
virtual NvUIWindow::~NvUIWindow | ( | ) | [virtual] |
Default destructor.
Primarily exists to ensure NvUIText is cleaned up at UI shutdown.
Member Function Documentation
virtual void NvUIWindow::Draw | ( | const NvUIDrawState & | drawState | ) | [virtual] |
We override to ensure we save and restore outside drawing state around the UI calls.
Reimplemented from NvUIContainer.
The documentation for this class was generated from the following file: