Class InputMethodUnderline

java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.InputMethodUnderline
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class InputMethodUnderline extends ProxyInstance
Range of text in an preedit string to be shown underlined.
Since:
2.28
  • Constructor Details

    • InputMethodUnderline

      public InputMethodUnderline(MemorySegment address)
      Create a InputMethodUnderline proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • InputMethodUnderline

      public InputMethodUnderline(int startOffset, int endOffset)
      Create a new WebKitInputMethodUnderline for the given range in preedit string
      Parameters:
      startOffset - the start offset in preedit string
      endOffset - the end offset in preedit string
      Since:
      2.28
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the InputMethodUnderline class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • copy

      public InputMethodUnderline copy()
      Make a copy of the WebKitInputMethodUnderline.
      Returns:
      A copy of passed in WebKitInputMethodUnderline
      Since:
      2.28
    • free

      public void free()
      Free the WebKitInputMethodUnderline.
      Since:
      2.28
    • setColor

      public void setColor(@Nullable RGBA rgba)

      Set the color of the underline.

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

      Parameters:
      rgba - a GdkRGBA or null
      Since:
      2.28