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

Method FriendPanel

Demos/Demo_Pointers/FriendPanel.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12 FriendPanel::FriendPanel()
13 {
14 initialiseByAttributes(this);
15
16 const MyGUI::IntSize& size = mMainWidget->getParentSize();
17 int offset = size.width / 3;
18
19 mMainWidget->setPosition(offset - (mMainWidget->getWidth() / 2), (size.height - mMainWidget->getHeight()) / 2);
20 }
21
22 bool FriendPanel::isIntersect(int _x, int _y)
23 {

Callers

nothing calls this directly

Calls 4

getParentSizeMethod · 0.80
setPositionMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected