mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(ui): add CSimpleCheckbox::Enable
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -39,6 +39,11 @@ bool CSimpleCheckbox::IsA(int32_t type) {
|
|||||||
|| type == CScriptObject::s_objectType;
|
|| type == CScriptObject::s_objectType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSimpleCheckbox::Enable(int32_t enabled) {
|
||||||
|
this->CSimpleButton::Enable(enabled);
|
||||||
|
this->SetChecked(this->m_checked, 1);
|
||||||
|
}
|
||||||
|
|
||||||
int32_t CSimpleCheckbox::GetChecked() {
|
int32_t CSimpleCheckbox::GetChecked() {
|
||||||
return this->m_checked;
|
return this->m_checked;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class CSimpleCheckbox : public CSimpleButton {
|
|||||||
virtual bool IsA(int32_t type);
|
virtual bool IsA(int32_t type);
|
||||||
virtual int32_t GetScriptMetaTable();
|
virtual int32_t GetScriptMetaTable();
|
||||||
virtual void LoadXML(XMLNode* node, CStatus* status);
|
virtual void LoadXML(XMLNode* node, CStatus* status);
|
||||||
|
virtual void Enable(int32_t enabled);
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
CSimpleCheckbox(CSimpleFrame* parent)
|
CSimpleCheckbox(CSimpleFrame* parent)
|
||||||
|
|||||||
Reference in new issue
Block a user