gui

package
v0.0.0-...-124f97e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeKey

func ConsumeKey(ev keys.Event)

Dummy key handler that consumes the event and does nothing.

func ConsumeMouse

func ConsumeMouse(ev mouse.Event)

Dummy mouse handler that consumes the event and does nothing.

Types

type Fragment

type Fragment interface {
	object.Component
	Render() node.T

	Slot() string
	Position() FragmentPosition
}

A Fragment contains a UI subtree to be rendered as a child of a given element

func NewFragment

func NewFragment(args FragmentArgs) Fragment

type FragmentArgs

type FragmentArgs struct {
	Slot     string
	Position FragmentPosition
	Render   node.RenderFunc
}

type FragmentPosition

type FragmentPosition int
const FragmentFirst FragmentPosition = 1
const FragmentLast FragmentPosition = 0

type Manager

type Manager interface {
	object.Component

	DrawUI(args widget.DrawArgs, quads *widget.QuadBuffer)
}

func New

func New(renderNodes node.RenderFunc) Manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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