MCPcopy Create free account
hub / github.com/axmolengine/axmol / initWithViewSize

Method initWithViewSize

extensions/GUI/src/GUI/ScrollView/TableView.cpp:70–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool TableView::initWithViewSize(Size size, Node* container /* = nullptr*/)
71{
72 if (ScrollView::initWithViewSize(size, container))
73 {
74 AX_SAFE_DELETE(_indices);
75 _indices = new std::set<ssize_t>();
76 _vordering = VerticalFillOrder::BOTTOM_UP;
77 this->setDirection(Direction::VERTICAL);
78
79 ScrollView::setDelegate(this);
80 return true;
81 }
82 return false;
83}
84
85TableView::TableView()
86 : _touchedCell(nullptr)

Callers 4

createMethod · 0.45
createMethod · 0.45

Calls 2

setDelegateFunction · 0.70
setDirectionMethod · 0.45

Tested by 1

createMethod · 0.36