SilverScreen Solid Modeler

TEXT_NODE        

TEXT_NODE        

Previous topic Next topic  

TEXT_NODE        

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

TEXT_NODE

 

Structure

An entity-level data type that is used to store the information associated with a SilverScreen text line.

 

   

 struct TEXT_NODE : BOS_NODE

    {

    MATRIX     matrix;

    SS_XYZ     where;

    SS_XYZ     xyz2;

    double     height;

    double     width_ratio;

    double     spacing_ratio;

    double     slant;

    double     angle;

    double     total_width;

    double     total_height;

    char       *text;

    FONT_NODE  *font_ptr;

    int        underscore;

    int        overscore;

    int        direction;

    int        justification;

    RGB        text_rgb;

    USINT      text_width_style;

    BOOLEAN    is_filled;

    };

 

 

 

Members

Member

Description

matrix

The transformation matrix that is applied to the font geometry to render the text line.

where

Start point for display of the text

xyz2

A value whose meaning depends upon the setting of justification

 

If justification is

Meaning of xyz2

IS_RIGHT

It is the right point of the text

IS_CENTER

It is the center point of the text

IS_ALIGNED

It is the right point of the text

 

height

Height of the text

width_ratio

Height-to-width ratio of the text

spacing_ratio

Spacing ratio of the text

slant

Angle of slant (in degrees) of the text

angle

Angle of rotation (in degrees) of the text

total_width

Total width of the text

total_height

Total height of the text

text

Pointer to the null-terminated character array that holds the text being displayed.

font_ptr

pointer to the FONT_NODE that describes the font being used to display the text.

underscore

A value whose meaning is

 

Value

Meaning

0

The text is not underscored

1

The text is underscored by a single line

2

The text is underscored by a double line

 

overscore

If overscore is 0, the text is not overscored. If overscore is 1 it is.

direction

A value that indicates the text direction as follows

 

Constant

Meaning

IS_HORIZONTAL

The text is horizontal

IS_VERTICAL

The text is vertical

IS_DIAGONAL

The text is diagonal

IS_ALIGNED

The text is aligned to an axis

 

justification

A value that indicates the text justification as follows

 

Constant

Meaning

IS_LEFT

The text is left-justified

IS_CENTER

The text is centered

IS_RIGHT

The text is right-justified

IS_ALIGNED

The text is aligned to an axis

 

text_rgb

The color that is used to render the text

text_width_style

The width and style index that is used to render the text.

is_filled

A value that is TRUE if the text is filled, and FALSE if it is not.

 

 

See Also

get_bos, LINE_STYLE, LINE_WIDTH

 

Header

silver.h, ssnodes.h