Class CefriumRenderHandler.TouchHandle

java.lang.Object
com.cefrium.CefriumRenderHandler.TouchHandle
Enclosing interface:
CefriumRenderHandler

public static final class CefriumRenderHandler.TouchHandle extends Object
A text-selection handle of an off-screen browser, as CefriumRenderHandler.onTouchHandleChanged(CefriumRenderHandler.TouchHandle) reports it. A selection has a start and an end handle; a caret in an editable field has one centered handle.
  • Field Details

    • LEFT

      public static final int LEFT
      Orientation: the handle hangs to the left of its point (selection start).
      See Also:
    • CENTER

      public static final int CENTER
      Orientation: a caret handle, centered under its point.
      See Also:
    • SIZE

      public static final int SIZE
      Width and height of the area a touch must start in to drag the handle, in the coordinates CefriumBrowser.sendTouchEvent(int, float, float, int) takes. Draw the handle to fill it.
      See Also:
    • id

      public final int id
      Identifies the handle across reports; each new handle gets a new one.
    • enabled

      public final boolean enabled
      Whether to draw it.
    • orientation

      public final int orientation
    • mirrorVertical

      public final boolean mirrorVertical
      Draw the handle flipped top to bottom (the selection end is near the bottom edge).
    • mirrorHorizontal

      public final boolean mirrorHorizontal
      Draw the handle flipped left to right.
    • x

      public final int x
      Top-left corner of the handle, in the coordinates CefriumBrowser.sendTouchEvent(int, float, float, int) takes. The handle spans SIZE from here; a touch that starts inside it drags the handle.
    • y

      public final int y
    • alpha

      public final float alpha
      Opacity, 0 to 1: the engine fades handles in and out.