A basic rectangle struct, used to specify the bounds of a TextBufferWriter.
Notes: This struct is not fully @nogc due to the use of std.format within assert messages.
Finds the relative center point on the X axis, optionally taking into account the width of another object (e.g. text).
Finds the relative center point on the Y axis, optionally taking into account the height of another object (e.g. text).
height
x offset
y offset
width
See Implementation
A basic rectangle struct, used to specify the bounds of a TextBufferWriter.
Notes: This struct is not fully @nogc due to the use of std.format within assert messages.