Resolution
Extends:
A resolution.
Static Member Summary
Static Public Members | ||
public static get |
An auto sizing constant. |
Constructor Summary
Public Constructor | ||
public |
constructor(resizable: Resizable, width: Number, height: Number, scale: Number) Constructs a new resolution. |
Member Summary
Public Members | ||
public get |
The base height. |
|
public set |
|
|
public get |
The base width. |
|
public set |
|
|
public get |
The effective height. |
|
public set |
|
|
public get |
The preferred height. |
|
public set |
|
|
public get |
The preferred width. |
|
public set |
|
|
public |
this member was deprecated. Use an event listener for "change" events instead.
A resizable object. |
|
public get |
The resolution scale. |
|
public set |
|
|
public |
target: Vector2 this member was deprecated. Added for backward-compatibility.
The preferred resolution. |
|
public get |
The effective width. |
|
public set |
|
Method Summary
Public Methods | ||
public |
copy(resolution: Resolution) Copies the given resolution. |
|
public |
this method was deprecated. Use baseHeight instead.
Returns the base height. |
|
public |
this method was deprecated. Use baseWidth instead.
Returns the base width. |
|
public |
this method was deprecated. Use height instead.
Returns the effective height. |
|
public |
this method was deprecated. Use preferredHeight instead.
Returns the preferred height. |
|
public |
this method was deprecated. Use preferredWidth instead.
Returns the preferred width. |
|
public |
this method was deprecated. Use scale instead.
Returns the current resolution scale. |
|
public |
this method was deprecated. Use width instead.
Returns the effective width. |
|
public |
setBaseHeight(value: Number) this method was deprecated. Use baseHeight instead.
Sets the base height. |
|
public |
setBaseSize(width: Number, height: Number) Sets the base size. |
|
public |
setBaseWidth(value: Number) this method was deprecated. Use baseWidth instead.
Sets the base width. |
|
public |
setPreferredHeight(value: Number) this method was deprecated. Use preferredHeight instead.
Sets the preferred height. |
|
public |
setPreferredSize(width: Number, height: Number) Sets the preferred size. |
|
public |
setPreferredWidth(value: Number) this method was deprecated. Use preferredWidth instead.
Sets the preferred width. |
|
public |
this method was deprecated. Use scale instead.
Sets the resolution scale. |
Static Public Members
Public Constructors
Public Members
public set baseHeight source
public set baseWidth source
public get height: Number source
The effective height.
If the preferred width and height are set to Resizer.AUTO_SIZE, the base height will be returned.
public set height source
public set preferredHeight source
public set preferredWidth source
public resizable: Resizable source
A resizable object.
public set scale source
public target: Vector2 source
The preferred resolution.
public get width: Number source
The effective width.
If the preferred width and height are set to Resizer.AUTO_SIZE, the base width will be returned.
public set width source
Public Methods
public copy(resolution: Resolution) source
Copies the given resolution.
Params:
Name | Type | Attribute | Description |
resolution | Resolution | The resolution. |
public getBaseHeight(): Number source
Returns the base height.
public getBaseWidth(): Number source
Returns the base width.
public getHeight(): Number source
Returns the effective height.
If the preferred width and height are set to Resizer.AUTO_SIZE, the base height will be returned.
public getPreferredHeight(): Number source
Returns the preferred height.
public getPreferredWidth(): Number source
Returns the preferred width.
public getScale(): Number source
Returns the current resolution scale.
public getWidth(): Number source
Returns the effective width.
If the preferred width and height are set to Resizer.AUTO_SIZE, the base width will be returned.
public setBaseHeight(value: Number) source
Sets the base height.
Params:
Name | Type | Attribute | Description |
value | Number | The height. |
public setBaseWidth(value: Number) source
Sets the base width.
Params:
Name | Type | Attribute | Description |
value | Number | The width. |
public setPreferredHeight(value: Number) source
Sets the preferred height.
Use Resizer.AUTO_SIZE to automatically calculate the height based on the width and aspect ratio.
Params:
Name | Type | Attribute | Description |
value | Number | The height. |