knobmenu

package
v0.0.0-...-0cb7d88 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFont = &proggy.TinySZ8pt7b
)

Functions

This section is empty.

Types

type KnobMenu

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

func NewKnobMenu

func NewKnobMenu(knob hal.KnobInput, opts ...KnobMenuOption) (*KnobMenu, error)

func (*KnobMenu) Next

func (m *KnobMenu) Next()

func (*KnobMenu) Paint

func (m *KnobMenu) Paint(e europi.Hardware, deltaTime time.Duration)

type KnobMenuOption

type KnobMenuOption func(km *KnobMenu) ([]knobbank.KnobBankOption, error)

func WithFont

func WithFont(font tinyfont.Fonter) KnobMenuOption

func WithItem

func WithItem(name, label string, stringFn func() string, valueFn func() units.CV, updateFn func(value units.CV)) KnobMenuOption

func WithPosition

func WithPosition(x, y int16) KnobMenuOption

func WithYAdvance

func WithYAdvance(yadvance int16) KnobMenuOption

Jump to

Keyboard shortcuts

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