Struct
RotulusRun
Description [src]
struct RotulusRun {
const char* text;
int len;
gint16 color;
guint16 attrs;
gint16 background;
guint32 rgb;
guint32 background_rgb;
}
A slice of text with a color and attributes, for the C row API. Runs are borrowed for the duration of the call; the view copies what it needs, so build them on the stack. The first four fields are all most callers set (ROTULUS_RUN).
Structure members
text:const char*The text, borrowed for the call.
len:intIts length in bytes, or -1 when it is NUL-terminated.
color:gint16A palette index, or
ROTULUS_COLOR_DEFAULT.attrs:guint16ROTULUS_ATTR_* bits.
background:gint16A palette index for the background, with
ROTULUS_ATTR_BACKGROUND.rgb:guint32The foreground as 0xRRGGBB, with
ROTULUS_ATTR_RGB.background_rgb:guint32The background as 0xRRGGBB, with
ROTULUS_ATTR_BACKGROUND_RGB.