Loading...
Searching...
No Matches

Style parameters for a map object title. More...

#include <com/navigine/idl/objc/NCTitleStyle.h>

Inherits NSObject.

Instance Methods

(nonnull instancetype) - initWithFontSize:color:outlineColor:outlineWidth:anchor:visible:
 Default constructor for class NCTitleStyle.
 
(nonnull instancetype) - init
 Default constructor for class NCTitleStyle.
 

Class Methods

(nonnull instancetype) + titleStyleWithFontSize:color:outlineColor:outlineWidth:anchor:visible:
 Factory method for class NCTitleStyle.
 
(nonnull instancetype) + titleStyle
 Factory method for class NCTitleStyle.
 

Properties

float fontSize
 Font size in pixels.
 
UIColor * color
 Title fill color.
 
UIColor * outlineColor
 Title outline (halo) color.
 
float outlineWidth
 Title outline (halo) width in pixels.
 
NCTitleAnchor anchor
 Title anchor relative to the placement point TitleAnchor.
 
BOOL visible
 Whether the title is visible.
 

Detailed Description

Style parameters for a map object title.

Used with MapObject setTitleWithStyle.

Definition at line 20 of file NCTitleStyle.h.

Method Documentation

◆ init

- (nonnull instancetype) init

Default constructor for class NCTitleStyle.

◆ initWithFontSize:color:outlineColor:outlineWidth:anchor:visible:

- (nonnull instancetype) initWithFontSize: (float) fontSize
color: (nonnull UIColor *) color
outlineColor: (nonnull UIColor *) outlineColor
outlineWidth: (float) outlineWidth
anchor: (NCTitleAnchor) anchor
visible: (BOOL) visible 

Default constructor for class NCTitleStyle.

◆ titleStyle

+ (nonnull instancetype) titleStyle

Factory method for class NCTitleStyle.

◆ titleStyleWithFontSize:color:outlineColor:outlineWidth:anchor:visible:

+ (nonnull instancetype) titleStyleWithFontSize: (float) fontSize
color: (nonnull UIColor *) color
outlineColor: (nonnull UIColor *) outlineColor
outlineWidth: (float) outlineWidth
anchor: (NCTitleAnchor) anchor
visible: (BOOL) visible 

Factory method for class NCTitleStyle.

Property Documentation

◆ anchor

- (NCTitleAnchor) anchor
readnonatomicassign

Title anchor relative to the placement point TitleAnchor.

Definition at line 84 of file NCTitleStyle.h.

◆ color

- (UIColor*) color
readnonatomicassign

Title fill color.

Definition at line 69 of file NCTitleStyle.h.

◆ fontSize

- (float) fontSize
readnonatomicassign

Font size in pixels.

Swift code snippet:

let titleStyle = NCTitleStyle()
titleStyle.fontSize = 14
titleStyle.color = "#3366CC"
titleStyle.outlineColor = "#FFFFFF"
titleStyle.anchor = .top
titleStyle.visible = true

Objective C code snippet:

NCTitleStyle *titleStyle = [[NCTitleStyle alloc] init];
titleStyle.fontSize = 14;
titleStyle.color = @"#3366CC";
titleStyle.outlineColor = @"#FFFFFF";
titleStyle.anchor = NCTitleAnchorTop;
titleStyle.visible = YES;

Definition at line 64 of file NCTitleStyle.h.

◆ outlineColor

- (UIColor*) outlineColor
readnonatomicassign

Title outline (halo) color.

Definition at line 74 of file NCTitleStyle.h.

◆ outlineWidth

- (float) outlineWidth
readnonatomicassign

Title outline (halo) width in pixels.

Definition at line 79 of file NCTitleStyle.h.

◆ visible

- (BOOL) visible
readnonatomicassign

Whether the title is visible.

Definition at line 89 of file NCTitleStyle.h.


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