Information about a line of text in a PtMultiText
typedef struct Pt_emt_text_line
{
unsigned int first_char;
unsigned int byte_offset;
ushort_t num_chars;
PhRect_t extent;
PtMultiTextSegment_t *segment;
struct Pt_emt_text_line *prev;
struct Pt_emt_text_line *next;
} PtMultiTextLine_t;
The PtMultiTextLine_t structure describes a line of
text as displayed in a PtMultiText widget.
The members include:
- first_char
- The index into the entire string of the first character on the line.
- byte_offset
- The offset into the entire string of the first character on the line,
in bytes.
- num_chars
- The number of characters on the line.
- extent
- The
PhRect_t that
specifies the extent of the line.
- segment
- A pointer to the
PtMultiTextSegment_t
structure that describes the segment in effect at the start of the line.
- prev
- A pointer to the PtMultiTextLine_t structure for the
previous line.
- next
- A pointer to the PtMultiTextLine_t structure for the
next line.
Photon
PtMultiText,
PtMultiTextInfo(),
PtMultiTextSegment_t