UniPRT SDK v1.0.0.0
 
載入中...
搜尋中...
無符合項目
_Box 類別 參考文件

表示 TSPL 中的方形對象的類。 更多...

#include <_Box.h>

類別_Box的繼承圖:
<IBox>

實體方法

(instancetype) - initWithStart:end:lineThickness:
 使用指定的起點和終點以及線的粗細初始化 _Box 類的新實例。
 
(instancetype) - initWithXStart:yStart:xEnd:yEnd:lineThickness:
 使用指定的起點和終點坐標以及線的粗細初始化 _Box 類的新實例。
 
(NSString *) - description
 返回可以發送到打印機的字符串。
 

屬性(properties)

id< IRulerruler
 用於測量方形對象的標尺。
 
id< IPointstart
 方形對象的起始點。
 
id< IPointend
 方形對象的終點。
 
float lineThickness
 方形對象線條的粗細。
 
float cornerRounding
 方形對象的圓角半徑。
 
- 屬性(properties) 繼承自 <IBox>
id< IRulerruler
 用於放置的標尺。如果未設置,則使用默認的標尺設置。
 
id< IPointstart
 盒子的左上角。
 
id< IPointend
 盒子的右下角。
 
float lineThickness
 基於使用的標尺單位的線條厚度。
 
float cornerRounding
 盒子角的圓角值。
 

詳細描述

表示 TSPL 中的方形對象的類。

該類實現了 IBox 協議,提供了在 TSPL 中初始化和描述方形對象的功能。

方法文件

◆ description

- (NSString *) description

返回可以發送到打印機的字符串。

該方法生成 _Box 實例的字符串表示形式, 格式化並準備好發送到打印機。字符串包括在 TSPL 中打印所需的所有命令和數據。

傳回值
_Box 實例的字符串描述。

◆ initWithStart:end:lineThickness:

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

使用指定的起點和終點以及線的粗細初始化 _Box 類的新實例。

參數
start方形對象的起點。
end方形對象的終點。
lineThickness方形對象線條的粗細。
傳回值
_Box 的新實例。

◆ initWithXStart:yStart:xEnd:yEnd:lineThickness:

- (instancetype) initWithXStart: (float) xStart
yStart: (float) yStart
xEnd: (float) xEnd
yEnd: (float) yEnd
lineThickness: (float) lineThickness 

使用指定的起點和終點坐標以及線的粗細初始化 _Box 類的新實例。

參數
xStart起點的 x 坐標。
yStart起點的 y 坐標。
xEnd終點的 x 坐標。
yEnd終點的 y 坐標。
lineThickness方形對象線條的粗細。
傳回值
_Box 的新實例。

屬性(property)說明文件

◆ cornerRounding

- (float) cornerRounding
readwritenonatomicassign

方形對象的圓角半徑。

◆ end

- (id<IPoint>) end
readwritenonatomicstrong

方形對象的終點。

◆ lineThickness

- (float) lineThickness
readwritenonatomicassign

方形對象線條的粗細。

◆ ruler

- (id<IRuler>) ruler
readwritenonatomicstrong

用於測量方形對象的標尺。

◆ start

- (id<IPoint>) start
readwritenonatomicstrong

方形對象的起始點。


此類別(class) 文件是由下列檔案中產生: