Documentation ¶
Index ¶
- 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
- type 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
- type RangeInterpolator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawSliderShape ¶
Types ¶
type GUI ¶
type GUI struct { X float32 Y float32 Width float32 ComponentHeight float32 Scale float32 HorizontalAlign HorizontalAlign // contains filtered or unexported fields }
func (*GUI) AddSliderFloat32 ¶
func (*GUI) AddSliderFloat64 ¶
func (*GUI) AddSliderInt ¶
type HorizontalAlign ¶
type HorizontalAlign int
const ( HorizontalAlignLeft HorizontalAlign = iota HorizontalAlignRight )
type RangeInterpolator ¶
func (*RangeInterpolator[T]) Ratio ¶
func (r *RangeInterpolator[T]) Ratio() float64
func (*RangeInterpolator[T]) SetRatio ¶
func (r *RangeInterpolator[T]) SetRatio(ratio float64)
func (*RangeInterpolator[T]) String ¶
func (r *RangeInterpolator[T]) String() string
Click to show internal directories.
Click to hide internal directories.