SPResizeEvent Class Reference
Inherits from | SPEvent : NSObject |
Declared in | SPResizeEvent.h |
Overview
An SPResizeEvent is triggered when the size of the GLKView object that Sparrow renders into is changed. The most probably reason for this to happen is when the device orientation changes. Every display object that is connected to the stage receives this event.
Tasks
Initialization
-
– initWithType:width:height:animationTime:
Initializes a resize event with the given parameters. Designated Initializer.
-
– initWithType:width:height:
Initializes a resize event with the given parameters. Animation time will be zero.
Properties
-
width
The new width of the stage (in points).
property -
height
The new height of the stage (in points).
property -
animationTime
If the event was triggered by a change of the device orientation, indicates the duration of the pending rotation, measured in seconds.
property -
isPortrait
Indicates if the new size is portrait or landscape.
property
Properties
animationTime
If the event was triggered by a change of the device orientation, indicates the duration of the pending rotation, measured in seconds.
@property (nonatomic, readonly) double animationTime
Discussion
If the event was triggered by a change of the device orientation, indicates the duration of the pending rotation, measured in seconds.
Declared In
SPResizeEvent.h
height
The new height of the stage (in points).
@property (nonatomic, readonly) float height
Discussion
The new height of the stage (in points).
Declared In
SPResizeEvent.h
Instance Methods
initWithType:width:height:
Initializes a resize event with the given parameters. Animation time will be zero.
- (instancetype)initWithType:(NSString *)type width:(float)width height:(float)height
Discussion
Initializes a resize event with the given parameters. Animation time will be zero.
Declared In
SPResizeEvent.h
initWithType:width:height:animationTime:
Initializes a resize event with the given parameters. Designated Initializer.
- (instancetype)initWithType:(NSString *)type width:(float)width height:(float)height animationTime:(double)time
Discussion
Initializes a resize event with the given parameters. Designated Initializer.
Declared In
SPResizeEvent.h