BsGUIVector2Field.h 725 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsGUIFieldBase.h"
  4. #include "BsVector2.h"
  5. namespace BansheeEngine
  6. {
  7. class BS_ED_EXPORT GUIVector2Field : public TGUIField<GUIVector2Field>
  8. {
  9. public:
  10. static const String& getGUITypeName();
  11. GUIVector2Field(const PrivatelyConstruct& dummy, const GUIContent& labelContent, UINT32 labelWidth,
  12. const String& labelStyle, const String& inputBoxStyle, const GUILayoutOptions& layoutOptions, bool withLabel);
  13. Vector2 getValue() const;
  14. void setValue(const Vector2& value);
  15. protected:
  16. virtual ~GUIVector2Field() { }
  17. protected:
  18. static const UINT32 ELEMENT_LABEL_WIDTH;
  19. GUIFloatField* mFieldX;
  20. GUIFloatField* mFieldY;
  21. };
  22. }