表示一個盒子形狀的類。 更多...
#include <_PglBox.h>
實體方法 | |
(instancetype) | - initWithStart:end:lineThickness: |
使用指定的起始點、結束點和線條厚度初始化 _PglBox 類的新實例。 | |
(instancetype) | - initWithXStart:yStart:xEnd:yEnd:lineThickness: |
使用指定的起始坐標、結束坐標和線條厚度初始化 _PglBox 類的新實例。 | |
(NSString *) | - description |
返回描述接收者內容的字符串。 | |
屬性(properties) | |
id< IRuler > | ruler |
用於測量盒子的尺子。 | |
id< IPoint > | start |
盒子的起始點。 | |
id< IPoint > | end |
盒子的結束點。 | |
float | lineThickness |
盒子線條的厚度。 | |
float | cornerRounding |
盒子角落的圓角半徑。 | |
![]() | |
id< IRuler > | ruler |
用於放置的標尺。如果未設置,則使用默認的標尺設置。 | |
id< IPoint > | start |
盒子的左上角。 | |
id< IPoint > | end |
盒子的右下角。 | |
float | lineThickness |
基於使用的標尺單位的線條厚度。 | |
float | cornerRounding |
盒子角的圓角值。 | |
表示一個盒子形狀的類。
該類實現了 IBox 協議,並提供了初始化和描述盒子的功能。
- (NSString *) description |
返回描述接收者內容的字符串。
- (instancetype) initWithXStart: | (float) | xStart | |
yStart: | (float) | yStart | |
xEnd: | (float) | xEnd | |
yEnd: | (float) | yEnd | |
lineThickness: | (float) | lineThickness |
|
readwritenonatomicassign |
盒子角落的圓角半徑。
|
readwritenonatomicstrong |
盒子的結束點。
|
readwritenonatomicassign |
盒子線條的厚度。
|
readwritenonatomicstrong |
用於測量盒子的尺子。
|
readwritenonatomicstrong |
盒子的起始點。