MSFLabelStyleBuilder
Objective-C
@interface MSFLabelStyleBuilder : MSFBillboardStyleBuilder
Swift
class MSFLabelStyleBuilder : MSFBillboardStyleBuilder
A builder class for LabelStyle.
-
Constructs a LabelStyleBuilder object with all parameters set to defaults.
Declaration
Objective-C
- (id)init;Swift
init!() -
Returns the horizontal anchor point of the label.
Declaration
Objective-C
- (float)getAnchorPointX;Swift
func getAnchorPointX() -> FloatReturn Value
The horizontal anchor point of the label.
-
Sets the horizontal anchor point of the label.
Declaration
Objective-C
- (void)setAnchorPointX:(float)anchorPointX;Swift
func setAnchorPointX(_ anchorPointX: Float)Parameters
anchorPointXThe new horizontal anchor point for the label. -1 means the left side, 0 the center and 1 the right side of the label. The default is 0.
-
Returns the vertical anchor point of the label.
Declaration
Objective-C
- (float)getAnchorPointY;Swift
func getAnchorPointY() -> FloatReturn Value
The vertical anchor point of the label.
-
Sets the vertical anchor point of the label.
Declaration
Objective-C
- (void)setAnchorPointY:(float)anchorPointY;Swift
func setAnchorPointY(_ anchorPointY: Float)Parameters
anchorPointYThe vertical anchor point for the label. -1 means the bottom, 0 the center and 1 the top of the label. The default is -1.
-
Sets the anchor point for the label. Values will be clamped to [-1, 1] range.
Declaration
Objective-C
- (void)setAnchorPointX:(float)anchorPointX anchorPointY:(float)anchorPointY;Swift
func setAnchorPointX(_ anchorPointX: Float, anchorPointY: Float)Parameters
anchorPointXThe new horizontal anchor point for the label. -1 means the left side, 0 the center and 1 the right side of the label. The default is 0.
anchorPointYThe vertical anchor point for the label. -1 means the bottom, 0 the center and 1 the top of the label. The default is -1.
-
Returns the state of the flippable flag.
Declaration
Objective-C
- (BOOL)isFlippable;Swift
func isFlippable() -> BoolReturn Value
True if the label is flippable.
-
Sets the state of the flippable flag. If set to true and the orientation mode is set to GROUND the label is allowed to flip 180 degrees to try and face the camera better. This is useful for street names and some other texts. The default is true.
Declaration
Objective-C
- (void)setFlippable:(BOOL)flippable;Swift
func setFlippable(_ flippable: Bool)Parameters
flippableThe new state of the flippable flag.
-
Returns the orientation mode of the label.
Declaration
Objective-C
- (enum MSFBillboardOrientation)getOrientationMode;Swift
func getOrientationMode() -> MSFBillboardOrientationReturn Value
The orientation mode of the label.
-
Sets the orientation mode for the label. The default is BillboardOrientation::FACE_CAMERA_BILLBOARD.
Declaration
Objective-C
- (void)setOrientationMode:(enum MSFBillboardOrientation)orientationMode;Swift
func setOrientationMode(_ orientationMode: MSFBillboardOrientation)Parameters
orientationModeThe new orientation mode for the label.
-
Returns the scaling mode of the label.
Declaration
Objective-C
- (enum MSFBillboardScaling)getScalingMode;Swift
func getScalingMode() -> MSFBillboardScalingReturn Value
The scaling mode of the label.
-
Sets the scaling mode for the label. The default is BillboardScaling::CONST_SCREEN_SIZE.
Declaration
Objective-C
- (void)setScalingMode:(enum MSFBillboardScaling)scalingMode;Swift
func setScalingMode(_ scalingMode: MSFBillboardScaling)Parameters
scalingModeThe new scaling mode for the label.
-
Returns the relative rendering scale for the label.
Declaration
Objective-C
- (float)getRenderScale;Swift
func getRenderScale() -> FloatReturn Value
The relative rendering scale for the label.
-
Sets the relative rendering scale for the label. The default is 1.0. For sharper labels, this should be larger.
Declaration
Objective-C
- (void)setRenderScale:(float)renderScale;Swift
func setRenderScale(_ renderScale: Float)Parameters
renderScaleThe new rendering scale value.
-
Builds a new instance of the LabelStyle object using previously set parameters.
Return Value
A new LabelStyle object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()