MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / segmentGeometry

Function segmentGeometry

3ds/source/MainScreen.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 };
91
92 SegGeometry segmentGeometry(void)
93 {
94 TextPool& text = TextPool::get();
95 SegGeometry g;
96 g.segH = 16;
97 g.segY = 4;
98 g.pad = 7;
99 g.cellSaveW = (int)ceilf(text.width(i18n::t("main.tab_save"), 0.4f)) + g.pad * 2;
100 g.cellExtW = (int)ceilf(text.width(i18n::t("main.tab_extdata"), 0.4f)) + g.pad * 2;
101 g.segX = 320 - 6 - g.cellSaveW - g.cellExtW;
102 return g;
103 }
104}
105
106MainScreen::MainScreen(void) : hid(rowlen * collen, collen)

Callers 2

drawBottomMethod · 0.85
handleEventsMethod · 0.85

Calls 2

getFunction · 0.85
widthMethod · 0.45

Tested by

no test coverage detected