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
-
widthThe new width of the stage (in points).
property -
heightThe new height of the stage (in points).
property -
animationTimeIf the event was triggered by a change of the device orientation, indicates the duration of the pending rotation, measured in seconds.
property -
isPortraitIndicates 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 animationTimeDiscussion
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.hheight
The new height of the stage (in points).
@property (nonatomic, readonly) float heightDiscussion
The new height of the stage (in points).
Declared In
SPResizeEvent.hInstance 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)heightDiscussion
Initializes a resize event with the given parameters. Animation time will be zero.
Declared In
SPResizeEvent.hinitWithType: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)timeDiscussion
Initializes a resize event with the given parameters. Designated Initializer.
Declared In
SPResizeEvent.h