:right-sidebar: True InputMethodUnderline =================================================================== .. currentmodule:: gi.repository.WebKit .. versionadded:: 2.28 .. class:: InputMethodUnderline(**kwargs) :no-contents-entry: Range of text in an preedit string to be shown underlined. Constructors ------------ .. rst-class:: interim-class .. class:: InputMethodUnderline :no-index: .. classmethod:: new(start_offset: int, end_offset: int) -> ~gi.repository.WebKit.InputMethodUnderline Create a new :obj:`~gi.repository.WebKit.InputMethodUnderline` for the given range in preedit string .. versionadded:: 2.28 :param start_offset: the start offset in preedit string :param end_offset: the end offset in preedit string Methods ------- .. rst-class:: interim-class .. class:: InputMethodUnderline :no-index: .. method:: free() -> None Free the :obj:`~gi.repository.WebKit.InputMethodUnderline`\. .. versionadded:: 2.28 .. method:: set_color(rgba: ~gi.repository.Gdk.RGBA | None = None) -> None Set the color of the underline. If ``rgba`` is :const:`None` the foreground text color will be used for the underline too. .. versionadded:: 2.28 :param rgba: a :obj:`~gi.repository.Gdk.RGBA` or :const:`None`