CUGL 2.3
Cornell University Game Library
|
#include <CUWidgetValue.h>
Public Member Functions | |
WidgetValue () | |
~WidgetValue () | |
bool | init (const std::shared_ptr< JsonValue > json) |
const std::shared_ptr< JsonValue > | getJson () const |
Static Public Member Functions | |
static std::shared_ptr< WidgetValue > | alloc (std::shared_ptr< JsonValue > json) |
Protected Attributes | |
std::shared_ptr< JsonValue > | json |
This class represents an externally defined widget that may be used within the scene graph JSON.
This class wraps a JsonValue for the purposes of safe dependency loading.
|
inline |
Creates a null WidgetValue.
NEVER USE A CONSTRUCTOR WITH NEW. If you want to allocate an object on the heap, use one of the static constructors instead.
|
inline |
Deletes this WidgetValue and all of its resources.
If no other references own the descendants of this node, they will all be recursively deleted as well.
|
inlinestatic |
Returns a newly allocated WidgetValue to wrap the given JsonValue.
json | The JSON definition of this widget. |
|
inline |
|
inline |
Initializes a new WidgetValue to wrap the give JsonValue.
This initializer simply wraps the provided JSON
json | A shared pointer to JsonValue that defines this widget. |
|
protected |
The JSON entry representing this widget