mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +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() {
|
int32_t CGTooltip::GetScriptMetaTable() {
|
||||||
return CGTooltip::s_metatable;
|
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
|
// TODO
|
||||||
|
|
||||||
// Virtual member functions
|
// Virtual member functions
|
||||||
|
virtual bool IsA(int32_t type);
|
||||||
virtual int32_t GetScriptMetaTable();
|
virtual int32_t GetScriptMetaTable();
|
||||||
|
|
||||||
// Member functions
|
// Member functions
|
||||||
|
|||||||
Reference in new issue
Block a user