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

Function inlineSectionExtra

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

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