Constructs a new resolution.
TODO Remove resizable param.
A resizable object.
A resizable object.
The preferred resolution.
An auto sizing constant.
Can be used to automatically calculate the width or height based on the original aspect ratio.
The base height.
The base width.
The effective height.
If the preferred width and height are set to {@link Resizer.AUTO_SIZE}, the base height will be returned.
The preferred height.
The preferred width.
The resolution scale.
The effective width.
If the preferred width and height are set to {@link Resizer.AUTO_SIZE}, the base width will be returned.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Copies the given resolution.
The resolution.
Fire an event type.
The event that gets fired.
Returns the base height.
The base height.
Returns the base width.
The base width.
Returns the effective height.
If the preferred width and height are set to {@link Resizer.AUTO_SIZE}, the base height will be returned.
The effective height.
Returns the preferred height.
The preferred height.
Returns the preferred width.
The preferred width.
Returns the current resolution scale.
The scale.
Returns the effective width.
If the preferred width and height are set to {@link Resizer.AUTO_SIZE}, the base width will be returned.
The effective width.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Sets the base height.
The height.
Sets the base size.
The width.
The height.
Sets the base width.
The width.
Sets the preferred height.
Use {@link Resizer.AUTO_SIZE} to automatically calculate the height based on the width and aspect ratio.
The height.
Sets the preferred size.
The width.
The height.
Sets the preferred width.
Use {@link Resizer.AUTO_SIZE} to automatically calculate the width based on the height and aspect ratio.
The width.
Sets the resolution scale.
Also sets the preferred resolution to {@link Resizer.AUTO_SIZE}.
The scale.
A resolution.