mi32/elemstyl.h File Reference

Definitions for element drawing styles. More...

#include <mi32/color.h>
#include <mi32/mistring.h>
#include <mi32/string.h>
#include <mi32/memalloc.h>
#include <memory.h>
#include <stddef.h>
Include dependency graph for elemstyl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LINESTYLE
 In-memory structure for line feature style. More...
struct  MULTISTYLE
struct  POINTSTYLE
 Element drawing style definitions are for in-memory use only These structures are referenced by DLLs and must not shrink or have field positions or sizes changed. More...
struct  POLYSTYLE
 In-memory structure for polygon feature style. More...
struct  TEXTSTYLE
struct  TEXTSTYLEDIFF

Defines

#define FONTSTYLE_Bold   (0x00000001)
#define FONTSTYLE_Boxed   (0x00000040)
#define FONTSTYLE_DoFontSub   (0x00001000)
#define FONTSTYLE_Enhanced   (0x00000008)
#define FONTSTYLE_HaloSingle   (0x00008000)
#define FONTSTYLE_InvertCRS   (0x00000800)
#define FONTSTYLE_InvertGlyph   (0x00000080)
#define FONTSTYLE_Italic   (0x00000002)
#define FONTSTYLE_Kerning   (0x00000400)
#define FONTSTYLE_LineThrough   (0x00002000)
#define FONTSTYLE_Normal   (0x00000000)
#define FONTSTYLE_Outline   (0x00000010)
#define FONTSTYLE_OverLine   (0x00004000)
#define FONTSTYLE_RoundWidth   (0x00000200)
#define FONTSTYLE_Shadow   (0x00000004)
#define FONTSTYLE_Smooth   (0x00000100)
#define FONTSTYLE_Underline   (0x00000020)
#define STYLE_BuiltIn_Point_BoxFilled   2
#define STYLE_BuiltIn_Point_BoxOpen   1
#define STYLE_BuiltIn_Point_CircleFilled   4
#define STYLE_BuiltIn_Point_CircleOpen   3
#define STYLE_BuiltIn_Point_Crosshair   5
#define STYLE_BuiltIn_Point_CrosshairHalo   6
#define STYLE_BuiltIn_Point_Last   6
#define STYLE_BuiltIn_Point_None   0
#define STYLEFLAG_BlockInsert   (0x08000000)
#define STYLEFLAG_BorderBitmapPatt   (0x00000080)
#define STYLEFLAG_CenterSymbol   (0x02000000)
#define STYLEFLAG_DrawPolyBorder   (0x00000040)
#define STYLEFLAG_Fill   (0x00000001)
#define STYLEFLAG_LineJoinBevel   (0x00000100)
#define STYLEFLAG_LineJoinMask   STYLEFLAGMASK_LineJoin
#define STYLEFLAG_LineJoinMiter   (0x00000200)
#define STYLEFLAG_LineJoinRound   (0x00000300)
#define STYLEFLAG_LinePatternBuiltIn   (0x00000400)
#define STYLEFLAG_PointDrawCircle   (0x01000000)
#define STYLEFLAG_PointNoSymbol   (0x04000000)
#define STYLEFLAG_PointSymbolBuiltIn   (0x00000400)
#define STYLEFLAG_PolyBorderPattBuiltIn   (0x00000800)
#define STYLEFLAG_PolyFillPattBuiltIn   (0x00000400)
#define STYLEFLAG_ScaleIsPatternZoom   (0x20000000)
#define STYLEFLAG_ScaleToMap   (0x00000002)
#define STYLEFLAG_TextAboveBaseline   (0x00020000)
#define STYLEFLAG_TextBelowBaseline   (0x00040000)
#define STYLEFLAG_TextCenterVert   (0x00010000)
#define STYLEFLAG_TextHTML   (0x00002000)
#define STYLEFLAG_TextJustifyBoth   (0x0000C000)
#define STYLEFLAG_TextJustifyCenter   (0x00008000)
#define STYLEFLAG_TextJustifyLeft   (0x00000000)
#define STYLEFLAG_TextJustifyMask   STYLEFLAGMASK_TextJustify
#define STYLEFLAG_TextJustifyRight   (0x00004000)
#define STYLEFLAG_TextMirrorHorz   (0x00080000)
#define STYLEFLAG_TextMirrorVert   (0x00100000)
#define STYLEFLAG_TextOrientOutput   (0x00200000)
#define STYLEFLAG_TextUseStyleHeight   (0x00400000)
#define STYLEFLAG_UseBilinearInterp   (0x40000000)
#define STYLEFLAG_UseBitmapPatt   (0x00000010)
#define STYLEFLAG_UseHatchPatt   (0x00000020)
#define STYLEFLAG_UseLayoutScale   (0x00800000)
#define STYLEFLAG_UseLinePatt   (0x00000008)
#define STYLEFLAG_UseSymbol   (0x00000004)
#define STYLEFLAG_WordWrap   (0x10000000)
#define STYLEFLAGMASK_Line   (STYLEFLAG_UseLinePatt | STYLEFLAG_UseBitmapPatt)
#define STYLEFLAGMASK_LineJoin   (0x00000300)
#define STYLEFLAGMASK_Patt   (STYLEFLAG_UseSymbol | STYLEFLAG_UseLinePatt | STYLEFLAG_UseBitmapPatt | STYLEFLAG_UseHatchPatt | STYLEFLAG_BorderBitmapPatt)
#define STYLEFLAGMASK_PattPlus   (STYLEFLAGMASK_Patt | STYLEFLAG_Fill | STYLEFLAG_PointDrawCircle | STYLEFLAG_DrawPolyBorder | STYLEFLAG_PointSymbolBuiltIn | STYLEFLAG_PolyBorderPattBuiltIn)
#define STYLEFLAGMASK_Point   (STYLEFLAG_UseSymbol | STYLEFLAG_UseBitmapPatt | STYLEFLAG_Fill | STYLEFLAG_PointDrawCircle | STYLEFLAG_PointNoSymbol | STYLEFLAG_PointSymbolBuiltIn)
#define STYLEFLAGMASK_Poly   (STYLEFLAGMASK_PolyFill | STYLEFLAGMASK_PolyBord)
#define STYLEFLAGMASK_PolyBord   (STYLEFLAG_UseLinePatt | STYLEFLAG_BorderBitmapPatt | STYLEFLAG_DrawPolyBorder)
#define STYLEFLAGMASK_PolyFill   (STYLEFLAG_UseBitmapPatt | STYLEFLAG_UseHatchPatt | STYLEFLAG_Fill)
#define STYLEFLAGMASK_Scale   (STYLEFLAG_ScaleToMap | STYLEFLAG_UseLayoutScale)
#define STYLEFLAGMASK_TextJustify   (STYLEFLAG_TextJustifyRight|STYLEFLAG_TextJustifyCenter)
#define STYLEFLAGMASK_TextVertAlign   (STYLEFLAG_TextAboveBaseline | STYLEFLAG_TextCenterVert | STYLEFLAG_TextBelowBaseline)
#define TEXTSTYLEPREDEF_NauticalDepth   1
#define TEXTSTYLEPREDEF_None   0

Functions

int MxGetSymbolMinMax (const UINT8 *symbolbuf, LRECTXY *minmax)
int MxGetSymbolSize (const UINT8 *symbolbuf)
int MxParseSymbol (const char *const istring, UINT8 **bufp)
char * MxSymbolToText (const UINT8 *buf)
 PREVENT_MEMFUNC (TEXTSTYLE)

Detailed Description

Definitions for element drawing styles.


Define Documentation

#define FONTSTYLE_Bold   (0x00000001)
#define FONTSTYLE_Boxed   (0x00000040)
#define FONTSTYLE_DoFontSub   (0x00001000)

Try to find real TrueType font for bold and italic.

#define FONTSTYLE_Enhanced   (0x00000008)
#define FONTSTYLE_HaloSingle   (0x00008000)

Use internally for single-pixel halo, should not be set directly.

#define FONTSTYLE_InvertCRS   (0x00000800)

Invert Coordinate Reference System for multi-line labels.

#define FONTSTYLE_InvertGlyph   (0x00000080)

Invert glyphs.

#define FONTSTYLE_Italic   (0x00000002)
#define FONTSTYLE_Kerning   (0x00000400)

Do kerning if the font supports it.

#define FONTSTYLE_LineThrough   (0x00002000)

Draw a line through the text.

#define FONTSTYLE_Normal   (0x00000000)
#define FONTSTYLE_Outline   (0x00000010)
#define FONTSTYLE_OverLine   (0x00004000)

Draw a line over the text.

#define FONTSTYLE_RoundWidth   (0x00000200)

Round all glyph width up to integer pixels (HTML Widget needs. Screws up scale if zoomed out).

#define FONTSTYLE_Shadow   (0x00000004)
#define FONTSTYLE_Smooth   (0x00000100)

Text Smoothing (FreeType only).

#define FONTSTYLE_Underline   (0x00000020)
#define STYLE_BuiltIn_Point_BoxFilled   2
#define STYLE_BuiltIn_Point_BoxOpen   1
#define STYLE_BuiltIn_Point_CircleFilled   4
#define STYLE_BuiltIn_Point_CircleOpen   3
#define STYLE_BuiltIn_Point_Crosshair   5

Simple thin-line crosshair.

#define STYLE_BuiltIn_Point_CrosshairHalo   6

Crosshair with background halo.

#define STYLE_BuiltIn_Point_Last   6
#define STYLE_BuiltIn_Point_None   0
#define STYLEFLAG_BlockInsert   (0x08000000)

Style block insert using insert style.

#define STYLEFLAG_BorderBitmapPatt   (0x00000080)

Use bitmap pattern for polygon border.

#define STYLEFLAG_CenterSymbol   (0x02000000)

Center point symbol, ignoring its hot-spot.

#define STYLEFLAG_DrawPolyBorder   (0x00000040)

Draw polygon borders.

#define STYLEFLAG_Fill   (0x00000001)
#define STYLEFLAG_LineJoinBevel   (0x00000100)

Join lines beveled.

#define STYLEFLAG_LineJoinMask   STYLEFLAGMASK_LineJoin
#define STYLEFLAG_LineJoinMiter   (0x00000200)

Join lines mitered.

#define STYLEFLAG_LineJoinRound   (0x00000300)

Join lines rounded.

#define STYLEFLAG_LinePatternBuiltIn   (0x00000400)

Use built-in line pattern.

#define STYLEFLAG_PointDrawCircle   (0x01000000)

Draw points as circles if no pattern is used.

#define STYLEFLAG_PointNoSymbol   (0x04000000)

Point has no symbol (probably just a label).

#define STYLEFLAG_PointSymbolBuiltIn   (0x00000400)

Use built-in point symbol.

#define STYLEFLAG_PolyBorderPattBuiltIn   (0x00000800)

Use built-in polygon border pattern.

#define STYLEFLAG_PolyFillPattBuiltIn   (0x00000400)

Use built-in polygon fill pattern.

#define STYLEFLAG_ScaleIsPatternZoom   (0x20000000)

Scale values are pattern zoom factor.

#define STYLEFLAG_ScaleToMap   (0x00000002)

Sizes given are relativve to MapScale.

#define STYLEFLAG_TextAboveBaseline   (0x00020000)

Text drawn completely "above" baseline.

#define STYLEFLAG_TextBelowBaseline   (0x00040000)

Text drawn completely "below" baseline.

#define STYLEFLAG_TextCenterVert   (0x00010000)

Center text "vertically" along baseline.

#define STYLEFLAG_TextHTML   (0x00002000)

Text is in HTML format.

#define STYLEFLAG_TextJustifyBoth   (0x0000C000)

Justify both left and right sides of block.

#define STYLEFLAG_TextJustifyCenter   (0x00008000)

Center lines within block.

#define STYLEFLAG_TextJustifyLeft   (0x00000000)

Justify left side of block.

#define STYLEFLAG_TextJustifyMask   STYLEFLAGMASK_TextJustify

Old names.

#define STYLEFLAG_TextJustifyRight   (0x00004000)

Justify right side of block.

#define STYLEFLAG_TextMirrorHorz   (0x00080000)

Mirror text in "horizontal" plane.

#define STYLEFLAG_TextMirrorVert   (0x00100000)

Mirror text in "vertical" plane.

#define STYLEFLAG_TextOrientOutput   (0x00200000)

Orient block relative to output rather than baseline.

#define STYLEFLAG_TextUseStyleHeight   (0x00400000)

Use height stored with style, otherwise use height stored with text.

#define STYLEFLAG_UseBilinearInterp   (0x40000000)

Use bilinear interpolation when resizing bitmap pattern for point symbols.

#define STYLEFLAG_UseBitmapPatt   (0x00000010)

Use bitmap FILL pattern (use BorderBitmapPatt for lines).

#define STYLEFLAG_UseHatchPatt   (0x00000020)

Use "hatch" fill pattern.

#define STYLEFLAG_UseLayoutScale   (0x00800000)

Sizes relative to scale int LAYOUTPARMS.

#define STYLEFLAG_UseLinePatt   (0x00000008)
#define STYLEFLAG_UseSymbol   (0x00000004)
#define STYLEFLAG_WordWrap   (0x10000000)

Word-wrap text to style's block width.

#define STYLEFLAGMASK_Line   (STYLEFLAG_UseLinePatt | STYLEFLAG_UseBitmapPatt)
#define STYLEFLAGMASK_LineJoin   (0x00000300)
#define STYLEFLAGMASK_Patt   (STYLEFLAG_UseSymbol | STYLEFLAG_UseLinePatt | STYLEFLAG_UseBitmapPatt | STYLEFLAG_UseHatchPatt | STYLEFLAG_BorderBitmapPatt)
#define STYLEFLAGMASK_PattPlus   (STYLEFLAGMASK_Patt | STYLEFLAG_Fill | STYLEFLAG_PointDrawCircle | STYLEFLAG_DrawPolyBorder | STYLEFLAG_PointSymbolBuiltIn | STYLEFLAG_PolyBorderPattBuiltIn)
#define STYLEFLAGMASK_Point   (STYLEFLAG_UseSymbol | STYLEFLAG_UseBitmapPatt | STYLEFLAG_Fill | STYLEFLAG_PointDrawCircle | STYLEFLAG_PointNoSymbol | STYLEFLAG_PointSymbolBuiltIn)
#define STYLEFLAGMASK_Poly   (STYLEFLAGMASK_PolyFill | STYLEFLAGMASK_PolyBord)
#define STYLEFLAGMASK_PolyBord   (STYLEFLAG_UseLinePatt | STYLEFLAG_BorderBitmapPatt | STYLEFLAG_DrawPolyBorder)
#define STYLEFLAGMASK_PolyFill   (STYLEFLAG_UseBitmapPatt | STYLEFLAG_UseHatchPatt | STYLEFLAG_Fill)
#define STYLEFLAGMASK_Scale   (STYLEFLAG_ScaleToMap | STYLEFLAG_UseLayoutScale)
#define STYLEFLAGMASK_TextJustify   (STYLEFLAG_TextJustifyRight|STYLEFLAG_TextJustifyCenter)
#define STYLEFLAGMASK_TextVertAlign   (STYLEFLAG_TextAboveBaseline | STYLEFLAG_TextCenterVert | STYLEFLAG_TextBelowBaseline)
#define TEXTSTYLEPREDEF_NauticalDepth   1
#define TEXTSTYLEPREDEF_None   0

Values for TEXTSTYLE.Predefined.


Function Documentation

PREVENT_MEMFUNC ( TEXTSTYLE   ) 

Generated on Sun Oct 7 21:26:07 2012 for TNTsdk 2012 by  doxygen 1.6.1