Documentation ¶
Index ¶
- Constants
- Variables
- func SendKey(e Key)
- func SendLifecycle(e Lifecycle)
- func SendMouse(e Mouse)
- func SendPaint(e Paint)
- func SendScroll(e Scroll)
- func SendSize(e Size)
- type Buffer
- type Device
- type DrawOptions
- type Drawer
- type Key
- type Lifecycle
- type Mouse
- type NewWindowOptions
- type Paint
- type PublishResult
- type Screen
- type Scroll
- type Size
- type Texture
- type Uploader
- type Window
Constants ¶
View Source
const ( Over = draw.Over Src = draw.Src )
Variables ¶
Functions ¶
func SendLifecycle ¶ added in v0.6.7
func SendLifecycle(e Lifecycle)
func SendScroll ¶ added in v0.6.7
func SendScroll(e Scroll)
Types ¶
type DrawOptions ¶
type DrawOptions struct { }
type Drawer ¶
type Drawer interface { Draw(src2dst f64.Aff3, src Texture, sr image.Rectangle, op draw.Op, opts *DrawOptions) DrawUniform(src2dst f64.Aff3, src color.Color, sr image.Rectangle, op draw.Op, opts *DrawOptions) Copy(dp image.Point, src Texture, sr image.Rectangle, op draw.Op, opts *DrawOptions) Scale(dr image.Rectangle, src Texture, sr image.Rectangle, op draw.Op, opts *DrawOptions) }
type NewWindowOptions ¶
type NewWindowOptions struct {
Width, Height int
Title string
// Overlay, if true, attempts to create a new window over top
// of the parent process's existing window (similar to running
// a graphical application in Plan9 over top an existing Rio
// window).
Overlay bool
}
NewWindowOptions are optional arguments to NewWindow. TODO(as): NewWindowOptions could be named better
func (*NewWindowOptions) GetTitle ¶
func (o *NewWindowOptions) GetTitle() string
type PublishResult ¶
type PublishResult struct {
BackBufferPreserved bool
}
PublishResult is the result of an Window.Publish call.
type Screen ¶
type Screen interface { NewBuffer(size image.Point) (Buffer, error) NewTexture(size image.Point) (Texture, error) NewWindow(opts *NewWindowOptions) (Window, error) }
Screen creates Buffers, Textures and Windows.
Click to show internal directories.
Click to hide internal directories.