CPDFSquareAreaStyle Class Reference

Inherits from NSObject
Declared in CPDFSquareAreaStyle.h

Overview

CPDFSquareAreaStyle.h

  fillColor

Fill color of the square area. Nil means no fill.

@property (nonatomic, strong, nullable) CPDFKitPlatformColor *fillColor

Discussion

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 fillOpacity

Discussion

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 *borderColor

Discussion

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 borderOpacity

Discussion

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 borderWidth

Discussion

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*> *borderDashPattern

Discussion

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)init

Discussion

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)style

Discussion

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 Unspecified keys fall back to default values.

+ (instancetype _Nonnull)styleWithDictionary:(NSDictionary *_Nullable)dictionary

Discussion

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 Unspecified keys fall back to default values.

Declared In

CPDFSquareAreaStyle.h