InputMethodUnderline

Added in version 2.28.

class InputMethodUnderline(**kwargs)

Range of text in an preedit string to be shown underlined.

Constructors

class InputMethodUnderline
classmethod new(start_offset: int, end_offset: int) InputMethodUnderline

Create a new InputMethodUnderline for the given range in preedit string

Added in version 2.28.

Parameters:
  • start_offset – the start offset in preedit string

  • end_offset – the end offset in preedit string

Methods

class InputMethodUnderline
free() None

Free the InputMethodUnderline.

Added in version 2.28.

set_color(rgba: RGBA | None = None) None

Set the color of the underline.

If rgba is None the foreground text color will be used for the underline too.

Added in version 2.28.

Parameters:

rgba – a RGBA or None