Class CefriumRenderHandler.TouchHandle
java.lang.Object
com.cefrium.CefriumRenderHandler.TouchHandle
- Enclosing interface:
CefriumRenderHandler
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 Summary
FieldsModifier and TypeFieldDescriptionfinal floatOpacity, 0 to 1: the engine fades handles in and out.static final intOrientation: a caret handle, centered under its point.final booleanWhether to draw it.final intIdentifies the handle across reports; each new handle gets a new one.static final intOrientation: the handle hangs to the left of its point (selection start).final booleanDraw the handle flipped left to right.final booleanDraw the handle flipped top to bottom (the selection end is near the bottom edge).final intstatic final intOrientation: the handle hangs to the right of its point (selection end).static final intWidth and height of the area a touch must start in to drag the handle, in the coordinatesCefriumBrowser.sendTouchEvent(int, float, float, int)takes.final intTop-left corner of the handle, in the coordinatesCefriumBrowser.sendTouchEvent(int, float, float, int)takes.final int -
Method Summary
-
Field Details
-
LEFT
public static final int LEFTOrientation: the handle hangs to the left of its point (selection start).- See Also:
-
CENTER
public static final int CENTEROrientation: a caret handle, centered under its point.- See Also:
-
RIGHT
public static final int RIGHTOrientation: the handle hangs to the right of its point (selection end).- See Also:
-
SIZE
public static final int SIZEWidth and height of the area a touch must start in to drag the handle, in the coordinatesCefriumBrowser.sendTouchEvent(int, float, float, int)takes. Draw the handle to fill it.- See Also:
-
id
public final int idIdentifies the handle across reports; each new handle gets a new one. -
enabled
public final boolean enabledWhether to draw it. -
orientation
-
mirrorVertical
public final boolean mirrorVerticalDraw the handle flipped top to bottom (the selection end is near the bottom edge). -
mirrorHorizontal
public final boolean mirrorHorizontalDraw the handle flipped left to right. -
x
public final int xTop-left corner of the handle, in the coordinatesCefriumBrowser.sendTouchEvent(int, float, float, int)takes. The handle spansSIZEfrom here; a touch that starts inside it drags the handle. -
y
public final int y -
alpha
public final float alphaOpacity, 0 to 1: the engine fades handles in and out.
-