A size (width and height). More...
Instance Methods | |
(NSString *) | - description |
Returns a string that represents this instance using format "{width}x{height}". More... | |
(int) | - height |
Gets the height. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchSize class. More... | |
(instancetype) | - initWithWidth:height: |
Initializes a new instance of the FMLiveSwitchSize class. More... | |
(bool) | - isEquivalentWithSize: |
Determines whether the specified size is equivalent. More... | |
(void) | - setHeight: |
Sets the height. More... | |
(void) | - setWidth: |
Sets the width. More... | |
(NSString *) | - toJson |
Serializes this instance to JSON. More... | |
(int) | - width |
Gets the width. More... | |
Class Methods | |
(FMLiveSwitchSize *) | + empty |
Gets the empty size (0x0). More... | |
(FMLiveSwitchSize *) | + fromJsonWithSizeJson: |
Deserializes an instance from JSON. More... | |
(bool) | + isEquivalentWithSize1:size2: |
Determines whether the two sizes are equivalent. More... | |
(FMLiveSwitchSize *) | + size |
Initializes a new instance of the FMLiveSwitchSize class. More... | |
(FMLiveSwitchSize *) | + sizeWithWidth:height: |
Initializes a new instance of the FMLiveSwitchSize class. More... | |
(NSString *) | + toJsonWithSize: |
Serializes an instance to JSON. More... | |
A size (width and height).
- (NSString*) description |
Returns a string that represents this instance using format "{width}x{height}".
+ (FMLiveSwitchSize*) empty |
Gets the empty size (0x0).
+ (FMLiveSwitchSize*) fromJsonWithSizeJson: | (NSString *) | sizeJson |
Deserializes an instance from JSON.
sizeJson | The JSON to deserialize. |
- (int) height |
Gets the height.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchSize class.
- (instancetype) initWithWidth: | (int) | width | |
height: | (int) | height | |
Initializes a new instance of the FMLiveSwitchSize class.
width | The width. |
height | The height. |
+ (bool) isEquivalentWithSize1: | (FMLiveSwitchSize *) | size1 | |
size2: | (FMLiveSwitchSize *) | size2 | |
Determines whether the two sizes are equivalent.
size1 | The first size. |
size2 | The second size. |
- (bool) isEquivalentWithSize: | (FMLiveSwitchSize *) | size |
Determines whether the specified size is equivalent.
size | The size. |
- (void) setHeight: | (int) | value |
Sets the height.
- (void) setWidth: | (int) | value |
Sets the width.
+ (FMLiveSwitchSize*) size |
Initializes a new instance of the FMLiveSwitchSize class.
+ (FMLiveSwitchSize*) sizeWithWidth: | (int) | width | |
height: | (int) | height | |
Initializes a new instance of the FMLiveSwitchSize class.
width | The width. |
height | The height. |
- (NSString*) toJson |
Serializes this instance to JSON.
+ (NSString*) toJsonWithSize: | (FMLiveSwitchSize *) | size |
Serializes an instance to JSON.
size | The size. |
- (int) width |
Gets the width.