BsGUIVector3Field.h 752 B

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