Inherits from NSObject
Conforms to NSCoding
Declared in MAWSymbol.h

Overview

A MAWSymbol represents a mathematical symbol that can be used for importing and exporting equations.

See [MAWMathView resultAsSymbolList], [MAWMathView addSymbol:allowUndo:] and [MAWMathView addSymbols:allowUndo:].

Properties

boundingBox

The symbol bounding box.

@property (assign, nonatomic) CGRect boundingBox

Declared In

MAWSymbol.h

label

The symbol (UTF-8 encoded).

@property (strong, nonatomic) NSString *label

Declared In

MAWSymbol.h

transitory

A boolean indicating if the Symbol is transitory. The transitory characters are added by the solver.

@property (assign, nonatomic) BOOL transitory

Discussion

Except in the case of a restoration, the value must always be NO.

Declared In

MAWSymbol.h

Class Methods

symbolWithLabel:boundingBox:transitory:

Create and return a `MAWSymbol initialized with the given label, boundingBox and transitory values.

+ (id)symbolWithLabel:(NSString *)label boundingBox:(CGRect)boundingBox transitory:(BOOL)transitory

Parameters

label

A NSString containing the symbol, encoded using UTF-8.

boundingBox

The frame of the Symbol

transitory

A boolean indicating if the Symbol is transitory.

Return Value

a MAWSymbol initialized with the given label, bounding box and transitory values.

Declared In

MAWSymbol.h

Instance Methods

initWithLabel:boundingBox:transitory:

Return a MAWSymbol initialized with the given label, boundingBox and transitory values.

- (id)initWithLabel:(NSString *)label boundingBox:(CGRect)boundingBox transitory:(BOOL)transitory

Parameters

label

A NSString containing the symbol, encoded using UTF-8.

boundingBox

The frame of the Symbol

transitory

A boolean indicating if the Symbol is transitory.

Return Value

a MAWSymbol initialized with the given label, bounding box and transitory values.

Declared In

MAWSymbol.h