MSFText

Objective-C


@interface MSFText : MSFLabel

Swift

class MSFText : MSFLabel

A text element that can be displayed on the map.

  • Constructs a Text object with the specified style and attaches it to a billboard element.

    Declaration

    Objective-C

    - (id)initWithBaseBillboard:(MSFBillboard *)baseBillboard
                          style:(MSFTextStyle *)style
                           text:(NSString *)text;

    Swift

    init!(baseBillboard: MSFBillboard!, style: MSFTextStyle!, text: String!)

    Parameters

    baseBillboard

    The billboard this text label will be attached to.

    style

    The style that defines what this text label looks like.

    text

    The text to be displayed.

  • Constructs a Text object from a geometry object and a style.

    Declaration

    Objective-C

    - (id)initWithGeometry:(MSFGeometry *)geometry
                     style:(MSFTextStyle *)style
                      text:(NSString *)text;

    Swift

    init!(geometry: MSFGeometry!, style: MSFTextStyle!, text: String!)

    Parameters

    geometry

    The geometry object that defines the location of this text label.

    style

    The style that defines what this text label looks like.

    text

    The text to be displayed.

  • Constructs a Text object from a map position and a style.

    Declaration

    Objective-C

    - (id)initWithPos:(MSFMapPos *)pos
                style:(MSFTextStyle *)style
                 text:(NSString *)text;

    Swift

    init!(pos: MSFMapPos!, style: MSFTextStyle!, text: String!)

    Parameters

    pos

    The map position that defines the location of this text label.

    style

    The style that defines what this text label looks like.

    text

    The text to be displayed.

  • Undocumented

    Declaration

    Objective-C

    - (MSFBitmap *)drawBitmap:(float)dpToPX;

    Swift

    func drawBitmap(_ dpToPX: Float) -> MSFBitmap!
  • Returns the display text.

    Declaration

    Objective-C

    - (NSString *)getText;

    Swift

    func getText() -> String!

    Return Value

    The display text.

  • Sets the display text.

    Declaration

    Objective-C

    - (void)setText:(NSString *)text;

    Swift

    func setText(_ text: String!)

    Parameters

    text

    The text to be displayed.

  • Returns the style of this text label.

    Declaration

    Objective-C

    - (MSFTextStyle *)getStyle;

    Swift

    func getStyle() -> MSFTextStyle!

    Return Value

    The style that defines what this text label looks like.

  • Sets the style for this text label.

    Declaration

    Objective-C

    - (void)setStyle:(MSFTextStyle *)style;

    Swift

    func setStyle(_ style: MSFTextStyle!)

    Parameters

    style

    The new style that defines what this text label looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()