BsGUIToggleField.h 605 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "BsEditorPrerequisites.h"
  3. #include "BsGUIFieldBase.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_ED_EXPORT GUIToggleField : public TGUIField<GUIToggleField>
  7. {
  8. public:
  9. static const String& getGUITypeName();
  10. GUIToggleField(const PrivatelyConstruct& dummy, const GUIContent& labelContent, UINT32 labelWidth,
  11. const String& labelStyle, const String& toggleStyle, const GUILayoutOptions& layoutOptions, bool withLabel);
  12. bool getValue() const;
  13. void setValue(bool value);
  14. protected:
  15. virtual ~GUIToggleField() { }
  16. protected:
  17. GUIToggle* mToggle;
  18. };
  19. }