type
Insets
src
@Js
@Serializable { simple=true }
const class Insets : Obj
Insets represents spacing around the edge of a rectangle.
constructors
fromStr |
Parse from comma or space separated string using CSS format |
---|---|
make |
Construct with top, and optional right, bottom, left. |
fields
bottom |
Bottom side spacing |
---|---|
defVal |
Default instance 0, 0, 0, 0. |
left |
Left side spacing |
right |
Right side spacing |
top |
Top side spacing |
methods
equals |
Return if obj is same Insets value. |
---|---|
h |
Top plus bottom |
hash |
Return hash of top, right, bottom, left. |
isNone |
Return if all sides are set to zero |
toSize |
Return right+left, top+bottom |
toStr |
If all four sides are equal return |
w |
Left plus right |