Versions in this module Expand all Collapse all v0 v0.0.1 Jan 21, 2024 Changes in this version + var HWND syscall.Handle = 0 — windows/amd64 + var ID = "" + func CustomDragHandler(fn func([]string)) — windows/amd64 + func DataDir() (string, error) + func DragAcceptFiles(hwnd syscall.Handle, accept bool) — windows/amd64 + func Main() + type Config struct + CustomRenderer bool + Decorated bool + MaxSize image.Point + MinSize image.Point + Mode WindowMode + NavigationColor color.NRGBA + Orientation Orientation + Size image.Point + StatusColor color.NRGBA + Title string + type ConfigEvent struct + Config Config + func (ConfigEvent) ImplementsEvent() + type Option func(unit.Metric, *Config) + func CustomRenderer(custom bool) Option + func Decorated(enabled bool) Option + func MaxSize(w, h unit.Dp) Option + func MinSize(w, h unit.Dp) Option + func NavigationColor(color color.NRGBA) Option + func Size(w, h unit.Dp) Option + func StatusColor(color color.NRGBA) Option + func Title(t string) Option + type Orientation uint8 + const AnyOrientation + const LandscapeOrientation + const PortraitOrientation + func (o Orientation) Option() Option + func (o Orientation) String() string + type ViewEvent interface — linux/amd64 + ImplementsEvent func() + type ViewEvent struct — darwin/amd64, js/wasm, windows/amd64 + Element js.Value + HWND uintptr + Layer uintptr + View uintptr + func (_ ViewEvent) ImplementsEvent() + type WaylandViewEvent struct — linux/amd64 + Display unsafe.Pointer + Surface unsafe.Pointer + func (WaylandViewEvent) ImplementsEvent() + type Window struct + func NewWindow(options ...Option) *Window + func (w *Window) Invalidate() + func (w *Window) NextEvent() event.Event + func (w *Window) Option(opts ...Option) + func (w *Window) Perform(actions system.Action) + func (w *Window) Run(f func()) + func (w *Window) WriteClipboard(s string) + type WindowMode uint8 + const Fullscreen + const Maximized + const Minimized + const Windowed + func (m WindowMode) Option() Option + func (m WindowMode) String() string + type X11ViewEvent struct — linux/amd64 + Display unsafe.Pointer + Window uintptr + func (X11ViewEvent) ImplementsEvent()