RBThemeGlyphReference Class Reference

Inherits from NSObject
Declared in RBThemeGlyphReference.h

Overview

Serializes and deserializes glyph reference strings.

  imageName

The name of the glyph image.

@property (nonatomic, nullable) NSString *imageName

Declared In

RBThemeGlyphReference.h

  colorReferenceName

The reference name of the color to use for the glyph.

@property (nonatomic, nullable) NSString *colorReferenceName

Declared In

RBThemeGlyphReference.h

  colorHexCode

The hexadecimal RGB/RGBA color code to use for the glyph.

@property (nonatomic, nullable) NSString *colorHexCode

Declared In

RBThemeGlyphReference.h

  desiredHeight

The desired height of the glyph in pt, or nil to preserve the original size.

@property (nonatomic, nullable) NSNumber *desiredHeight

Declared In

RBThemeGlyphReference.h

– parseReferenceString:error:

Parses the given glyph reference string, extracting the components found into the properties of the receiver.

- (void)parseReferenceString:(nonnull NSString *)referenceString error:(NSError *_Nullable *_Nullable)error

Parameters

referenceString

The glyph reference string to parse.

error

A pointer to an NSError* object that is assigned in the event of an error.

Declared In

RBThemeGlyphReference.h

  referenceString

The glyph reference string that describes the contents of this object.

@property (nonatomic, readonly, nonnull) NSString *referenceString

Declared In

RBThemeGlyphReference.h

  colorIsReference

Whether or not the color is a reference name.

@property (nonatomic, readonly) BOOL colorIsReference

Declared In

RBThemeGlyphReference.h

  isValid

Whether or not this glyph reference is valid.

@property (nonatomic, readonly) BOOL isValid

Declared In

RBThemeGlyphReference.h

+ valueIsReferenceString:

Determines whether or not the given value is a valid glyph reference string. Also checks the object type of value and ignores non-strings.

+ (BOOL)valueIsReferenceString:(nonnull id)value

Parameters

value

The value to check.

Return Value

Whether or not the value is a valid glyph reference string.

Declared In

RBThemeGlyphReference.h