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

PtMultiSegment_t

Information about a segment of text in a PtMultiText

Synopsis:

typedef struct Pt_emt_text_segment
{
    PtMultiTextAttributes_t attrs;
    int             first_char;
    int             num_chars;
    struct Pt_emt_text_segment *prev;
    struct Pt_emt_text_segment *next;
} PtMultiTextSegment_t;

Description:

This structure that describes a segment of text in a PtMultiText widget. A segment is a block of text for which some attributes (such as color and font) are set. Its members are:

attrs
The PtMultiTextAttributes_t. structure that describes the attributes in effect for this segment of text.
first_char
The multibyte (UTF-8) offset to the first character in the segment. This isn't the byte offset to the first character in the segment.
num_chars
The number of multibyte (UTF-8) characters in the segment.
prev, next
Pointers to the previous and next segments in the PtMultiText widget.

Classification:

Photon

See also:

PtMultiText, PtMultiTextAttributes_t


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