Documentation ¶
Overview ¶
Package gui provides a basic portable library to construct graphical user interfaces.
The main interface is called Window, a draw.Image interface which represents a rectangular area of an underlying graphical user interface (GUI). Window can thus be manipulated like a regular draw.Image. The Window interface does not provide other regular window manipulation functions (i.e. resizing, moving) as these should be handled by the window manager. The gui library also does not support multi-window programs, as this harms portability and may lead to abuse of the capability.
Warning: package gui does not support GPUs and therefore should not be used in graphics-intensive solutions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pointer ¶
type Pointer interface {
Pos() (x, y int)
}
Pointer represents the current position of the pointing device or the last position of physical contact.