Documentation ¶
Index ¶
- type W2Window
- func (w *W2Window) Close() error
- func (w *W2Window) GetCPPaste(i event.CopyPasteIndex, fn func(string, error))
- func (w *W2Window) Image() draw.Image
- func (w *W2Window) NextEvent() interface{}
- func (w *W2Window) PutImage(r image.Rectangle) error
- func (w *W2Window) QueryPointer() (image.Point, error)
- func (w *W2Window) ResizeImage(r image.Rectangle) error
- func (w *W2Window) SetCPCopy(i event.CopyPasteIndex, s string) error
- func (w *W2Window) SetCursor(c event.Cursor)
- func (w *W2Window) SetWindowName(name string)
- func (w *W2Window) WarpPointer(p image.Point)
- type Windowdeprecated
- func NewWindow() (Window, error)deprecated
- type Window2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type W2Window ¶ added in v1.1.0
type W2Window struct {
W2 Window2
}
Maintain Window interface with Window2 based implementation.
func NewW2Window ¶ added in v1.1.0
func (*W2Window) GetCPPaste ¶ added in v1.1.0
func (w *W2Window) GetCPPaste(i event.CopyPasteIndex, fn func(string, error))
func (*W2Window) QueryPointer ¶ added in v1.1.0
func (*W2Window) ResizeImage ¶ added in v1.1.0
func (*W2Window) SetCPCopy ¶ added in v1.1.0
func (w *W2Window) SetCPCopy(i event.CopyPasteIndex, s string) error
func (*W2Window) SetWindowName ¶ added in v1.1.0
func (*W2Window) WarpPointer ¶ added in v1.1.0
type Window
deprecated
type Window interface { NextEvent() interface{} // emits errors and events (util/uiutil/event) Close() error SetWindowName(string) Image() draw.Image PutImage(image.Rectangle) error ResizeImage(image.Rectangle) error SetCursor(event.Cursor) QueryPointer() (image.Point, error) WarpPointer(image.Point) // copypaste // paste func arg is called from another goroutine GetCPPaste(event.CopyPasteIndex, func(string, error)) SetCPCopy(event.CopyPasteIndex, string) error }
Deprecated: use Window2
Click to show internal directories.
Click to hide internal directories.