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

Method ToolTip

Demos/Demo_ItemBox/ToolTip.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12 ToolTip::ToolTip() :
13 BaseLayout("ToolTip.layout")
14 {
15 assignWidget(mTextName, "text_Name");
16 assignWidget(mTextCount, "text_Count");
17 assignWidget(mTextDesc, "text_Desc");
18 assignWidget(mImageInfo, "image_Info");
19
20 MyGUI::ISubWidgetText* text = mTextDesc->getSubWidgetText();
21 const MyGUI::IntCoord& coord = text ? text->getCoord() : MyGUI::IntCoord();
22 mOffsetHeight = mMainWidget->getHeight() - coord.height;
23 }
24
25 void ToolTip::show(ItemData* _data)
26 {

Callers

nothing calls this directly

Calls 4

assignWidgetFunction · 0.85
getSubWidgetTextMethod · 0.80
IntCoordFunction · 0.50
getHeightMethod · 0.45

Tested by

no test coverage detected