Documentation ¶
Index ¶
- Constants
- Variables
- type Image
- type Window
- func (w *Window) Close() (err error)
- func (w *Window) EventChan() (events <-chan interface{})
- func (w *Window) FlushImage(bounds ...image.Rectangle)
- func (w *Window) LockSize(lock bool)
- func (w *Window) Screen() (im wde.Image)
- func (w *Window) SetCursor(cursor wde.Cursor)
- func (w *Window) SetIcon(icon image.Image)
- func (w *Window) SetIconName(name string)
- func (w *Window) SetSize(width, height int)
- func (w *Window) SetTitle(title string)
- func (w *Window) Show()
- func (w *Window) Size() (width, height int)
Constants ¶
View Source
const AllEventsMask = xproto.EventMaskKeyPress | xproto.EventMaskKeyRelease | xproto.EventMaskKeymapState | xproto.EventMaskButtonPress | xproto.EventMaskButtonRelease | xproto.EventMaskEnterWindow | xproto.EventMaskLeaveWindow | xproto.EventMaskPointerMotion | xproto.EventMaskStructureNotify
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 Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window struct
func (*Window) EventChan ¶
func (w *Window) EventChan() (events <-chan interface{})
EventChan returns the chan
func (*Window) FlushImage ¶
FlushImage and draw a new one
func (*Window) SetIconName ¶
Click to show internal directories.
Click to hide internal directories.