CPDFSquareAreaStyle Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | CPDFSquareAreaStyle.h |
fillColor
Fill color of the square area. Nil means no fill.
@property (nonatomic, strong, nullable) CPDFKitPlatformColor *fillColorDiscussion
Fill color of the square area. Nil means no fill.
Declared In
CPDFSquareAreaStyle.h
fillOpacity
Fill opacity in the range [0.0, 1.0]. Default is 1.0.
@property (nonatomic, assign) CGFloat fillOpacityDiscussion
Fill opacity in the range [0.0, 1.0]. Default is 1.0.
Declared In
CPDFSquareAreaStyle.h
borderColor
Border color of the square area. Nil means no border.
@property (nonatomic, strong, nullable) CPDFKitPlatformColor *borderColorDiscussion
Border color of the square area. Nil means no border.
Declared In
CPDFSquareAreaStyle.h
borderOpacity
Border opacity in the range [0.0, 1.0]. Default is 1.0.
@property (nonatomic, assign) CGFloat borderOpacityDiscussion
Border opacity in the range [0.0, 1.0]. Default is 1.0.
Declared In
CPDFSquareAreaStyle.h
borderWidth
Border line width. Default is 1.0.
@property (nonatomic, assign) CGFloat borderWidthDiscussion
Border line width. Default is 1.0.
Declared In
CPDFSquareAreaStyle.h
borderDashPattern
Border dash pattern. An array of NSNumber representing the lengths of painted and unpainted segments, e.g. @[@5, @2]. Nil or an empty array means a solid line.
@property (nonatomic, copy, nullable) NSArray<NSNumber*> *borderDashPatternDiscussion
Border dash pattern. An array of NSNumber representing the lengths of painted and unpainted segments, e.g. @[@5, @2]. Nil or an empty array means a solid line.
Declared In
CPDFSquareAreaStyle.h
– init
Creates a default style instance with predefined values: - fillColor: nil - fillOpacity: 1.0 - borderColor: nil - borderOpacity: 1.0 - borderWidth: 1.0 - borderDashPattern: nil
- (instancetype _Nonnull)initDiscussion
Creates a default style instance with predefined values: - fillColor: nil - fillOpacity: 1.0 - borderColor: nil - borderOpacity: 1.0 - borderWidth: 1.0 - borderDashPattern: nil
Declared In
CPDFSquareAreaStyle.h
– initWithStyle:
Convenience initializer that copies values from another style.
- (instancetype _Nonnull)initWithStyle:(CPDFSquareAreaStyle *_Nonnull)styleDiscussion
Convenience initializer that copies values from another style.
Declared In
CPDFSquareAreaStyle.h
+ styleWithDictionary:
Creates a style from a dictionary, typically parsed from JSON.
Supported keys:
- “fillColor”: NSString (hex color, e.g. “#80A5D6A7”)
- “fillOpacity”: NSNumber
- “borderColor”: NSString (hex color)
- “borderOpacity”: NSNumber
- “borderWidth”: NSNumber
- “borderDashPattern”: NSArray
+ (instancetype _Nonnull)styleWithDictionary:(NSDictionary *_Nullable)dictionaryDiscussion
Creates a style from a dictionary, typically parsed from JSON.
Supported keys:
- “fillColor”: NSString (hex color, e.g. “#80A5D6A7”)
- “fillOpacity”: NSNumber
- “borderColor”: NSString (hex color)
- “borderOpacity”: NSNumber
- “borderWidth”: NSNumber
- “borderDashPattern”: NSArray
Declared In
CPDFSquareAreaStyle.h