MCPcopy Create free account
hub / github.com/andlabs/ui / Window

Struct Window

window.go:16–21  ·  view source on GitHub ↗

Window is a Control that represents a top-level window. A Window contains one child Control that occupies the entirety of the window. Though a Window is a Control, a Window cannot be the child of another Control.

Source from the content-addressed store, hash-verified

14// entirety of the window. Though a Window is a Control,
15// a Window cannot be the child of another Control.
16type Window struct {
17 ControlBase
18 w *C.uiWindow
19 child Control
20 onClosing func(w *Window) bool
21}
22
23// NewWindow creates a new Window.
24func NewWindow(title string, width int, height int, hasMenubar bool) *Window {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected