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

Method IsVisible

src/settingentry_gui.cpp:42–46  ·  view source on GitHub ↗

* Check whether an entry is visible and not folded or filtered away. * Note: This does not consider the scrolling range; it might still require scrolling to make the setting really visible. * @param item Entry to search for. * @return true if entry is visible. */

Source from the content-addressed store, hash-verified

40 * @return true if entry is visible.
41 */
42bool BaseSettingEntry::IsVisible(const BaseSettingEntry *item) const
43{
44 if (this->IsFiltered()) return false;
45 return this == item;
46}
47
48/**
49 * Find setting entry at row \a row_num

Callers 9

DrawWidgetMethod · 0.45
DrawWidgetMethod · 0.45
OnInvalidateDataMethod · 0.45
DrawWidgetMethod · 0.45
OnInvalidateDataMethod · 0.45
DrawTimetablePanelMethod · 0.45
DrawWidgetMethod · 0.45
DrawWidgetMethod · 0.45

Calls 1

IsFilteredMethod · 0.95

Tested by

no test coverage detected