Versions in this module Expand all Collapse all v1 v1.3.1 Dec 14, 2021 v1.3.0 Sep 11, 2021 v1.2.0 Sep 8, 2020 Changes in this version type Geom + func (g Geom) Overlaps(h Geom) bool v1.1.0 Sep 8, 2020 Changes in this version type Geom + func (g Geom) Union(h Geom) Geom v1.0.2 Sep 7, 2020 v1.0.1 Sep 7, 2020 Changes in this version + type Color interface + RGBA func() (r, g, b, a uint32) + type Color32 uint32 + func (c Color32) RGBA() (r, g, b, a uint32) + func (c Color32) String() string + type Geom struct + H uint16 + W uint16 + X uint16 + Y uint16 + func (g Geom) IsValid() bool + func (g Geom) IsZero() bool + func (g Geom) NoXY() Geom + func (g Geom) Partition(rows, cols, row, col int) Geom + func (g Geom) String() string + type Option func(*Window) error + func BGColor(color Color) Option + func BGColor32(color Color32) Option + func Display(display string) Option + func Floating() Option + func Name(s string) Option + func Parent(id WindowID) Option + func Undecorated() Option + type Window struct + func Create(g Geom, opts ...Option) (*Window, error) + func (w *Window) Close() error + func (w *Window) Create(g Geom, opts ...Option) (*Window, error) + func (w *Window) Geom() Geom + func (w *Window) Hide() error + func (w *Window) ID() WindowID + func (w *Window) IsClosed() bool + func (w *Window) IsTopLevel() bool + func (w *Window) Show() error + func (w *Window) SubShowOnly(sub *Window) error + func (w *Window) SubSwapGeom(sub1, sub2 *Window) error + func (w *Window) UpdateGeom(g Geom) error + type WindowID uint32