window

package
v0.0.0-...-804368d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

func (*Empty) Draw

func (e *Empty) Draw(x, y, w, h int32)

func (*Empty) SetCharCallback

func (e *Empty) SetCharCallback(r rune)

func (*Empty) SetCursorPosCallback

func (e *Empty) SetCursorPosCallback(
	xpos float64,
	ypos float64,
)

func (*Empty) SetKeyCallback

func (e *Empty) SetKeyCallback(
	key glfw.Key,
	scancode int,
	action glfw.Action,
	mods glfw.ModifierKey,
)

func (*Empty) SetMouseButtonCallback

func (e *Empty) SetMouseButtonCallback(
	button glfw.MouseButton,
	action glfw.Action,
	mods glfw.ModifierKey,
	xcursor, ycursor float64,
)

func (*Empty) SetScrollCallback

func (e *Empty) SetScrollCallback(
	xcursor, ycursor float64,
	xoffset, yoffset float64,
)

type Tui

type Tui struct {
	// contains filtered or unexported fields
}

func NewTui

func NewTui(w vl.Widget) *Tui

func (*Tui) Draw

func (t *Tui) Draw(x, y, w, h int32)

func (*Tui) DrawText

func (t *Tui) DrawText(cell vl.Cell, x, y, h int)

DrawText text on the screen

func (*Tui) SetCharCallback

func (t *Tui) SetCharCallback(r rune)

func (*Tui) SetCursorPosCallback

func (t *Tui) SetCursorPosCallback(
	xpos float64,
	ypos float64,
)

func (*Tui) SetFont

func (t *Tui) SetFont(f *glsymbol.Font)

func (*Tui) SetKeyCallback

func (t *Tui) SetKeyCallback(
	key glfw.Key,
	scancode int,
	action glfw.Action,
	mods glfw.ModifierKey,
)

func (*Tui) SetMouseButtonCallback

func (t *Tui) SetMouseButtonCallback(
	button glfw.MouseButton,
	action glfw.Action,
	mods glfw.ModifierKey,
	xcursor, ycursor float64,
)

func (*Tui) SetScrollCallback

func (t *Tui) SetScrollCallback(
	xcursor, ycursor float64,
	xoffset, yoffset float64,
)

Jump to

Keyboard shortcuts

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