FMIceLinkLayoutFrame Class Reference
Inherits from | NSObject |
---|---|
Declared in | FMIceLinkLayoutFrame.h FMIceLinkLayoutFrame.m |
Overview
A layout frame definition, including X/Y coordinates and width/[height](#//api/name/height) values.
+ fromJsonWithLayoutFrameJson:
Deserializes a layout frame from JSON.
+ (FMIceLinkLayoutFrame *)fromJsonWithLayoutFrameJson:(NSString *)layoutFrameJson
Parameters
layoutFrameJson |
The layout frame JSON. |
---|
Discussion
Deserializes a layout frame from JSON.
Declared In
FMIceLinkLayoutFrame.h
+ getScaledFrameWithScale:outerWidth:outerHeight:innerWidth:innerHeight:
Gets a scaled frame.
+ (FMIceLinkLayoutFrame *)getScaledFrameWithScale:(FMIceLinkLayoutScale)scale outerWidth:(int)outerWidth outerHeight:(int)outerHeight innerWidth:(int)innerWidth innerHeight:(int)innerHeight
Parameters
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. |
Discussion
Gets a scaled frame.
Declared In
FMIceLinkLayoutFrame.h
– height
Gets the height value.
- (int)height
Discussion
Gets the height value.
Declared In
FMIceLinkLayoutFrame.h
– initWithX:y:width:height:
Initializes a new instance of the FMIceLinkLayoutFrame class.
- (instancetype)initWithX:(int)x y:(int)y width:(int)width height:(int)height
Discussion
Initializes a new instance of the FMIceLinkLayoutFrame class.
Declared In
FMIceLinkLayoutFrame.h
– isEquivalentWithLayoutFrame:
Determines whether the specified layout frame is equivalent.
- (bool)isEquivalentWithLayoutFrame:(FMIceLinkLayoutFrame *)layoutFrame
Parameters
layoutFrame |
The layout frame. |
---|
Discussion
Determines whether the specified layout frame is equivalent.
Declared In
FMIceLinkLayoutFrame.h
+ layoutFrameWithX:y:width:height:
Initializes a new instance of the FMIceLinkLayoutFrame class.
+ (FMIceLinkLayoutFrame *)layoutFrameWithX:(int)x y:(int)y width:(int)width height:(int)height
Discussion
Initializes a new instance of the FMIceLinkLayoutFrame class.
Declared In
FMIceLinkLayoutFrame.h
– setHeight:
Sets the [height](#//api/name/height) value.
- (void)setHeight:(int)value
Discussion
Sets the [height](#//api/name/height) value.
Declared In
FMIceLinkLayoutFrame.h
– setWidth:
Sets the [width](#//api/name/width) value.
- (void)setWidth:(int)value
Discussion
Sets the [width](#//api/name/width) value.
Declared In
FMIceLinkLayoutFrame.h
– setX:
Sets the X coordinate.
- (void)setX:(int)value
Discussion
Sets the X coordinate.
Declared In
FMIceLinkLayoutFrame.h
– setY:
Sets the Y coordinate.
- (void)setY:(int)value
Discussion
Sets the Y coordinate.
Declared In
FMIceLinkLayoutFrame.h
– toJson
Serializes this instance to JSON.
- (NSString *)toJson
Discussion
Serializes this instance to JSON.
Declared In
FMIceLinkLayoutFrame.h
+ toJsonWithLayoutFrame:
Serializes a layout frame to JSON.
+ (NSString *)toJsonWithLayoutFrame:(FMIceLinkLayoutFrame *)layoutFrame
Parameters
layoutFrame |
The layout frame. |
---|
Discussion
Serializes a layout frame to JSON.
Declared In
FMIceLinkLayoutFrame.h
– width
Gets the width value.
- (int)width
Discussion
Gets the width value.
Declared In
FMIceLinkLayoutFrame.h
– x
Gets the X coordinate.
- (int)x
Discussion
Gets the X coordinate.
Declared In
FMIceLinkLayoutFrame.h
– y
Gets the Y coordinate.
- (int)y
Discussion
Gets the Y coordinate.
Declared In
FMIceLinkLayoutFrame.h