UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
_PglLine Class Reference

A class representing a line shape. More...

#include <_PglLine.h>

Inheritance diagram for _PglLine:
ALine <ILine>

Instance Methods

(instancetype) - initWithStart:end:lineThickness:
 Initializes a new instance of the _PglLine class with specified start and end points and line thickness.
 
(instancetype) - initWithXStart:yStart:xEnd:yEnd:lineThickness:
 Initializes a new instance of the _PglLine 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

- Properties inherited from ALine
id< IRulerruler
 The ruler used for placement. If not set, the default ruler setting is used.
 
id< IPointstart
 Starting point of the line.
 
id< IPointend
 Ending point of the line.
 
float lineThickness
 Thickness of the line.
 
- Properties inherited from <ILine>
id< IRulerruler
 The ruler used for placement. If not set, the default ruler setting is used.
 
id< IPointstart
 Starting position of line.
 
id< IPointend
 Ending position of line.
 
float lineThickness
 Thickness of line based on the ruler units in use.
 

Detailed Description

A class representing a line shape.

This class inherits from ALine and provides functionality for initializing and describing a line.

Method Documentation

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

This method generates a string representation of the _PglLine instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing.

Returns
A string description of the _PglLine instance.

Reimplemented from ALine.

◆ initWithStart:end:lineThickness:

- (instancetype) initWithStart: (id< IPoint >) start
end: (id< IPoint >) end
lineThickness: (float) lineThickness 

Initializes a new instance of the _PglLine class with specified start and end points and line thickness.

Parameters
startThe starting point of the line.
endThe ending point of the line.
lineThicknessThe thickness of the line.
Returns
A new instance of _PglLine.

Reimplemented from ALine.

◆ 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 _PglLine class with specified start and end coordinates and line thickness.

Parameters
xStartThe x-coordinate of the starting point.
yStartThe y-coordinate of the starting point.
xEndThe x-coordinate of the ending point.
yEndThe y-coordinate of the ending point.
lineThicknessThe thickness of the line.
Returns
A new instance of _PglLine.

The documentation for this class was generated from the following file: