Module beamui.core.geometry

Basic geometric data types.

Import line

import beamui.core.geometry;

Functions

NameDescription
isDefinedSize(floating) True if size is finite, i.e. not SIZE_UNSPECIFIED
isValidSize(floating) True if size is sane, e.g. not -infinity. Used primarly in contracts

Structs

NameDescription
Boundaries Holds minimum, maximum and natural (preferred) size for widget
BoxOf 2D box
InsetsOf Represents area around rectangle. Used for margin, border and padding
RectOf 2D rectangle.
SizeOf 2D size

Manifest constants

NameTypeDescription
SIZE_UNSPECIFIED Size is undefined constant

Aliases

NameTypeDescription
Box BoxOf!(float)
BoxI BoxOf!(int)
Insets InsetsOf!(float)
InsetsI InsetsOf!(int)
Point Vector!(float,2)
PointI Vector!(int,2)
PointOf Vector!(T,2)
Rect RectOf!(float)
RectI RectOf!(int)
Size SizeOf!(float)
SizeI SizeOf!(int)