RelativeSize

Allow specifying a size as a combination of parent size % and pixels. Sizes are summed together.

Members

Functions

opBinary
RelativeSize opBinary(RelativeSize other)
Undocumented in source. Be warned that the author may not have intended to support it.
toPixels
int toPixels(int parentSize)

Get total resulting size.

Variables

px
int px;

Flat size in pixels.

ratio
float ratio;

Parent size ratio.

Meta