Archicad 27 C++ API
Loading...
Searching...
No Matches
API_TextLinePars Struct Reference

Represents some text to measure its length. More...

#include <APIdefs_Goodies.h>

Public Attributes

short index
 Line index.
 
bool drvScaleCorr
 If true: scale the text to the model, if false: in mms.
 
bool wantsLongestIndex
 If index is 0 -> true: return longest line's index, false: don't return longest line's index.
 
short wFont
 Font attribute index.
 
short wFace
 Style (face) of text:
 
double wSlant
 Slant angle [radian] (PI/2 is plain text).
 
double wSize
 Character height in mms.
 
char * lineStr
 The text to measure.
 
GS::UniString * lineUniStr
 Unicode text to measure.
 

Detailed Description

Represents some text to measure its length.

Remarks
For further details see the ACAPI_Element_GetTextLineLength goodie function.

Member Data Documentation

◆ index

API_TextLinePars::index

Line index.

Value Meaning
-1 last line length
0 longest line length
> 0 length of the nth line

◆ wFace

API_TextLinePars::wFace

Style (face) of text:

Face Meaning
APIFace_Plain Plain text
APIFace_Bold Bold
APIFace_Italic Italic
APIFace_Underline Underline
APIFace_Outline Outlined (Macintosh only)
APIFace_Shadow Shadow (Macintosh only)