OpenTTD Source
20241108-master-g80f628063a
|
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) |
Enumerations | |
enum | ZoomLevel : uint8_t { ZOOM_LVL_BEGIN = 0 , ZOOM_LVL_IN_4X = 0 , ZOOM_LVL_IN_2X , ZOOM_LVL_NORMAL , ZOOM_LVL_OUT_2X , ZOOM_LVL_OUT_4X , ZOOM_LVL_OUT_8X , ZOOM_LVL_END , ZOOM_LVL_VIEWPORT = ZOOM_LVL_NORMAL , ZOOM_LVL_NEWS = ZOOM_LVL_NORMAL , ZOOM_LVL_INDUSTRY = ZOOM_LVL_OUT_2X , ZOOM_LVL_TOWN = ZOOM_LVL_NORMAL , ZOOM_LVL_AIRCRAFT = ZOOM_LVL_NORMAL , ZOOM_LVL_SHIP = ZOOM_LVL_NORMAL , ZOOM_LVL_TRAIN = ZOOM_LVL_NORMAL , ZOOM_LVL_ROADVEH = ZOOM_LVL_NORMAL , ZOOM_LVL_WORLD_SCREENSHOT = ZOOM_LVL_NORMAL , ZOOM_LVL_DETAIL = ZOOM_LVL_OUT_2X , ZOOM_LVL_TEXT_EFFECT = ZOOM_LVL_OUT_2X , ZOOM_LVL_MIN = ZOOM_LVL_IN_4X , ZOOM_LVL_MAX = ZOOM_LVL_OUT_8X } |
All zoom levels we know. More... | |
Variables | |
static uint const | ZOOM_BASE_SHIFT = static_cast<uint>(ZOOM_LVL_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.
enum ZoomLevel : uint8_t |
All zoom levels we know.
Definition at line 16 of file zoom_type.h.