#pragma once #include "BsEditorPrerequisites.h" #include "BsGUIFieldBase.h" namespace BansheeEditor { class BS_ED_EXPORT GUIToggleField : public TGUIField { public: static const CM::String& getGUITypeName(); GUIToggleField(const PrivatelyConstruct& dummy, const BS::GUIContent& labelContent, CM::UINT32 labelWidth, const CM::String& labelStyle, const CM::String& toggleStyle, const BS::GUILayoutOptions& layoutOptions, bool withLabel); bool getValue() const; void setValue(bool value); protected: virtual ~GUIToggleField() { } protected: BS::GUIToggle* mToggle; }; }