Ocular Engine
|
#include <Vector2Property.hpp>
Public Member Functions | |
Vector2Property (QWidget *parent=nullptr) | |
virtual bool | updateProperties () override |
virtual void | setValue (void *value, uint32_t size) override |
virtual std::string | getValue () const override |
Public Member Functions inherited from Ocular::Editor::PropertyWidget | |
PropertyWidget (std::string const &type, QWidget *parent=nullptr) | |
virtual QSize | sizeHint () const override |
std::string | getType () const |
void | setVariable (Core::ExposedVariable &variable) |
void | setDisplayName (std::string const &name) |
std::string const & | getDisplayName () const |
std::string const & | getVariableName () const |
void | addWidgetLeftSide (QWidget *widget) |
void | addWidgetRightSide (QWidget *widget) |
Public Attributes | |
QLabel * | m_LabelX |
QLabel * | m_LabelY |
LineEdit * | m_EditX |
LineEdit * | m_EditY |
Additional Inherited Members | |
Protected Attributes inherited from Ocular::Editor::PropertyWidget | |
QHBoxLayout * | m_LayoutRight |
Layout for the right-side frame. | |
Core::ExposedVariable | m_Variable |
The variable this widget is responsible for displaying and modifying. | |
Pre-built property display for Vector2f variables.
|
overridevirtual |
Reimplemented from Ocular::Editor::PropertyWidget.
|
overridevirtual |
[in] | value | Expected as a Math::Vector2f |
Reimplemented from Ocular::Editor::PropertyWidget.
|
overridevirtual |
Update method that is called up to once a frame so that changes to the tracked variable may be checked for, and displayed.
Reimplemented from Ocular::Editor::PropertyWidget.