xgb

package
v0.0.0-...-fbbb5eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

README

License

Moved from files and can be found here

Documentation

Index

Constants

AllEventsMask is a mask for Events that used for listening all events

Variables

View Source
var Gordon image.Image

Functions

This section is empty.

Types

type Image

type Image struct {
	*xgraphics.Image
}

Image Just an image.

func (Image) CopyRGBA

func (buffer Image) CopyRGBA(src *image.RGBA, r image.Rectangle)

CopyRGBA of image

type Window

type Window struct {
	// contains filtered or unexported fields
}

Window struct

func NewWindow

func NewWindow(width, height int) (w *Window, err error)

NewWindow creates a new window with provided width and height

func (*Window) Close

func (w *Window) Close() (err error)

Close the window

func (*Window) EventChan

func (w *Window) EventChan() (events <-chan interface{})

EventChan returns the chan

func (*Window) FlushImage

func (w *Window) FlushImage(bounds ...image.Rectangle)

FlushImage and draw a new one

func (*Window) LockSize

func (w *Window) LockSize(lock bool)

LockSize locks Window size

func (*Window) Screen

func (w *Window) Screen() (im wde.Image)

Screen returns wde.Image of screen

func (*Window) SetCursor

func (w *Window) SetCursor(cursor wde.Cursor)

SetCursor sets cursor

func (*Window) SetIcon

func (w *Window) SetIcon(icon image.Image)

func (*Window) SetIconName

func (w *Window) SetIconName(name string)

func (*Window) SetSize

func (w *Window) SetSize(width, height int)

SetSize sets Window size

func (*Window) SetTitle

func (w *Window) SetTitle(title string)

SetTitle sets Window title

func (*Window) Show

func (w *Window) Show()

Show the window

func (*Window) Size

func (w *Window) Size() (width, height int)

Size returns Window width and height

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL