|
OpenTTD Source 20260704-master-gbf70c61fb8
|
Horizontal and vertical alignment. More...
#include <geometry_type.hpp>
Public Member Functions | |
| constexpr | Alignment (AlignmentH h, AlignmentV v) |
| Construct an alignment with the specified horizontal and vertical alignment. | |
| constexpr | Alignment (AlignmentH h) |
| Construct an alignment with the specific horizontal alignment. | |
| AlignmentH | ResolveRTL () const |
| Resolve horizontal alignment for the current text direction. | |
Data Fields | |
| AlignmentH | h |
| Horizontal alignment. | |
| AlignmentV | v |
| Vertical alignment. | |
Horizontal and vertical alignment.
Definition at line 36 of file geometry_type.hpp.
|
inlineconstexpr |
Construct an alignment with the specified horizontal and vertical alignment.
| h | The horizontal alignment. |
| v | The vertical alignment. |
Definition at line 45 of file geometry_type.hpp.
Referenced by Alignment().
|
inlineconstexpr |
Construct an alignment with the specific horizontal alignment.
| h | The horizontal alignment. |
Definition at line 51 of file geometry_type.hpp.
References Alignment(), and h.
| AlignmentH Alignment::ResolveRTL | ( | ) | const |
Resolve horizontal alignment for the current text direction.
Definition at line 22 of file geometry_func.cpp.
References _current_text_dir, End, ForceLeft, ForceRight, h, Start, and TD_RTL.
Referenced by DrawLayoutLine(), GetAlignedPosition(), and IntroGameViewportCommand::PositionForViewport().
| AlignmentH Alignment::h |
Horizontal alignment.
Definition at line 37 of file geometry_type.hpp.
Referenced by Alignment(), Alignment(), DrawLayoutLine(), SelectGameWindow::ReadIntroGameViewportCommand(), and ResolveRTL().
| AlignmentV Alignment::v |
Vertical alignment.
Definition at line 38 of file geometry_type.hpp.
Referenced by Alignment(), DrawImageTextButtons(), DrawStringMultiLine(), GetAlignedPosition(), IntroGameViewportCommand::PositionForViewport(), and SelectGameWindow::ReadIntroGameViewportCommand().