Struct LayoutLength
Layout length can be either in device-independent pixels or in percents
struct LayoutLength
Constructors
Name | Description |
---|---|
this
(px)
|
Construct from pixels |
Methods
Name | Description |
---|---|
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
Name | Description |
---|---|
percent
(p)
|
Construct from percent |