renderer

package
v0.0.0-...-6902453 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WindowContext = contextutil.New[node.Node]()

Functions

func CreateRootWidget

func CreateRootWidget(ctx context.Context, name string) node.Node

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL