Struct LayoutLength

Layout length can be either in device-independent pixels or in percents

struct LayoutLength

Constructors

NameDescription
this (px) Construct from pixels

Methods

NameDescription
applyPercent (base) If this is percent, return % of base, otherwise return stored pixel value
isDefined () True if size is finite, i.e. not SIZE_UNSPECIFIED
isPercent () True if contains percent value
opBinary (u)
opBinary (factor)

Static methods

NameDescription
percent (p) Construct from percent