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

Method BasePanelView

Common/PanelView/BasePanelView.h:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24 public:
25 BasePanelView(std::string_view _layout, MyGUI::Widget* _parent) :
26 BaseLayout(_layout, _parent)
27 {
28 mScrollView = mMainWidget->castType<MyGUI::ScrollView>();
29
30 // потом перенести в лейаут
31 mScrollView->setCanvasAlign(MyGUI::Align::HCenter | MyGUI::Align::Top);
32 mScrollView->setVisibleHScroll(false);
33 mNeedUpdate = false;
34
35 mOldClientWidth = mScrollView->getViewCoord().width;
36
37 MyGUI::Gui::getInstance().eventFrameStart += MyGUI::newDelegate(this, &BasePanelView::frameEnteredCheck);
38 }
39
40 ~BasePanelView() override
41 {

Callers

nothing calls this directly

Calls 4

newDelegateFunction · 0.85
setCanvasAlignMethod · 0.80
getViewCoordMethod · 0.80
setVisibleHScrollMethod · 0.45

Tested by

no test coverage detected