cubos::engine::DataInspector class final

Resource which allows the user to inspect or modify any reflectable value on the UI.

Public functions

void show(const core::reflection::Type& type, const void* value)
Displays a reflectable value on the UI.
auto edit(const core::reflection::Type& type, void* value) -> bool
Displays a reflectable value on the UI and allows modifying it.
template<typename T>
void show(const T& value)
Displays a reflectable value on the UI.
template<typename T>
auto edit(T& value) -> bool
Displays a reflectable value on the UI and allows modifying it.

Function documentation

void cubos::engine::DataInspector::show(const core::reflection::Type& type, const void* value)

Displays a reflectable value on the UI.

Parameters
type Value type.
value Pointer to value.

bool cubos::engine::DataInspector::edit(const core::reflection::Type& type, void* value)

Displays a reflectable value on the UI and allows modifying it.

Parameters
type Value type.
value Pointer to value.
Returns Whether the object was modified.

template<typename T>
void cubos::engine::DataInspector::show(const T& value)

Displays a reflectable value on the UI.

Template parameters
T Value type.
Parameters
value Pointer to value.

template<typename T>
bool cubos::engine::DataInspector::edit(T& value)

Displays a reflectable value on the UI and allows modifying it.

Template parameters
T Value type.
Parameters
value Pointer to value.
Returns Whether the object was modified.