Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewPlatformImplError = errors.New("platform impl new() error") InstanceUsableError = errors.New("instance not usable") CaptureError = errors.New("cursor capture error") FreeError = errors.New("instance has been freed") CaptureUnknownError = errors.New("cursor unknown capture error, please check platformImpl for debugging") )
Errors
Functions ¶
func CaptureCursor ¶
CaptureCursor 快速使用默认配置捕获鼠标指针图像
Types ¶
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
func NewWithConfig(config platformImpl.ImplConfig) (*Cursor, error)
NewWithConfig 使用自定义配置创建实例
func (*Cursor) CaptureWithConfig ¶
func (c *Cursor) CaptureWithConfig(config platformImpl.ImplCursorConfig) (*image.RGBA, error)
CaptureWithConfig 使用自定义配置捕捉鼠标指针图像
func (*Cursor) PlatformStatus ¶
func (c *Cursor) PlatformStatus() interface{}
PlatformStatus 获取实例的平台状态
Click to show internal directories.
Click to hide internal directories.