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

表示盒子形狀的類。 更多...

類別LabelMaker.PGL.Shapes.Box的繼承圖:
LabelMaker.Interfaces.IShapes.IBox

公開方法(Public Methods)

 __init__ (self, Optional[IPoint] start=None, Optional[IPoint] end=None, float line_thickness=1.0)
 使用指定的起始點和結束點及線條厚度初始化 Box 類的新實例。
 
 from_coordinates (cls, float x_start, float y_start, float x_end, float y_end, float line_thickness=1.0)
 使用指定的起始和結束坐標及線條厚度初始化 Box 類的新實例。
 
str __str__ (self)
 返回一個可以發送到打印機的字符串。
 

公開屬性

 start
 
 end
 
 line_thickness
 
 corner_rounding
 
 ruler
 

額外的繼承成員

- 靜態公開屬性 繼承自 LabelMaker.Interfaces.IShapes.IBox
Optional ruler [IRuler]
 
IPoint start
 
IPoint end
 
float line_thickness
 
float corner_rounding
 

詳細描述

表示盒子形狀的類。

此類實現了 IBox 協議,並提供了用於初始化、配置和描述用於打印目的的盒子形狀的功能。 可以通過起始點和結束點、線條厚度和角圓度來配置盒子。

建構子與解構子說明文件

◆ __init__()

LabelMaker.PGL.Shapes.Box.__init__ ( self,
Optional[IPoint] start = None,
Optional[IPoint] end = None,
float line_thickness = 1.0 )

使用指定的起始點和結束點及線條厚度初始化 Box 類的新實例。

參數
start盒子的起始點。
end盒子的結束點。
line_thickness盒子線條的厚度。

函式成員說明文件

◆ __str__()

str LabelMaker.PGL.Shapes.Box.__str__ ( self)

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

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

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

◆ from_coordinates()

LabelMaker.PGL.Shapes.Box.from_coordinates ( cls,
float x_start,
float y_start,
float x_end,
float y_end,
float line_thickness = 1.0 )

使用指定的起始和結束坐標及線條厚度初始化 Box 類的新實例。

參數
x_start起始點的 x 坐標。
y_start起始點的 y 坐標。
x_end結束點的 x 坐標。
y_end結束點的 y 坐標。
line_thickness盒子線條的厚度。
傳回值
Box 類的新實例。

資料成員說明文件

◆ corner_rounding

LabelMaker.PGL.Shapes.Box.corner_rounding

◆ end

LabelMaker.PGL.Shapes.Box.end

◆ line_thickness

LabelMaker.PGL.Shapes.Box.line_thickness

◆ ruler

LabelMaker.PGL.Shapes.Box.ruler

◆ start

LabelMaker.PGL.Shapes.Box.start

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