A class representing a box shape. More...
#include <_PglBox.h>
Instance Methods | |
(instancetype) | - initWithStart:end:lineThickness: |
Initializes a new instance of the _PglBox class with specified start and end points and line thickness. | |
(instancetype) | - initWithXStart:yStart:xEnd:yEnd:lineThickness: |
Initializes a new instance of the _PglBox class with specified start and end coordinates and line thickness. | |
(NSString *) | - description |
Returns a string that describes the contents of the receiver. | |
Properties | |
id< IRuler > | ruler |
The ruler used to measure the box. | |
id< IPoint > | start |
The starting point of the box. | |
id< IPoint > | end |
The ending point of the box. | |
float | lineThickness |
The thickness of the box's lines. | |
float | cornerRounding |
The corner rounding radius of the box. | |
![]() | |
id< IRuler > | ruler |
The ruler used for placement. If not set, the default ruler setting is used. | |
id< IPoint > | start |
Upper left corner of the box. | |
id< IPoint > | end |
Bottom right corner of the box. | |
float | lineThickness |
Thickness of the line based on the ruler units in use. | |
float | cornerRounding |
Rounding value of the box corner. | |
A class representing a box shape.
This class implements the IBox protocol and provides functionality for initializing and describing a box.
- (NSString *) description |
Returns a string that describes the contents of the receiver.
- (instancetype) initWithXStart: | (float) | xStart | |
yStart: | (float) | yStart | |
xEnd: | (float) | xEnd | |
yEnd: | (float) | yEnd | |
lineThickness: | (float) | lineThickness |
Initializes a new instance of the _PglBox class with specified start and end coordinates and line thickness.
xStart | The x-coordinate of the starting point. |
yStart | The y-coordinate of the starting point. |
xEnd | The x-coordinate of the ending point. |
yEnd | The y-coordinate of the ending point. |
lineThickness | The thickness of the box's lines. |
|
readwritenonatomicassign |
The corner rounding radius of the box.
|
readwritenonatomicstrong |
The ending point of the box.
|
readwritenonatomicassign |
The thickness of the box's lines.
|
readwritenonatomicstrong |
The ruler used to measure the box.
|
readwritenonatomicstrong |
The starting point of the box.