A class representing a line object for TSPL. More...
#include <_Line.h>
Instance Methods | |
(instancetype) | - initWithStart:end:lineThickness: |
Initializes a new instance of the _Line class with specified start and end points and line thickness. | |
(instancetype) | - initWithXStart:yStart:xEnd:yEnd:lineThickness: |
Initializes a new instance of the _Line class with specified start and end coordinates and line thickness. | |
(NSString *) | - description |
Returns a string that can be sent to the printer. | |
Additional Inherited Members | |
![]() | |
id< IRuler > | ruler |
The ruler used for placement. If not set, the default ruler setting is used. | |
id< IPoint > | start |
Starting point of the line. | |
id< IPoint > | end |
Ending point of the line. | |
float | lineThickness |
Thickness of the line. | |
![]() | |
id< IRuler > | ruler |
The ruler used for placement. If not set, the default ruler setting is used. | |
id< IPoint > | start |
Starting position of line. | |
id< IPoint > | end |
Ending position of line. | |
float | lineThickness |
Thickness of line based on the ruler units in use. | |
A class representing a line object for TSPL.
This class inherits from ALine and provides functionality for initializing and describing line objects in TSPL.
- (NSString *) description |
Returns a string that can be sent to the printer.
This method generates a string representation of the _Line 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.
Reimplemented from ALine.
- (instancetype) initWithXStart: | (float) | xStart | |
yStart: | (float) | yStart | |
xEnd: | (float) | xEnd | |
yEnd: | (float) | yEnd | |
lineThickness: | (float) | lineThickness |
Initializes a new instance of the _Line 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 line. |