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

Method notifyToolTip

Tools/LayoutEditor/ProjectControl.cpp:700–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698 }
699
700 void ProjectControl::notifyToolTip(MyGUI::Widget* _sender, const MyGUI::ToolTipInfo& _info)
701 {
702 if (_info.type == MyGUI::ToolTipInfo::Show)
703 {
704 if (_info.index != MyGUI::ITEM_NONE)
705 {
706 SkinInfo data = getCellData(_sender, _info.index);
707 EditorToolTip::getInstancePtr()->show(data);
708 EditorToolTip::getInstancePtr()->move(_info.point);
709 }
710 }
711 else if (_info.type == MyGUI::ToolTipInfo::Hide)
712 {
713 EditorToolTip::getInstancePtr()->hide();
714 }
715 else if (_info.type == MyGUI::ToolTipInfo::Move)
716 {
717 EditorToolTip::getInstancePtr()->move(_info.point);
718 }
719 }
720
721 SkinInfo ProjectControl::getCellData(MyGUI::Widget* _sender, size_t _index)
722 {

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