Documentation
¶
Index ¶
- type DCap
- func (d *DCap) Capture(x, y, width, height int) error
- func (d *DCap) CaptureDisplay(displayIndex int) error
- func (d *DCap) ClipboardGet() (string, error)
- func (d *DCap) ClipboardSet(text string) error
- func (d *DCap) Close()
- func (d *DCap) Image() *image.RGBA
- func (d *DCap) ImageNoCopy() *image.RGBA
- func (d *DCap) MouseMove(x, y int) error
- func (d *DCap) NewImage(x, y, width, height int)
- func (d *DCap) Scroll(x, y int)
- func (d *DCap) ToggleKey(key string, down bool) error
- func (d *DCap) ToggleMouse(button MouseButton, down bool) error
- type MouseButton
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DCap ¶
func (*DCap) CaptureDisplay ¶
func (*DCap) ClipboardGet ¶
ClipboardGet get text from clipboard
func (*DCap) ClipboardSet ¶
ClipboardSet set text to clipboard
func (*DCap) ImageNoCopy ¶ added in v0.1.1
ImageNoCopy return image.RGBA without copy
func (*DCap) ToggleMouse ¶
func (d *DCap) ToggleMouse(button MouseButton, down bool) error
ToggleMouse toggle mouse button event, https://www.x.org/releases/X11R7.7/doc/xextproto/xtest.html
type MouseButton ¶
type MouseButton byte
MouseButton button of mouse
const ( // MouseLeft left button for mouse MouseLeft MouseButton = iota // MouseMiddle middle button for mouse MouseMiddle // MouseRight right button for mouse MouseRight )
Click to show internal directories.
Click to hide internal directories.