MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyToolTip

Method notifyToolTip

Tools/LayoutEditor/PropertyFieldSkin.cpp:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void PropertyFieldSkin::notifyToolTip(MyGUI::Widget* _sender, const MyGUI::ToolTipInfo& _info)
56 {
57 if (_info.type == MyGUI::ToolTipInfo::Show)
58 {
59 SkinInfo data = getCellData(_info.index);
60 EditorToolTip::getInstancePtr()->show(data);
61 EditorToolTip::getInstancePtr()->move(_info.point);
62 }
63 else if (_info.type == MyGUI::ToolTipInfo::Hide)
64 {
65 EditorToolTip::getInstancePtr()->hide();
66 }
67 else if (_info.type == MyGUI::ToolTipInfo::Move)
68 {
69 EditorToolTip::getInstancePtr()->move(_info.point);
70 }
71 }
72
73 SkinInfo PropertyFieldSkin::getCellData(size_t _index)
74 {

Callers

nothing calls this directly

Calls 4

getInstancePtrFunction · 0.85
showMethod · 0.45
moveMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected