Interface to be implemented by components wishing to display some object that may be dynamically resized during runtime.
Textual representations of units symbols. Supported units and their symbols are:
UNITS_PIXELS
: "" (unit is omitted for pixels)
UNITS_POINTS
: "pt"
UNITS_PICAS
: "pc"
UNITS_EM
: "em"
UNITS_EX
: "ex"
UNITS_MM
: "mm"
UNITS_CM
. "cm"
UNITS_INCH
: "in"
UNITS_PERCENTAGE
: "%"
UNITS_ROWS
: "rows"
These can be used like
Sizeable.UNIT_SYMBOLS[UNITS_PIXELS]
.
Unit code representing in rows of text. This unit is only applicaple to some components can it's meaning is specified by component implementation.
Parameters
height of the object in units specified by heightUnits property.
Get height of the object. Negative number implies unspecified size (terminal is free to set the size).
Parameters
width of the object in units specified by widthUnits property.
Get width of the object. Negative number implies unspecified size (terminal is free to set the size).
Parameters
height
height of the object in units specified by heightUnits property.
Set height of the object. Negative number implies unspecified size (terminal is free to set the size).
Parameters
width
width of the object in units specified by widthUnits property.
Set width of the object. Negative number implies unspecified size (terminal is free to set the size).