A class representing a box shape for TSPL.
More...
#include <_Box.h>
|
| 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 for TSPL.
This class implements the IBox protocol and provides functionality for initializing and describing a box in TSPL.
◆ description
| - (NSString *) description |
|
|
|
Returns a string that can be sent to the printer.
This method generates a string representation of the _Box instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing in TSPL.
- Returns
- A string description of the _Box instance.
◆ initWithStart:end:lineThickness:
| - (instancetype) initWithStart: |
|
(id< IPoint >) | start |
| end: |
|
(id< IPoint >) | end |
| lineThickness: |
|
(float) | lineThickness |
Initializes a new instance of the _Box class with specified start and end points and line thickness.
- Parameters
-
| start | The starting point of the box. |
| end | The ending point of the box. |
| lineThickness | The thickness of the box's lines. |
- Returns
- A new instance of _Box.
◆ initWithXStart:yStart:xEnd:yEnd:lineThickness:
| - (instancetype) initWithXStart: |
|
(float) | xStart |
| yStart: |
|
(float) | yStart |
| xEnd: |
|
(float) | xEnd |
| yEnd: |
|
(float) | yEnd |
| lineThickness: |
|
(float) | lineThickness |
Initializes a new instance of the _Box class with specified start and end coordinates and line thickness.
- Parameters
-
| 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. |
- Returns
- A new instance of _Box.
◆ cornerRounding
The corner rounding radius of the box.
◆ end
The ending point of the box.
◆ lineThickness
The thickness of the box's lines.
◆ ruler
The ruler used to measure the box.
◆ start
The starting point of the box.
The documentation for this class was generated from the following file:
- /Users/realbuber/Documents/Project/sdk_json_Objective-C_IOS/sdk_json_Objective-C_IOS/LabelMaker/TSPL/Shapes/_Box.h