| Package | qnx.ui.core |
| Interface | public interface IContainable extends ISizeable |
| Implementors | Spacer, UIComponent |
See also
| Property | Defined By | ||
|---|---|---|---|
| containment : String
Specifies how a component is contained within a parent container. | IContainable | ||
| size : Number
Gets or sets the size for this component (as a percentage of the
container's size, or in pixels). | IContainable | ||
| sizeMode : String
Gets or sets the size mode for this component. | IContainable | ||
| sizeUnit : String
Gets or sets the unit of measurement for the size property. | IContainable | ||
| Method | Defined By | ||
|---|---|---|---|
setPosition(x:Number, y:Number):void
Called by the container to set the position of the component
relative to the position of the container. | IContainable | ||
![]() | setSize(w:Number, h:Number):void
Sets the width and height of the component. | ISizeable | |
| containment | property |
containment:StringSpecifies how a component is contained within a parent container. Possible values are:
Containment.BACKGROUNDContainment.UNCONTAINEDContainment.CONTAINEDContainment.DOCK_LEFTContainment.DOCK_TOPContainment.DOCK_RIGHTContainment.DOCK_BOTTOM public function get containment():String public function set containment(value:String):voidSee also
| size | property |
size:NumberGets or sets the size for this component (as a percentage of the container's size, or in pixels). This property is used by containers to layout this component in the appropriate direction.
If size is 0, the component is not resized during container layout
(it is positioned like any other MovieClip, Sprite or DisplayObject).
public function get size():Number public function set size(value:Number):voidSee also
| sizeMode | property |
sizeMode:StringGets or sets the size mode for this component. This property is used by containers when laying out the component. Possible values are:
SizeMode.FLOWSizeMode.BOTHNote that this property is ignored when size is 0.
public function get sizeMode():String public function set sizeMode(value:String):voidSee also
| sizeUnit | property |
sizeUnit:StringGets or sets the unit of measurement for the size property. Possible values are:
SizeUnit.PERCENTSizeUnit.PIXELS public function get sizeUnit():String public function set sizeUnit(value:String):voidSee also
| setPosition | () | method |
public function setPosition(x:Number, y:Number):voidCalled by the container to set the position of the component relative to the position of the container.
Parameters
x:Number — The x position in pixels for the component.
| |
y:Number — The y position in pixels for the component.
|