#include <ResourceProperty.hpp>
Pre-built property display for Core::Resource variables.
std::string Ocular::Editor::ResourceProperty::getValue |
( |
| ) |
const |
|
overridevirtual |
void Ocular::Editor::ResourceProperty::setValue |
( |
void * |
value, |
|
|
uint32_t |
size = 0 |
|
) |
| |
|
overridevirtual |
- Parameters
-
[in] | value | Resource mapping name expected as a std::string |
[in] | size | Unused in this implementation |
Reimplemented from Ocular::Editor::PropertyWidget.
bool Ocular::Editor::ResourceProperty::updateProperties |
( |
| ) |
|
|
overridevirtual |
Update method that is called up to once a frame so that changes to the tracked variable may be checked for, and displayed.
- Returns
- Should return TRUE if a property was modified by the user; otherwise return FALSE.
Reimplemented from Ocular::Editor::PropertyWidget.
bool Ocular::Editor::ResourceProperty::validateResource |
( |
bool |
isEmptyValid = true | ) |
|
Validates if the resource specified in the line edit exists or not. If the resource exists, returns TRUE. If it does not exists, then returns FALSE and a red border is placed around the line edit.
- Parameters
-
[in] | isEmptyValid | If TRUE, then an empty resource (assumed NULL) is considered valid. |
The documentation for this class was generated from the following files:
- C:/Projects/OcularEngine/OcularEditor/include/Widgets/Properties/Types/ResourceProperty.hpp
- C:/Projects/OcularEngine/OcularEditor/src/Widgets/Properties/Types/ResourceProperty.cpp