| Package | qnx.fuse.ui.layouts |
| Class | public final class LayoutMeasurement |
| Inheritance | LayoutMeasurement Object |
See also
| Property | Defined By | ||
|---|---|---|---|
| preferredHeight : Number
The preferred height of the control. | LayoutMeasurement | ||
| preferredSize : Point [read-only]
Get the preferred size. | LayoutMeasurement | ||
| preferredWidth : Number
The preferred width of the control. | LayoutMeasurement | ||
| Method | Defined By | ||
|---|---|---|---|
LayoutMeasurement(preferredWidth:Number = 0, preferredHeight:Number = 0)
Creates a LayoutMeasurement instance. | LayoutMeasurement | ||
createConstrained(preferredWidth:Number, preferredHeight:Number, constrainedWidth:Number, constrainedHeight:Number):LayoutMeasurement [static]
Creates a LayoutMeasurement instance, using a combination of the component's constrained height and width,
and the component's preferred height and width. | LayoutMeasurement | ||
createFromPreferredSize(preferredSize:Point):LayoutMeasurement [static]
Creates a LayoutMeasurement instance given the preferred size of the control. | LayoutMeasurement | ||
| preferredHeight | property |
public var preferredHeight:NumberThe preferred height of the control.
| preferredSize | property |
preferredSize:Point [read-only] Get the preferred size.
public function get preferredSize():Point| preferredWidth | property |
public var preferredWidth:NumberThe preferred width of the control.
| LayoutMeasurement | () | Constructor |
public function LayoutMeasurement(preferredWidth:Number = 0, preferredHeight:Number = 0)
Creates a LayoutMeasurement instance.
preferredWidth:Number (default = 0) — The preferred width of the component. Default is 0.
| |
preferredHeight:Number (default = 0) — The preferred height of the component. Default is 0.
|
| createConstrained | () | method |
public static function createConstrained(preferredWidth:Number, preferredHeight:Number, constrainedWidth:Number, constrainedHeight:Number):LayoutMeasurement
Creates a LayoutMeasurement instance, using a combination of the component's constrained height and width,
and the component's preferred height and width.
If the specified constrained height or width does not match the default size of the component (as specified by the layout), then the
constrainedWidth value is used as the preferred width of the LayoutMeasurement. Otherwise, the preferred width
of the LayoutMeasurement is set to the specified preferred width.
Parameters
preferredWidth:Number — The preferred width of the component.
| |
preferredHeight:Number — The preferred height of the component.
| |
constrainedWidth:Number — The constrained width of the component.
| |
constrainedHeight:Number — The constrained height of the component.
|
LayoutMeasurement — A LayoutMeasurement instance that was created using a combination of the preferred and constrained dimensions.
|
| createFromPreferredSize | () | method |
public static function createFromPreferredSize(preferredSize:Point):LayoutMeasurement
Creates a LayoutMeasurement instance given the preferred size of the control.
Parameters
preferredSize:Point — The preferred size of the control, as a point.
|
LayoutMeasurement — A LayoutMeasurement instance created using the preferred size of the control.
|