|
CartoType API
|
#include <cartotype_style_sheet.h>
Public Types | |
| enum | { EAbbreviate = 1, ECondense = 2, EWrap = 4 } |
Public Attributes | |
| bool | iEnabled |
| const TLabelStyle * | iExtraLabelStyle |
| TFontSpec | iFontSpec |
| TColor | iColor |
| TFixed | iGlowWidth |
| TColor | iGlowColor |
| TPointFixed | iGlowOffset |
| TPaint | iBackgroundColor |
| TLabelPosition | iPosition |
| TTextBaseline | iBaseline |
| TFixed | iBaselineOffset |
| TPaint | iBoxFill |
| TPaint | iBoxStroke |
| TFixed | iBoxPadding |
| TFixed | iBoxOutline |
| TLetterCase | iCase |
| int32 | iMinPolygonSize |
| TFixed | iMaxPolygonLabelLength |
| TFixed | iMaxPolygonLabelExtra |
| uint32 | iShorten |
| TFixed | iLetterSpacing |
| TFixed | iWordSpacing |
| TFixed | iMaxCopyFitExpansion |
| bool | iShape |
| TBidiParDir | iParDir |
| const MString * | iLabelFormat |
| int32 | iDuplicateDistance |
| TFixed | iWrapWidth |
| int32 | iWrapLines |
| TAlign | iAlign |
| int32 | iLeading |
| bool | iAllowOtherLabels |
| bool | iDrawInPolygonOnlyOnce |
The style used to draw a label.
| anonymous enum |
Flags used in iShorten.
The alignment used for multi-line labels.
True if labels for other objects are allowed to overlap this label's object.
The background color for the label; a background is drawn if this is not null.
The baseline.
The baseline offset.
If the label is boxed, the fill color of the box.
If the label is boxed, the width of the outline.
If the label is boxed, the padding between the text and the outline.
If the label is boxed, the color of the outline of the box.
The case (upper, lower or title) in which the label is drawn. If the special value ENoLetterCase is used, the case is left as it is in the database.
The label color.
True if the label is to be drawn only if the center of the object is on the display. This applies only to polygon objects. It is used to ensure that a label appears on one tile only when bitmap tiles are generated.
If greater than 0, the minimum distance in pixels a label must be from a duplicate label.
If true, this label is drawn. If false, it is not drawn (but iExtraLabelStyle, if non-null, can still be enabled, in which case the extra label is drawn). This data member exists so that label styles inherited from other labels can turn label drawing off.
If non-null, a pointer to another label style. It is used to draw a second label in addition to the main label. For the moment, only a maximum of two labels are drawn, so if the other label style has a non-null iExtraLabelStyle it is ignored.
The font specification used for the label.
If iGlowWidth is greater than 0, the color used to create a glowing effect around the label.
The offset applied to the glow, which can be used to produce a shadow effect.
If greater than 0, the width in pixels of the glowing effect around the label.
The label attribute path. If non-null it overrides CMap::CStyle::iLabelFormat.
The leading (extra space between lines) in pixels. If it is not set a default value of 1/12 em, with a minimum of one pixel, is used. A value of INT32_MIN means that the value is unset.
Extra letter spacing (tracking).
Maximum copy-fit expansion factor. If this is greater than 0, letter spacing and word spacing are used to stretch a label to fit a path.
The maximum amount by which a polygon label can project outside a polygon, or outside the polygon's maximum dimension in the case of the default label position, as a multiple of the label's length. For example, if iMaxPolygonLabelExtra is 1/2, a polygon label may project outside the polygon by up to half its length, ensuring that the label's center is in the polygon.
The maximum length of a label drawn in or over a polygon as a multiple of the length of the chosen line segment that intersects the polygon. For example, if iMaxPolygonLabelLength is 2, a polygon label is drawn only if it is equal to or less than twice the length of the line segment.
The minimum polygon size (maximum of width and height) in pixels for which the label is drawn in or over a polygon.
The paragraph direction used during bidirectional reordering.
The label's preferred position.
If iShape is true, bidirectional reordering and contextual shaping are done.
Flags determining the way the label is made shorter if it doesn't fit or overlaps other labels.
Extra word spacing.
If greater than 0, labels are wrapped on to no more than this many lines. The default value is two, because for normal purposes, and along curved paths, wrapping on to more than two lines gives an unattractive appearance.
If greater than 0, labels longer than this are wrapped at this width if possible. if iWrapLines is greater than 1, a wrap width of zero causes the label to be split on to two lines if necessary to fit the space available.
1.7.5.1