WebKit.InputMethodUnderline

Fields

None

Methods

class

new (start_offset, end_offset)

copy ()

free ()

set_color (rgba)

Details

class WebKit.InputMethodUnderline

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

New in version 2.28.

classmethod new(start_offset, end_offset)
Parameters:
  • start_offset (int) – the start offset in preedit string

  • end_offset (int) – the end offset in preedit string

Returns:

A newly created WebKit.InputMethodUnderline

Return type:

WebKit.InputMethodUnderline

Create a new WebKit.InputMethodUnderline for the given range in preedit string

New in version 2.28.

copy()
Returns:

A copy of passed in WebKit.InputMethodUnderline

Return type:

WebKit.InputMethodUnderline

Make a copy of the WebKit.InputMethodUnderline.

New in version 2.28.

free()

Free the WebKit.InputMethodUnderline.

New in version 2.28.

set_color(rgba)
Parameters:

rgba (Gdk.RGBA or None) – a Gdk.RGBA or None

Set the color of the underline.

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

New in version 2.28.