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

Function inlineSectionExtra

switch/source/SettingsScreen.cpp:147–152  ·  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

145 // carry a section — that constant top slot is what keeps scrolling from
146 // jumping when a group's header row scrolls off.
147 int inlineSectionExtra(const std::string& section, const std::string& prevSection)
148 {
149 if (section.empty() || section == prevSection)
150 return 0;
151 return SECTION_GAP_ABOVE + labelSlotH();
152 }
153
154 // The console's LAN address, matching how ftp.c binds gethostid(). Bytes are
155 // 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