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

Method create

tests/cpp-tests/Source/BaseTest.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58{
59public:
60 static TestCustomTableView* create(TableViewDataSource* dataSource, Size size)
61 {
62 auto table = new TestCustomTableView();
63 table->initWithViewSize(size, nullptr);
64 table->autorelease();
65 table->setDataSource(dataSource);
66 table->_updateCellPositions();
67 table->_updateContentSize();
68
69 return table;
70 }
71
72 virtual void onTouchEnded(Touch* touch, Event* event) override
73 {

Callers

nothing calls this directly

Calls 4

autoreleaseMethod · 0.80
_updateCellPositionsMethod · 0.80
_updateContentSizeMethod · 0.80
initWithViewSizeMethod · 0.45

Tested by

no test coverage detected