mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): add CSimpleCheckbox::Enable
This commit is contained in:
parent
0a2c95cda1
commit
cdf7dc88d8
@ -39,6 +39,11 @@ bool CSimpleCheckbox::IsA(int32_t type) {
|
||||
|| type == CScriptObject::s_objectType;
|
||||
}
|
||||
|
||||
void CSimpleCheckbox::Enable(int32_t enabled) {
|
||||
this->CSimpleButton::Enable(enabled);
|
||||
this->SetChecked(this->m_checked, 1);
|
||||
}
|
||||
|
||||
int32_t CSimpleCheckbox::GetChecked() {
|
||||
return this->m_checked;
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ class CSimpleCheckbox : public CSimpleButton {
|
||||
virtual bool IsA(int32_t type);
|
||||
virtual int32_t GetScriptMetaTable();
|
||||
virtual void LoadXML(XMLNode* node, CStatus* status);
|
||||
virtual void Enable(int32_t enabled);
|
||||
|
||||
// Member functions
|
||||
CSimpleCheckbox(CSimpleFrame* parent)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user