OpenTTD Source 20250522-master-g467f832c2f
|
Types related to zooming in and out. More...
#include "core/enum_type.hpp"
Go to the source code of this file.
Macros | |
#define | ZOOM_LVL_GUI (_gui_zoom) |
Typedefs | |
using | ZoomLevels = EnumBitSet< ZoomLevel, uint8_t > |
Enumerations | |
enum class | ZoomLevel : uint8_t { Begin = 0 , Min = Begin , In4x = Begin , In2x , Normal , Out2x , Out4x , Out8x , Max = Out8x , End , Viewport = Normal , News = Normal , Industry = Out2x , Town = Normal , Aircraft = Normal , Ship = Normal , Train = Normal , RoadVehicle = Normal , WorldScreenshot = Normal , Detail = Out2x , TextEffect = Out2x } |
All zoom levels we know. More... | |
Variables | |
static const uint | ZOOM_BASE_SHIFT = to_underlying(ZoomLevel::Normal) |
static uint const | ZOOM_BASE = 1U << ZOOM_BASE_SHIFT |
int | _gui_scale |
GUI scale, 100 is 100%. | |
int | _gui_scale_cfg |
GUI scale in config. | |
ZoomLevel | _gui_zoom |
GUI Zoom level. | |
ZoomLevel | _font_zoom |
Sprite font Zoom level (not clamped) | |
static const int | MIN_INTERFACE_SCALE = 100 |
static const int | MAX_INTERFACE_SCALE = 500 |
Types related to zooming in and out.
Definition in file zoom_type.h.
#define ZOOM_LVL_GUI (_gui_zoom) |
Definition at line 55 of file zoom_type.h.
using ZoomLevels = EnumBitSet<ZoomLevel, uint8_t> |
Definition at line 45 of file zoom_type.h.
|
strong |
All zoom levels we know.
Definition at line 16 of file zoom_type.h.
|
extern |
Sprite font Zoom level (not clamped)
Definition at line 62 of file gfx.cpp.
Referenced by AdjustGUIZoom(), ReadSprite(), ScaleFontTrad(), and UpdateGUIZoom().
|
extern |
GUI scale, 100 is 100%.
Definition at line 63 of file gfx.cpp.
Referenced by AdjustGUIZoom(), GameOptionsWindow::OnClick(), GameOptionsWindow::OnMouseLoop(), Window::ReInit(), ScaleGUITrad(), and UpdateGUIZoom().
|
extern |
GUI scale in config.
Definition at line 64 of file gfx.cpp.
Referenced by GameOptionsWindow::OnClick(), GameOptionsWindow::OnInvalidateData(), GameOptionsWindow::OnMouseLoop(), and UpdateGUIZoom().
|
extern |
GUI Zoom level.
Definition at line 61 of file gfx.cpp.
Referenced by AdjustGUIZoom(), and UpdateGUIZoom().
|
static |
Definition at line 58 of file zoom_type.h.
|
static |
Definition at line 57 of file zoom_type.h.
|
static |
Definition at line 48 of file zoom_type.h.
|
static |
Definition at line 47 of file zoom_type.h.