A rectangle (size and origin). More...
Instance Methods | |
(NSString *) | - description |
Returns a string that represents this instance using format "{origin}/{size}". More... | |
(int) | - height |
Gets the size height. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchRectangle class. More... | |
(instancetype) | - initWithOrigin:size: |
Initializes a new instance of the FMLiveSwitchRectangle class. More... | |
(bool) | - isEquivalentWithRectangle: |
Determines whether the specified rectangle is equivalent. More... | |
(FMLiveSwitchPoint *) | - origin |
Gets the origin. More... | |
(void) | - setOrigin: |
Sets the origin. More... | |
(void) | - setSize: |
Sets the size. More... | |
(FMLiveSwitchSize *) | - size |
Gets the size. More... | |
(NSString *) | - toJson |
Serializes this instance to JSON. More... | |
(int) | - width |
Gets the size width. More... | |
(int) | - x |
Gets the origin X coordinate. More... | |
(int) | - y |
Gets the origin Y coordinate. More... | |
Class Methods | |
(FMLiveSwitchRectangle *) | + empty |
Gets the empty rectangle (0,0/0x0). More... | |
(FMLiveSwitchRectangle *) | + fromJsonWithRectangleJson: |
Deserializes an instance from JSON. More... | |
(bool) | + isEquivalentWithRectangle1:rectangle2: |
Determines whether the two rectangles are equivalent. More... | |
(FMLiveSwitchRectangle *) | + rectangle |
Initializes a new instance of the FMLiveSwitchRectangle class. More... | |
(FMLiveSwitchRectangle *) | + rectangleWithOrigin:size: |
Initializes a new instance of the FMLiveSwitchRectangle class. More... | |
(NSString *) | + toJsonWithRectangle: |
Serializes an instance to JSON. More... | |
A rectangle (size and origin).
- (NSString*) description |
Returns a string that represents this instance using format "{origin}/{size}".
+ (FMLiveSwitchRectangle*) empty |
Gets the empty rectangle (0,0/0x0).
+ (FMLiveSwitchRectangle*) fromJsonWithRectangleJson: | (NSString *) | rectangleJson |
Deserializes an instance from JSON.
rectangleJson | The JSON to deserialize. |
- (int) height |
Gets the size height.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchRectangle class.
- (instancetype) initWithOrigin: | (FMLiveSwitchPoint *) | origin | |
size: | (FMLiveSwitchSize *) | size | |
Initializes a new instance of the FMLiveSwitchRectangle class.
origin | The origin. |
size | The size. |
+ (bool) isEquivalentWithRectangle1: | (FMLiveSwitchRectangle *) | rectangle1 | |
rectangle2: | (FMLiveSwitchRectangle *) | rectangle2 | |
Determines whether the two rectangles are equivalent.
rectangle1 | The first rectangle. |
rectangle2 | The second rectangle. |
- (bool) isEquivalentWithRectangle: | (FMLiveSwitchRectangle *) | rectangle |
Determines whether the specified rectangle is equivalent.
rectangle | The rectangle. |
- (FMLiveSwitchPoint*) origin |
Gets the origin.
+ (FMLiveSwitchRectangle*) rectangle |
Initializes a new instance of the FMLiveSwitchRectangle class.
+ (FMLiveSwitchRectangle*) rectangleWithOrigin: | (FMLiveSwitchPoint *) | origin | |
size: | (FMLiveSwitchSize *) | size | |
Initializes a new instance of the FMLiveSwitchRectangle class.
origin | The origin. |
size | The size. |
- (void) setOrigin: | (FMLiveSwitchPoint *) | value |
Sets the origin.
- (void) setSize: | (FMLiveSwitchSize *) | value |
Sets the size.
- (FMLiveSwitchSize*) size |
Gets the size.
- (NSString*) toJson |
Serializes this instance to JSON.
+ (NSString*) toJsonWithRectangle: | (FMLiveSwitchRectangle *) | rectangle |
Serializes an instance to JSON.
rectangle | The rectangle. |
- (int) width |
Gets the size width.
- (int) x |
Gets the origin X coordinate.
- (int) y |
Gets the origin Y coordinate.