mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-09 08:09:53 +03:00
feat(ui): add CGTooltip::IsA
This commit is contained in:
2 files changed
+8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user