VECTORTEXT

Summary

The VECTORTEXT structure holds information about a vector text object.

Syntax

typedef struct tagVECTORTEXT 
{ 
   VECTOROBJECT Object; 
   VECTORPOINT Point; 
   L_TCHAR  * pszText; 
   L_UINT32 dwFlags; 
   L_DOUBLE CharHeight; 
   L_DOUBLE CharWidth; 
   VECTORPEN Pen; 
   VECTORBRUSH Brush; 
   VECTORFONT Font; 
} VECTORTEXT,  * pVECTORTEXT; 

Members

VECTOROBJECT Object

Abstract object.

VECTORPOINT Point

Insertion point for the text.

L_TCHAR * pszText

Character string that contains the text to insert.

L_UINT32 dwFlags

Flag that indicates how to position the text and how to handle text when hit testing. Possible values are:

Value Meaning
VECTOR_TEXT_LEFT Align text to the left of the insertion point.
VECTOR_TEXT_RIGHT Align text to the right of the insertion point.
VECTOR_TEXT_HCENTER Center text horizontally on the insertion point.
VECTOR_TEXT_TOP Align text to the top of the insertion point.
VECTOR_TEXT_BOTTOM Align text to the bottom of the insertion point.
VECTOR_TEXT_VCENTER Center text vertically on the insertion point.
VECTOR_TEXT_HITTESTRECT Perform hit text on the bounding rectangle, not just the text characters.
VECTOR_TEXT_FORCECURVERENDERING Draw text as set of polypoint instead of drawing it as actual text.
VECTOR_TEXT_BASELINE Draw text with baseline.

L_DOUBLE CharHeight

Height in physical units of a single character. Note if this parameter is 0, the toolkit will use the height of the font used instead.

L_DOUBLE CharWidth

Width in physical units of a single character. Note if this parameter is 0, the toolkit will use a suitable width for the given height.

VECTORPEN Pen

VECTORPEN structure that contains information about the pen to use when drawing the vector text object.

VECTORBRUSH Brush

VECTORBRUSH structure that contains information about the brush to use when drawing the vector text object.

VECTORFONT Font

VECTORFONT structure that contains information about the font to use when drawing the vector text object.

Comments

nSize of the Object member must be the sizeof this structure.

nType of the Object member must be VECTOR_TEXT.

pVECTORTEXT is a pointer to a VECTORTEXT structure.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.