#pragma once #include "BsEditorPrerequisites.h" #include "BsGUIFieldBase.h" #include "BsVector2.h" namespace BansheeEngine { class BS_ED_EXPORT GUIVector2Field : public TGUIField { public: static const String& getGUITypeName(); static const String& getFloatFieldStyleType(); GUIVector2Field(const PrivatelyConstruct& dummy, const GUIContent& labelContent, UINT32 labelWidth, const String& style, const GUILayoutOptions& layoutOptions, bool withLabel); Vector2 getValue() const; void setValue(const Vector2& value); bool hasInputFocus() const; Event onValueChanged; protected: virtual ~GUIVector2Field() { } protected: static const UINT32 ELEMENT_LABEL_WIDTH; void styleUpdated(); void valueChanged(float newValue); GUIFloatField* mFieldX; GUIFloatField* mFieldY; }; }