API  1.0.0
CPString(CPStringDrawing) Category Reference

Instance Methods

(CPString- cssString
 
(CGSize) - sizeWithFont:
 
(CGSize) - sizeWithFont:inWidth:
 

Class Methods

(void) + initialize
 
(CPDictionary+ metricsOfFont:
 

Detailed Description

Definition at line 32 of file CPStringDrawing.j.

Method Documentation

◆ cssString()

- (CPString) cssString
implementation

Returns the string

Extends class CPString.

Definition at line 45 of file CPStringDrawing.j.

◆ initialize()

+ (void) initialize
implementation

Extends class CPString.

Definition at line 55 of file CPStringDrawing.j.

◆ metricsOfFont:()

+ (CPDictionary) metricsOfFont: (CPFont aFont
implementation

Returns a dictionary with the items "ascender", "descender", "lineHeight"

Extends class CPString.

Definition at line 37 of file CPStringDrawing.j.

◆ sizeWithFont:()

- (CGSize) sizeWithFont: (CPFont aFont
implementation

Extends class CPString.

Definition at line 50 of file CPStringDrawing.j.

◆ sizeWithFont:inWidth:()

- (CGSize) sizeWithFont: (CPFont aFont
inWidth: (float)  aWidth 
implementation

Extends class CPString.

Definition at line 112 of file CPStringDrawing.j.


The documentation for this category was generated from the following file: