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

Function segmentGeometry

3ds/source/MainScreen.cpp:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 };
108
109 SegGeometry segmentGeometry(void)
110 {
111 TextPool& text = TextPool::get();
112 SegGeometry g;
113 g.segH = 16;
114 g.segY = 4;
115 g.pad = 7;
116 g.cellSaveW = (int)ceilf(text.width(i18n::t("main.tab_save"), 0.4f)) + g.pad * 2;
117 g.cellExtW = (int)ceilf(text.width(i18n::t("main.tab_extdata"), 0.4f)) + g.pad * 2;
118 g.segX = 320 - 6 - g.cellSaveW - g.cellExtW;
119 return g;
120 }
121}
122
123MainScreen::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