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

Function inlineSectionExtra

switch/source/SettingsScreen.cpp:150–155  ·  view source on GitHub ↗

Vertical space the section label of a NON-first row reserves above its rect. The very first drawn row always reserves labelSlotH() unconditionally (a sticky header slot), so its space never depends on whether it happens to carry a section — that constant top slot is what keeps scrolling from jumping when a group's header row scrolls off.

Source from the content-addressed store, hash-verified

148 // carry a section — that constant top slot is what keeps scrolling from
149 // jumping when a group's header row scrolls off.
150 int inlineSectionExtra(const std::string& section, const std::string& prevSection)
151 {
152 if (section.empty() || section == prevSection)
153 return 0;
154 return SECTION_GAP_ABOVE + labelSlotH();
155 }
156
157 // The console's LAN address, matching how ftp.c binds gethostid(). Bytes are
158 // read in memory order (little-endian ARM), so the low byte is the first

Callers 2

drawMethod · 0.85
lastVisibleRowMethod · 0.85

Calls 2

labelSlotHFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected