27 default:
return this->
h;
40 d.width = std::max(d1.width, d2.width);
41 d.height = std::max(d1.height, d2.height);
59 r.top = std::min(r1.top, r2.top);
60 r.bottom = std::max(r1.bottom, r2.bottom);
61 r.left = std::min(r1.left, r2.left);
62 r.right = std::max(r1.right, r2.right);
Rect BoundingRect(const Rect &r1, const Rect &r2)
Compute the bounding rectangle around two rectangles.
Dimension maxdim(const Dimension &d1, const Dimension &d2)
Compute bounding box of both dimensions.
bool IsEmptyRect(const Rect &r)
Check if a rectangle is empty.
AlignmentH
Horizontal alignments.
@ ForceRight
Force align to the right.
@ End
Align to the end, LTR/RTL aware.
@ Start
Align to the start, LTR/RTL aware.
@ ForceLeft
Force align to the left.
#define Rect
Macro that prevents name conflicts between included headers.
A number of safeguards to prevent using unsafe methods.
Definition of base types and functions in a cross-platform compatible way.
TextDirection _current_text_dir
Text direction of the currently selected language.
Functions related to OTTD's strings.
Types related to strings.
@ TD_RTL
Text is written right-to-left by default.
AlignmentH ResolveRTL() const
Resolve horizontal alignment for the current text direction.
AlignmentH h
Horizontal alignment.
Dimensions (a width and height) of a rectangle in 2D.