Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + const CommandCancelDragging + const CommandDispatchDragEvent + const CommandDispatchKeyEvent + const CommandDispatchMouseEvent + const CommandDispatchTouchEvent + const CommandEmulateTouchFromMouseEvent + const CommandImeSetComposition + const CommandInsertText + const CommandSetIgnoreInputEvents + const CommandSetInterceptDrags + const CommandSynthesizePinchGesture + const CommandSynthesizeScrollGesture + const CommandSynthesizeTapGesture + type CancelDraggingParams struct + func CancelDragging() *CancelDraggingParams + func (p *CancelDraggingParams) Do(ctx context.Context) (err error) + func (v *CancelDraggingParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CancelDraggingParams) UnmarshalJSON(data []byte) error + func (v CancelDraggingParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CancelDraggingParams) MarshalJSON() ([]byte, error) + type DispatchDragEventParams struct + Data *DragData + Modifiers Modifier + Type DispatchDragEventType + X float64 + Y float64 + func DispatchDragEvent(typeVal DispatchDragEventType, x float64, y float64, data *DragData) *DispatchDragEventParams + func (p *DispatchDragEventParams) Do(ctx context.Context) (err error) + func (p DispatchDragEventParams) WithModifiers(modifiers Modifier) *DispatchDragEventParams + func (v *DispatchDragEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DispatchDragEventParams) UnmarshalJSON(data []byte) error + func (v DispatchDragEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DispatchDragEventParams) MarshalJSON() ([]byte, error) + type DispatchDragEventType string + const DragCancel + const DragEnter + const DragOver + const Drop + func (t *DispatchDragEventType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *DispatchDragEventType) UnmarshalJSON(buf []byte) error + func (t DispatchDragEventType) MarshalEasyJSON(out *jwriter.Writer) + func (t DispatchDragEventType) MarshalJSON() ([]byte, error) + func (t DispatchDragEventType) String() string + type DispatchKeyEventParams struct + AutoRepeat bool + Code string + Commands []string + IsKeypad bool + IsSystemKey bool + Key string + KeyIdentifier string + Location int64 + Modifiers Modifier + NativeVirtualKeyCode int64 + Text string + Timestamp *TimeSinceEpoch + Type KeyType + UnmodifiedText string + WindowsVirtualKeyCode int64 + func DispatchKeyEvent(typeVal KeyType) *DispatchKeyEventParams + func (p *DispatchKeyEventParams) Do(ctx context.Context) (err error) + func (p DispatchKeyEventParams) WithAutoRepeat(autoRepeat bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithCode(code string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithCommands(commands []string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithIsKeypad(isKeypad bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithIsSystemKey(isSystemKey bool) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithKey(key string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithKeyIdentifier(keyIdentifier string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithLocation(location int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithModifiers(modifiers Modifier) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithNativeVirtualKeyCode(nativeVirtualKeyCode int64) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithText(text string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithUnmodifiedText(unmodifiedText string) *DispatchKeyEventParams + func (p DispatchKeyEventParams) WithWindowsVirtualKeyCode(windowsVirtualKeyCode int64) *DispatchKeyEventParams + func (v *DispatchKeyEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DispatchKeyEventParams) UnmarshalJSON(data []byte) error + func (v DispatchKeyEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DispatchKeyEventParams) MarshalJSON() ([]byte, error) + type DispatchMouseEventParams struct + Button MouseButton + Buttons int64 + ClickCount int64 + DeltaX float64 + DeltaY float64 + Force float64 + Modifiers Modifier + PointerType DispatchMouseEventPointerType + TangentialPressure float64 + TiltX float64 + TiltY float64 + Timestamp *TimeSinceEpoch + Twist int64 + Type MouseType + X float64 + Y float64 + func DispatchMouseEvent(typeVal MouseType, x float64, y float64) *DispatchMouseEventParams + func (p *DispatchMouseEventParams) Do(ctx context.Context) (err error) + func (p DispatchMouseEventParams) WithButton(button MouseButton) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithButtons(buttons int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithClickCount(clickCount int64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithDeltaX(deltaX float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithDeltaY(deltaY float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithForce(force float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithModifiers(modifiers Modifier) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithPointerType(pointerType DispatchMouseEventPointerType) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTangentialPressure(tangentialPressure float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTiltX(tiltX float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTiltY(tiltY float64) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchMouseEventParams + func (p DispatchMouseEventParams) WithTwist(twist int64) *DispatchMouseEventParams + func (v *DispatchMouseEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DispatchMouseEventParams) UnmarshalJSON(data []byte) error + func (v DispatchMouseEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DispatchMouseEventParams) MarshalJSON() ([]byte, error) + type DispatchMouseEventPointerType string + const Mouse + const Pen + func (t *DispatchMouseEventPointerType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *DispatchMouseEventPointerType) UnmarshalJSON(buf []byte) error + func (t DispatchMouseEventPointerType) MarshalEasyJSON(out *jwriter.Writer) + func (t DispatchMouseEventPointerType) MarshalJSON() ([]byte, error) + func (t DispatchMouseEventPointerType) String() string + type DispatchTouchEventParams struct + Modifiers Modifier + Timestamp *TimeSinceEpoch + TouchPoints []*TouchPoint + Type TouchType + func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams + func (p *DispatchTouchEventParams) Do(ctx context.Context) (err error) + func (p DispatchTouchEventParams) WithModifiers(modifiers Modifier) *DispatchTouchEventParams + func (p DispatchTouchEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchTouchEventParams + func (v *DispatchTouchEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DispatchTouchEventParams) UnmarshalJSON(data []byte) error + func (v DispatchTouchEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DispatchTouchEventParams) MarshalJSON() ([]byte, error) + type DragData struct + DragOperationsMask int64 + Files []string + Items []*DragDataItem + func (v *DragData) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DragData) UnmarshalJSON(data []byte) error + func (v DragData) MarshalEasyJSON(w *jwriter.Writer) + func (v DragData) MarshalJSON() ([]byte, error) + type DragDataItem struct + BaseURL string + Data string + MimeType string + Title string + func (v *DragDataItem) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DragDataItem) UnmarshalJSON(data []byte) error + func (v DragDataItem) MarshalEasyJSON(w *jwriter.Writer) + func (v DragDataItem) MarshalJSON() ([]byte, error) + type EmulateTouchFromMouseEventParams struct + Button MouseButton + ClickCount int64 + DeltaX float64 + DeltaY float64 + Modifiers Modifier + Timestamp *TimeSinceEpoch + Type MouseType + X int64 + Y int64 + func EmulateTouchFromMouseEvent(typeVal MouseType, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams + func (p *EmulateTouchFromMouseEventParams) Do(ctx context.Context) (err error) + func (p EmulateTouchFromMouseEventParams) WithClickCount(clickCount int64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithDeltaX(deltaX float64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithDeltaY(deltaY float64) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithModifiers(modifiers Modifier) *EmulateTouchFromMouseEventParams + func (p EmulateTouchFromMouseEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *EmulateTouchFromMouseEventParams + func (v *EmulateTouchFromMouseEventParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EmulateTouchFromMouseEventParams) UnmarshalJSON(data []byte) error + func (v EmulateTouchFromMouseEventParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EmulateTouchFromMouseEventParams) MarshalJSON() ([]byte, error) + type EventDragIntercepted struct + Data *DragData + func (v *EventDragIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventDragIntercepted) UnmarshalJSON(data []byte) error + func (v EventDragIntercepted) MarshalEasyJSON(w *jwriter.Writer) + func (v EventDragIntercepted) MarshalJSON() ([]byte, error) + type GestureSourceType string + const GestureDefault + const GestureMouse + const GestureTouch + func (t *GestureSourceType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *GestureSourceType) UnmarshalJSON(buf []byte) error + func (t GestureSourceType) MarshalEasyJSON(out *jwriter.Writer) + func (t GestureSourceType) MarshalJSON() ([]byte, error) + func (t GestureSourceType) String() string + type ImeSetCompositionParams struct + ReplacementEnd int64 + ReplacementStart int64 + SelectionEnd int64 + SelectionStart int64 + Text string + func ImeSetComposition(text string, selectionStart int64, selectionEnd int64) *ImeSetCompositionParams + func (p *ImeSetCompositionParams) Do(ctx context.Context) (err error) + func (p ImeSetCompositionParams) WithReplacementEnd(replacementEnd int64) *ImeSetCompositionParams + func (p ImeSetCompositionParams) WithReplacementStart(replacementStart int64) *ImeSetCompositionParams + func (v *ImeSetCompositionParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ImeSetCompositionParams) UnmarshalJSON(data []byte) error + func (v ImeSetCompositionParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ImeSetCompositionParams) MarshalJSON() ([]byte, error) + type InsertTextParams struct + Text string + func InsertText(text string) *InsertTextParams + func (p *InsertTextParams) Do(ctx context.Context) (err error) + func (v *InsertTextParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *InsertTextParams) UnmarshalJSON(data []byte) error + func (v InsertTextParams) MarshalEasyJSON(w *jwriter.Writer) + func (v InsertTextParams) MarshalJSON() ([]byte, error) + type KeyType string + const KeyChar + const KeyDown + const KeyRawDown + const KeyUp + func (t *KeyType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *KeyType) UnmarshalJSON(buf []byte) error + func (t KeyType) MarshalEasyJSON(out *jwriter.Writer) + func (t KeyType) MarshalJSON() ([]byte, error) + func (t KeyType) String() string + type Modifier int64 + const ModifierAlt + const ModifierCommand + const ModifierCtrl + const ModifierMeta + const ModifierNone + const ModifierShift + func (t *Modifier) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *Modifier) UnmarshalJSON(buf []byte) error + func (t Modifier) Int64() int64 + func (t Modifier) MarshalEasyJSON(out *jwriter.Writer) + func (t Modifier) MarshalJSON() ([]byte, error) + func (t Modifier) String() string + type MouseButton string + const Back + const Forward + const Left + const Middle + const None + const Right + func (t *MouseButton) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *MouseButton) UnmarshalJSON(buf []byte) error + func (t MouseButton) MarshalEasyJSON(out *jwriter.Writer) + func (t MouseButton) MarshalJSON() ([]byte, error) + func (t MouseButton) String() string + type MouseType string + const MouseMoved + const MousePressed + const MouseReleased + const MouseWheel + func (t *MouseType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *MouseType) UnmarshalJSON(buf []byte) error + func (t MouseType) MarshalEasyJSON(out *jwriter.Writer) + func (t MouseType) MarshalJSON() ([]byte, error) + func (t MouseType) String() string + type SetIgnoreInputEventsParams struct + Ignore bool + func SetIgnoreInputEvents(ignore bool) *SetIgnoreInputEventsParams + func (p *SetIgnoreInputEventsParams) Do(ctx context.Context) (err error) + func (v *SetIgnoreInputEventsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetIgnoreInputEventsParams) UnmarshalJSON(data []byte) error + func (v SetIgnoreInputEventsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetIgnoreInputEventsParams) MarshalJSON() ([]byte, error) + type SetInterceptDragsParams struct + Enabled bool + func SetInterceptDrags(enabled bool) *SetInterceptDragsParams + func (p *SetInterceptDragsParams) Do(ctx context.Context) (err error) + func (v *SetInterceptDragsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SetInterceptDragsParams) UnmarshalJSON(data []byte) error + func (v SetInterceptDragsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SetInterceptDragsParams) MarshalJSON() ([]byte, error) + type SynthesizePinchGestureParams struct + GestureSourceType GestureSourceType + RelativeSpeed int64 + ScaleFactor float64 + X float64 + Y float64 + func SynthesizePinchGesture(x float64, y float64, scaleFactor float64) *SynthesizePinchGestureParams + func (p *SynthesizePinchGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizePinchGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizePinchGestureParams + func (p SynthesizePinchGestureParams) WithRelativeSpeed(relativeSpeed int64) *SynthesizePinchGestureParams + func (v *SynthesizePinchGestureParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SynthesizePinchGestureParams) UnmarshalJSON(data []byte) error + func (v SynthesizePinchGestureParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SynthesizePinchGestureParams) MarshalJSON() ([]byte, error) + type SynthesizeScrollGestureParams struct + GestureSourceType GestureSourceType + InteractionMarkerName string + PreventFling bool + RepeatCount int64 + RepeatDelayMs int64 + Speed int64 + X float64 + XDistance float64 + XOverscroll float64 + Y float64 + YDistance float64 + YOverscroll float64 + func SynthesizeScrollGesture(x float64, y float64) *SynthesizeScrollGestureParams + func (p *SynthesizeScrollGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizeScrollGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithInteractionMarkerName(interactionMarkerName string) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithPreventFling(preventFling bool) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithRepeatCount(repeatCount int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithRepeatDelayMs(repeatDelayMs int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithSpeed(speed int64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithXDistance(xDistance float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithYDistance(yDistance float64) *SynthesizeScrollGestureParams + func (p SynthesizeScrollGestureParams) WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams + func (v *SynthesizeScrollGestureParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SynthesizeScrollGestureParams) UnmarshalJSON(data []byte) error + func (v SynthesizeScrollGestureParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SynthesizeScrollGestureParams) MarshalJSON() ([]byte, error) + type SynthesizeTapGestureParams struct + Duration int64 + GestureSourceType GestureSourceType + TapCount int64 + X float64 + Y float64 + func SynthesizeTapGesture(x float64, y float64) *SynthesizeTapGestureParams + func (p *SynthesizeTapGestureParams) Do(ctx context.Context) (err error) + func (p SynthesizeTapGestureParams) WithDuration(duration int64) *SynthesizeTapGestureParams + func (p SynthesizeTapGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeTapGestureParams + func (p SynthesizeTapGestureParams) WithTapCount(tapCount int64) *SynthesizeTapGestureParams + func (v *SynthesizeTapGestureParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SynthesizeTapGestureParams) UnmarshalJSON(data []byte) error + func (v SynthesizeTapGestureParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SynthesizeTapGestureParams) MarshalJSON() ([]byte, error) + type TimeSinceEpoch time.Time + func (t *TimeSinceEpoch) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *TimeSinceEpoch) UnmarshalJSON(buf []byte) error + func (t TimeSinceEpoch) MarshalEasyJSON(out *jwriter.Writer) + func (t TimeSinceEpoch) MarshalJSON() ([]byte, error) + func (t TimeSinceEpoch) Time() time.Time + type TouchPoint struct + Force float64 + ID float64 + RadiusX float64 + RadiusY float64 + RotationAngle float64 + TangentialPressure float64 + TiltX float64 + TiltY float64 + Twist int64 + X float64 + Y float64 + func (v *TouchPoint) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *TouchPoint) UnmarshalJSON(data []byte) error + func (v TouchPoint) MarshalEasyJSON(w *jwriter.Writer) + func (v TouchPoint) MarshalJSON() ([]byte, error) + type TouchType string + const TouchCancel + const TouchEnd + const TouchMove + const TouchStart + func (t *TouchType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *TouchType) UnmarshalJSON(buf []byte) error + func (t TouchType) MarshalEasyJSON(out *jwriter.Writer) + func (t TouchType) MarshalJSON() ([]byte, error) + func (t TouchType) String() string