Class wm.Bounds
Defined in: Control.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Manages geometry for a rectangle, including margins, borders, and padding and frame-of-reference calculations.
|
Method Attributes | Method Name and Description |
---|---|
Get an object describing the content-box area.
|
|
Update metrics when padBorderMargin has changed.
|
|
setBorder(inBorder)
Set border extents in pixels.
|
|
setBounds(inBox, inT, inW, inH)
Set the outermost area of this box, including margin, border, and padding.
|
|
setMargin(inMargin)
Set margin extents in pixels.
|
|
setPadding(inPadding)
Set padding extents in pixels.
|
Class Detail
wm.Bounds()
Manages geometry for a rectangle, including margins, borders, and padding and frame-of-reference calculations.
Report errata or suggestions for
Bounds.
Method Detail
{Object}
getContentBounds()
Get an object describing the content-box area.
l, t describe the position of the origin for objects in this frame.
w, h describe the size of the content area of the box (inside margin, border, padding, and scrollbars).
- Returns:
- {Object} {l: Number, t: Number, w: Number, h: Number}
Report errata or suggestions for
getContentBounds.
padBorderMarginChanged()
Update metrics when padBorderMargin has changed.
Report errata or suggestions for
padBorderMarginChanged.
setBorder(inBorder)
Set border extents in pixels.
- Parameters:
- {String||Number} inBorder
- "t,
" || Number
Report errata or suggestions for
setBorder.
setBounds(inBox, inT, inW, inH)
Set the outermost area of this box, including margin, border, and padding.
l, t describe the position of the outer most corner of this box.
w, h describe the size of the box, including margin, border, and padding.
- Parameters:
- {Object} inBox
- {l: Number, t: Number, w: Number, h: Number }
- inT
- inW
- inH
Report errata or suggestions for
setBounds.
setMargin(inMargin)
Set margin extents in pixels.
- Parameters:
- {String||Number} inMargin
- "t,
" || Number
Report errata or suggestions for
setMargin.
setPadding(inPadding)
Set padding extents in pixels.
- Parameters:
- {String||Number} inPadding
- "t,
" || Number
Report errata or suggestions for
setPadding.