PTPathData

@interface PTPathData : NSObject

Contains the information required to draw the path. Contains an array of PathSegmentType Operators and corresponding path data Points. A point may be on or off (off points are control points). The meaning of a point depends on associated id (or segment type) in the path segment type array.

  • Overwrite the existing operators.

    Declaration

    Objective-C

    - (void)SetOperators:(NSData *)operators;

    Swift

    func setOperators(_ operators: Data!)

    Parameters

    operators

    - The new operators to use.

  • Overwrite the existing data points.

    Declaration

    Objective-C

    - (void)SetPoints:(NSMutableArray *)points;

    Swift

    func setPoints(_ points: NSMutableArray!)

    Parameters

    points

    - The new data points to use.

  • Get the current operators.

    Declaration

    Objective-C

    - (NSData *)GetOperators;

    Swift

    func getOperators() -> Data!

    Return Value

    The existing PathSegmentType operators.

  • Get the current data points.

    Declaration

    Objective-C

    - (NSMutableArray *)GetPoints;

    Swift

    func getPoints() -> NSMutableArray!

    Return Value

    The existing data points.

  • If PathData was acquired from Font::GetGlyphPath then is method will indicate if this is an ‘undefined character code’.

    Note

    See Font::GetGlyphPath for more information regarding what an ‘undefined character code’ means.

    Declaration

    Objective-C

    - (BOOL)IsDefined;

    Swift

    func isDefined() -> Bool

    Return Value

    True if this is valid, otherwise false.

  • Declaration

    Objective-C

    - (int)GetGlyphIndex;

    Swift

    func getGlyphIndex() -> Int32

    Return Value

    The glyph index of the requested path. 0 stands for ‘.notdef’ glyph.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()