mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(ui): add CGTooltip::IsA
This commit is contained in:
parent
3d7d000190
commit
2c181e436c
@ -35,3 +35,10 @@ CGTooltip::CGTooltip(CSimpleFrame* parent) : CSimpleFrame(parent) {
|
||||
int32_t CGTooltip::GetScriptMetaTable() {
|
||||
return CGTooltip::s_metatable;
|
||||
}
|
||||
|
||||
bool CGTooltip::IsA(int32_t type) {
|
||||
return type == CGTooltip::s_objectType
|
||||
|| type == CSimpleFrame::s_objectType
|
||||
|| type == CScriptRegion::s_objectType
|
||||
|| type == CScriptObject::s_objectType;
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ class CGTooltip : public CSimpleFrame {
|
||||
// TODO
|
||||
|
||||
// Virtual member functions
|
||||
virtual bool IsA(int32_t type);
|
||||
virtual int32_t GetScriptMetaTable();
|
||||
|
||||
// Member functions
|
||||
|
||||
Loading…
Reference in New Issue
Block a user