Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WindowContext = contextutil.New[node.Node]()
Functions ¶
Types ¶
type Root ¶
type Root interface { Act(fn func()) Loop() error Render(ctx context.Context, vnode compose.VNode) RootNode() node.Node WindowNode() node.Node }
func CreateRoot ¶
func CreateRoot(w *app.Window, optFns ...RootOptionFunc) Root
type RootOptionFunc ¶
type RootOptionFunc func(r *root)
func WithBoundingRectPrinter ¶
func WithBoundingRectPrinter(w io.Writer) RootOptionFunc
func WithGuideline ¶
func WithGuideline(enabled bool) RootOptionFunc
Click to show internal directories.
Click to hide internal directories.