MCPcopy Create free account
hub / github.com/defold/defold / GetProfilerArea

Function GetProfilerArea

engine/profiler/src/profiler_render.cpp:402–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 };
401
402 static Area GetProfilerArea(DisplayMode display_mode, const Size& display_size)
403 {
404 if (display_mode == DISPLAYMODE_MINIMIZED)
405 {
406 Position p(BORDER_SIZE, display_size.h - (BORDER_SIZE + CHARACTER_HEIGHT + CHARACTER_BORDER * 2));
407 Size s(display_size.w - (BORDER_SIZE * 2), CHARACTER_HEIGHT + CHARACTER_BORDER * 2);
408 return Area(p, s);
409 }
410 Position p(BORDER_SIZE, BORDER_SIZE);
411 Size s(display_size.w - (BORDER_SIZE * 2), display_size.h - (BORDER_SIZE * 2));
412 return Area(p, s);
413 }
414
415 static Area GetHeaderArea(DisplayMode display_mode, const Area& profiler_area)
416 {

Callers 1

DrawFunction · 0.85

Calls 1

AreaClass · 0.85

Tested by

no test coverage detected