A layout frame definition, including X/Y coordinates and width/height values. More...
Instance Methods | |
(NSString *) | - clientId |
Gets the client identifier. More... | |
(NSString *) | - deviceId |
Gets the device identifier. More... | |
(int) | - height |
Gets the height value. More... | |
(instancetype) | - initWithX:y:width:height: |
Initializes a new instance of the FMLiveSwitchLayoutFrame class. More... | |
(bool) | - isEquivalentWithLayoutFrame: |
Determines whether the specified layout frame is equivalent. More... | |
(int) | - orientation |
Gets the orientation in degrees. More... | |
(void) | - setClientId: |
Sets the client identifier. More... | |
(void) | - setDeviceId: |
Sets the device identifier. More... | |
(void) | - setHeight: |
Sets the height value. More... | |
(void) | - setOrientation: |
Sets the orientation in degrees. More... | |
(void) | - setUserId: |
Sets the user identifier. More... | |
(void) | - setViewId: |
Sets the view ID. More... | |
(void) | - setWidth: |
Sets the width value. More... | |
(void) | - setX: |
Sets the X coordinate. More... | |
(void) | - setY: |
Sets the Y coordinate. More... | |
(NSString *) | - toJson |
Serializes this instance to JSON. More... | |
(NSString *) | - userId |
Gets the user identifier. More... | |
(NSString *) | - viewId |
Gets the view ID. More... | |
(int) | - width |
Gets the width value. More... | |
(int) | - x |
Gets the X coordinate. More... | |
(int) | - y |
Gets the Y coordinate. More... | |
Class Methods | |
(FMLiveSwitchLayoutFrame *) | + fromJsonWithLayoutFrameJson: |
Deserializes a layout frame from JSON. More... | |
(FMLiveSwitchLayoutFrame *) | + getScaledFrameWithScale:outerWidth:outerHeight:innerWidth:innerHeight: |
Gets a scaled frame. More... | |
(FMLiveSwitchLayoutFrame *) | + layoutFrameWithX:y:width:height: |
Initializes a new instance of the FMLiveSwitchLayoutFrame class. More... | |
(NSString *) | + toJsonWithLayoutFrame: |
Serializes a layout frame to JSON. More... | |
A layout frame definition, including X/Y coordinates and width/height values.
- (NSString*) clientId |
Gets the client identifier.
- (NSString*) deviceId |
Gets the device identifier.
+ (FMLiveSwitchLayoutFrame*) fromJsonWithLayoutFrameJson: | (NSString *) | layoutFrameJson |
Deserializes a layout frame from JSON.
layoutFrameJson | The layout frame JSON. |
+ (FMLiveSwitchLayoutFrame*) getScaledFrameWithScale: | (FMLiveSwitchLayoutScale) | scale | |
outerWidth: | (int) | outerWidth | |
outerHeight: | (int) | outerHeight | |
innerWidth: | (int) | innerWidth | |
innerHeight: | (int) | innerHeight | |
Gets a scaled frame.
scale | The scaling algorithm to use. |
outerWidth | The width of the outer container. |
outerHeight | The height of the outer container. |
innerWidth | The width of the inner element. |
innerHeight | The height of the inner element. |
- (int) height |
Gets the height value.
- (instancetype) initWithX: | (int) | x | |
y: | (int) | y | |
width: | (int) | width | |
height: | (int) | height | |
Initializes a new instance of the FMLiveSwitchLayoutFrame class.
x | The X coordinate. |
y | The Y coordinate. |
width | The width value. |
height | The height value. |
- (bool) isEquivalentWithLayoutFrame: | (FMLiveSwitchLayoutFrame *) | layoutFrame |
Determines whether the specified layout frame is equivalent.
layoutFrame | The layout frame. |
+ (FMLiveSwitchLayoutFrame*) layoutFrameWithX: | (int) | x | |
y: | (int) | y | |
width: | (int) | width | |
height: | (int) | height | |
Initializes a new instance of the FMLiveSwitchLayoutFrame class.
x | The X coordinate. |
y | The Y coordinate. |
width | The width value. |
height | The height value. |
- (int) orientation |
Gets the orientation in degrees.
- (void) setClientId: | (NSString *) | value |
Sets the client identifier.
- (void) setDeviceId: | (NSString *) | value |
Sets the device identifier.
- (void) setHeight: | (int) | value |
Sets the height value.
- (void) setOrientation: | (int) | value |
Sets the orientation in degrees.
- (void) setUserId: | (NSString *) | value |
Sets the user identifier.
- (void) setViewId: | (NSString *) | value |
Sets the view ID.
- (void) setWidth: | (int) | value |
Sets the width value.
- (void) setX: | (int) | value |
Sets the X coordinate.
- (void) setY: | (int) | value |
Sets the Y coordinate.
- (NSString*) toJson |
Serializes this instance to JSON.
+ (NSString*) toJsonWithLayoutFrame: | (FMLiveSwitchLayoutFrame *) | layoutFrame |
Serializes a layout frame to JSON.
layoutFrame | The layout frame. |
- (NSString*) userId |
Gets the user identifier.
- (NSString*) viewId |
Gets the view ID.
- (int) width |
Gets the width value.
- (int) x |
Gets the X coordinate.
- (int) y |
Gets the Y coordinate.