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

Method notifyChangeWidth

Tools/LayoutEditor/PanelControllers.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67
68 void PanelControllers::notifyChangeWidth(int _width)
69 {
70 int width = mMainWidget->getClientCoord().width;
71
72 int half_width = (width - (mButtonLeft + mButtonRight + mButtonSpace)) / 2;
73 mButtonAdd->setSize(half_width, mButtonAdd->getHeight());
74 mButtonDelete->setCoord(
75 mButtonAdd->getRight() + mButtonSpace,
76 mButtonDelete->getTop(),
77 width - (mButtonAdd->getRight() + mButtonSpace + mButtonRight),
78 mButtonDelete->getHeight());
79 }
80
81 void PanelControllers::notifyAdd(MyGUI::Widget* _sender)
82 {

Callers

nothing calls this directly

Calls 5

getClientCoordMethod · 0.80
getTopMethod · 0.80
setSizeMethod · 0.45
getHeightMethod · 0.45
setCoordMethod · 0.45

Tested by

no test coverage detected