Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2024 Changes in this version + func DrawSliderShape[T float32 | float64 | int](s *slider[T], image *ebiten.Image, whiteImage *ebiten.Image, ...) + func UpdateSlider[T float32 | float64 | int](s *slider[T], x, y, width, height, scale float32) + type Component interface + Draw func(image *ebiten.Image, whiteImage *ebiten.Image, ...) + Label func() string + Update func(x, y, width, height, scale float32) + type GUI struct + ComponentHeight float32 + HorizontalAlign HorizontalAlign + Scale float32 + Width float32 + X float32 + Y float32 + func NewGUI() *GUI + func (g *GUI) AddButton(label string, value bool, callback func(v bool)) + func (g *GUI) AddSliderFloat32(label string, value, min, max float32, callback func(v float32)) + func (g *GUI) AddSliderFloat64(label string, value, min, max float64, callback func(v float64)) + func (g *GUI) AddSliderInt(label string, value, min, max int, callback func(v int)) + func (g *GUI) Draw(image *ebiten.Image) + func (g *GUI) SetTitle(t string) + func (g *GUI) Update() + type HorizontalAlign int + const HorizontalAlignLeft + const HorizontalAlignRight + type RangeInterpolator struct + Max T + Min T + Value T + func (r *RangeInterpolator[T]) Ratio() float64 + func (r *RangeInterpolator[T]) SetRatio(ratio float64) + func (r *RangeInterpolator[T]) String() string