BsGUIToggleField.h 633 B

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