mono

package
v0.0.0-...-23da4bb Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theme

type Theme[T pixel.Color] struct {
	style.Theme[T]
}

func New

func New[T pixel.Color](scale style.Scale, screen *tinygl.Screen[T]) *Theme[T]

New returns a new Mono theme with the given properties.

The default style is black text on a white background.

func (*Theme[T]) NewListBox

func (theme *Theme[T]) NewListBox(elements []string) *tinygl.ListBox[T]

Create a new listbox with the given elements. The elements (and number of elements) cannot be changed after creation.

func (*Theme[T]) NewText

func (theme *Theme[T]) NewText(text string) *tinygl.Text[T]

Create a new text label with the default style.

func (*Theme[T]) NewVBox

func (theme *Theme[T]) NewVBox(children ...tinygl.Object[T]) *tinygl.VBox[T]

NewVBox returns a new VBox with the default style.

Jump to

Keyboard shortcuts

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