|
OpenTTD Source 15.0-beta3
|
Declarations of classes for handling display of individual configuration settings. More...
Go to the source code of this file.
Data Structures | |
| struct | SettingFilter |
| Filter for settings list. More... | |
| struct | BaseSettingEntry |
| Data structure describing a single setting in a tab. More... | |
| struct | SettingEntry |
| Standard setting. More... | |
| struct | SettingsContainer |
| Containers for BaseSettingEntry. More... | |
| struct | SettingsPage |
| Data structure describing one page of settings in the settings window. More... | |
Typedefs | |
| using | SettingEntryFlags = EnumBitSet< SettingEntryFlag, uint8_t > |
Enumerations | |
| enum class | SettingEntryFlag : uint8_t { LeftDepressed , RightDepressed , LastField , Filtered } |
| Flags for SettingEntry. More... | |
| enum | RestrictionMode : uint8_t { RM_BASIC , RM_ADVANCED , RM_ALL , RM_CHANGED_AGAINST_DEFAULT , RM_CHANGED_AGAINST_NEW , RM_END } |
| How the list of advanced settings is filtered. More... | |
Functions | |
| SettingsContainer & | GetSettingsTree () |
| Construct settings tree. | |
| const void * | ResolveObject (const GameSettings *settings_ptr, const IntSettingDesc *sd) |
Variables | |
| Dimension | _setting_circle_size |
| Dimension of the circle +/- icon. This is here as not all users are within the class of the settings window. | |
| int | SETTING_HEIGHT |
| Height of a single setting in the tree view in pixels. | |
| static constexpr SettingEntryFlags | SEF_BUTTONS_MASK = {SettingEntryFlag::LeftDepressed, SettingEntryFlag::RightDepressed} |
| Mask for button flags. | |
Declarations of classes for handling display of individual configuration settings.
Definition in file settingentry_gui.h.
| using SettingEntryFlags = EnumBitSet<SettingEntryFlag, uint8_t> |
Definition at line 30 of file settingentry_gui.h.
| enum RestrictionMode : uint8_t |
How the list of advanced settings is filtered.
Definition at line 35 of file settingentry_gui.h.
|
strong |
Flags for SettingEntry.
Definition at line 24 of file settingentry_gui.h.
| SettingsContainer & GetSettingsTree | ( | ) |
Construct settings tree.
Definition at line 619 of file settingentry_gui.cpp.
Referenced by GameOptionsWindow::DrawWidget(), GameOptionsWindow::OnClick(), GameOptionsWindow::OnDropdownSelect(), GameOptionsWindow::OnEditboxChanged(), GameOptionsWindow::OnInvalidateData(), and ResetAllSettingsConfirmationCallback().
| const void * ResolveObject | ( | const GameSettings * | settings_ptr, |
| const IntSettingDesc * | sd | ||
| ) |
Definition at line 249 of file settingentry_gui.cpp.
|
extern |
Dimension of the circle +/- icon. This is here as not all users are within the class of the settings window.
Definition at line 87 of file settings_gui.cpp.
Referenced by BaseSettingEntry::Draw(), SettingsPage::DrawSetting(), GameOptionsWindow::OnInit(), and GameOptionsWindow::UpdateWidgetSize().
|
staticconstexpr |
Mask for button flags.
Definition at line 32 of file settingentry_gui.h.
Referenced by SettingEntry::DrawSetting(), and SettingEntry::SetButtons().
|
extern |
Height of a single setting in the tree view in pixels.
Definition at line 366 of file settings_gui.cpp.
Referenced by BaseSettingEntry::Draw(), SettingEntry::DrawSetting(), SettingsPage::DrawSetting(), GameOptionsWindow::DrawWidget(), and GameOptionsWindow::UpdateWidgetSize().