Module suzy::dims[][src]

Types dealing with the dimensions of widgets.

The coordinate system in Suzy sets the origin at the lower-left of the screen, with positive X (+X) to the right, and +Y up.

Types Dim and Padding represent single-dimension quantities of their mesurements: Position+Size for Dim, and padding before and after for Padding.

Rect and Padding2d are traits which describe the 2-dimensional versions of Dim and Padding respectively.

As a trait, Rect is implemented by Widgets and most Graphics.

This module provides the types SimpleRect and SimplePadding2d, which are simple value types that implement their respective traits.

Structs

Dim

A struct representing span of a single dimension.

FixedSizeRect

A rectangular region which will ignore changes to size

Padding

Representation of a single dimension of padding.

SimplePadding2d

Representation of two dimensions of padding

SimpleRect

A struct representing a rectangular region

Traits

DynRect

An object-safe version of the Rect trait

Padding2d

Methods associated with retrieving and changing values of two dimensions of padding.

Rect

Methods associated with controlling the dimensions of a Rectangular visual element.