SYMapObjectDynamicLabelStyle Class Reference

Text style for dynamically sized labels. More...

#import <SYMapObjects.h>

Inheritance diagram for SYMapObjectDynamicLabelStyle:
Collaboration diagram for SYMapObjectDynamicLabelStyle:

Instance Methods

(nonnull instancetype) - initWithStyle:minFontSize:maxFontSize:labelExtent:
 
((unavailable("Use initWithStyle:minFontSize:maxFontSize:labelExtent: instead.") - __attribute__
 

Class Methods

((unavailable("Use initWithStyle:minFontSize:maxFontSize:labelExtent: instead.") + __attribute__
 

Properties

SYMapObjectTextStyletextStyle
 Base text style settings. More...
 
NSInteger minFontSize
 Minimal font size to be used, must be positive number. More...
 
NSInteger maxFontSize
 Maximal font size to be used, must be positive number, greater or equal to the minFontSize. More...
 
CGPoint labelExtent
 Relative extent of the label in relation to the size of the object on which the label is placed. Both labelExtent.x and labelExtent.y must be from range <0,1>. Value [1, 1] means that the label will try to fit into the whole parent box. More...
 

Detailed Description

Text style for dynamically sized labels.

Method Documentation

◆ initWithStyle:minFontSize:maxFontSize:labelExtent:

- (nonnull instancetype) initWithStyle: (nonnull SYMapObjectTextStyle *)  textStyle
minFontSize: (NSInteger)  minSize
maxFontSize: (NSInteger)  maxSize
labelExtent: (CGPoint)  extent 

◆ __attribute__ [1/2]

- ((unavailable("Use) initWithStyle:

◆ __attribute__ [2/2]

+ ((unavailable("Use) initWithStyle:

Property Documentation

◆ textStyle

- (SYMapObjectTextStyle*) textStyle
readwritenonatomicstrong

Base text style settings.

◆ minFontSize

- (NSInteger) minFontSize
readwritenonatomicassign

Minimal font size to be used, must be positive number.

◆ maxFontSize

- (NSInteger) maxFontSize
readwritenonatomicassign

Maximal font size to be used, must be positive number, greater or equal to the minFontSize.

◆ labelExtent

- (CGPoint) labelExtent
readwritenonatomicassign

Relative extent of the label in relation to the size of the object on which the label is placed. Both labelExtent.x and labelExtent.y must be from range <0,1>. Value [1, 1] means that the label will try to fit into the whole parent box.


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