[Previous] [Contents] [Index] [Next]

PtMultiTextAttributes_t

Attributes for multiline text

Synopsis:

typedef struct
{
    char *          font;
    PgColor_t       text_color;
    PgColor_t       background_color;
    int             flags;
    void *          tag;

} PtMultiTextAttributes_t;

Description:

This structure describes a set of attributes for multiline text:

font
The font used to render text. This must be specified as the name of an existing font or as one of the following special values:
Pt_INHERIT_FONT
Use the same font as the previous range.
Pt_DEFAULT_FONT
Use the value of the Pt_ARG_TEXT_FONT resource.

Note: To make text bold/italic, change the font to a bold/italic typeface.

text_color
The color used for the text. This must be set to a valid color (i.e. a variable of type PgColor_t) or one of the following special values:
Pt_INHERIT_COLOR
Use the same color as the previous range.
Pt_DEFAULT_COLOR
Use the value of the Pt_ARG_COLOR resource.
background_color
The color used as a background for the text. This must be set to a valid color (i.e. a variable of type PgColor_t) or one of the following special values:
Pt_INHERIT_COLOR
Use the same color as the previous range.
Pt_DEFAULT_COLOR
Use the value of the Pt_ARG_FILL_COLOR resource.
flags
For internal use.
tag
To be used at the application's discretion.

Classification:

Photon

See also:

PtMultiText, PtMultiTextInfo()


[Previous] [Contents] [Index] [Next]