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

Method notifyToolTip

Tools/LayoutEditor/WidgetsWindow.cpp:107–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void WidgetsWindow::notifyToolTip(MyGUI::Widget* _sender, const MyGUI::ToolTipInfo& _info)
108 {
109 if (_info.type == MyGUI::ToolTipInfo::Show)
110 {
111 SkinInfo data = getCellData(_sender);
112 EditorToolTip::getInstancePtr()->show(data);
113 EditorToolTip::getInstancePtr()->move(_info.point);
114 }
115 else if (_info.type == MyGUI::ToolTipInfo::Hide)
116 {
117 EditorToolTip::getInstancePtr()->hide();
118 }
119 else if (_info.type == MyGUI::ToolTipInfo::Move)
120 {
121 EditorToolTip::getInstancePtr()->move(_info.point);
122 }
123 }
124
125 void WidgetsWindow::notifyChangeCreatorMode(bool _modeCreate)
126 {

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