MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Length

Method Length

src/settingentry_gui.cpp:156–159  ·  view source on GitHub ↗

Return number of rows needed to display the (filtered) entry */

Source from the content-addressed store, hash-verified

154
155/** Return number of rows needed to display the (filtered) entry */
156uint SettingEntry::Length() const
157{
158 return this->IsFiltered() ? 0 : 1;
159}
160
161/**
162 * Get the biggest height of the help text(s), if the width is at least \a maxw. Help text gets wrapped if needed.

Callers 1

OnInvalidateDataMethod · 0.45

Calls 1

IsFilteredMethod · 0.80

Tested by

no test coverage detected