docs
Loading...
Searching...
No Matches
CompositionSegment

#include <Ultralight/Editor.h>

Overview

Styling for one segment of a composition's text (see Editor::SetComposition()).

An OS input method usually reports one segment per clause of the in-progress text, with the clause the user is actively converting marked thick.

Public Attributes

CompositionRange range
 The range of composition text this segment styles.
Color underline_color
 The underline color.
Color background_color
 A highlight fill drawn behind the segment's text.
bool thick = false
 Whether the underline is drawn thick (the convention for the active clause).

Member Data Documentation

◆ background_color

Color background_color

A highlight fill drawn behind the segment's text.

Leave unset for no fill.

◆ range

The range of composition text this segment styles.

◆ thick

bool thick = false

Whether the underline is drawn thick (the convention for the active clause).

◆ underline_color

Color underline_color

The underline color.

Leave unset to draw the underline in the text's own color.


The documentation for this struct was generated from the following file: