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

Method createWithRect

core/platform/RenderViewImpl.cpp:453–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453RenderViewImpl* RenderViewImpl::createWithRect(std::string_view viewName,
454 const ax::Rect& rect,
455 float frameZoomFactor,
456 bool resizable)
457{
458 auto ret = new RenderViewImpl;
459 if (ret->initWithRect(viewName, rect, frameZoomFactor, resizable))
460 {
461 ret->autorelease();
462 return ret;
463 }
464 AX_SAFE_DELETE(ret);
465 return nullptr;
466}
467
468RenderViewImpl* RenderViewImpl::createWithFullScreen(std::string_view viewName)
469{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithRectMethod · 0.45

Tested by

no test coverage detected