WebKit2.InputMethodUnderline

Fields

None

Methods

class

new (start_offset, end_offset)

copy ()

free ()

set_color (rgba)

Details

class WebKit2.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 WebKit2.InputMethodUnderline

Return type:

WebKit2.InputMethodUnderline

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

New in version 2.28.

copy()
Returns:

A copy of passed in WebKit2.InputMethodUnderline

Return type:

WebKit2.InputMethodUnderline

Make a copy of the WebKit2.InputMethodUnderline.

New in version 2.28.

free()

Free the WebKit2.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.