components

package
v0.0.0-...-8789af9 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	X, Y, Width, Height int
	Text                string
	IsPressed           bool
}

func (*Button) Render

func (b *Button) Render(ctx ui.Context)

func (*Button) Update

func (b *Button) Update(ctx ui.Context)

type Checkbox

type Checkbox struct {
	X, Y, Size int
	IsChecked  bool
	// contains filtered or unexported fields
}

func (*Checkbox) Render

func (cb *Checkbox) Render(ctx ui.Context)

func (*Checkbox) Update

func (cb *Checkbox) Update(ctx ui.Context)

type Component

type Component struct {
	X, Y, Height, Width int
}

type InputBox

type InputBox struct {
	X, Y, Width, Height int
	Text                string
	IsFocused           bool
	// contains filtered or unexported fields
}

func (*InputBox) Render

func (ib *InputBox) Render(ctx ui.Context)

func (*InputBox) Update

func (ib *InputBox) Update(ctx ui.Context)

type Label

type Label struct {
	X, Y  int
	Text  string
	Color color.Color
}

func NewLabel

func NewLabel(x, y int, text string, color color.Color) *Label

func (*Label) Render

func (l *Label) Render(ctx ui.Context)

func (*Label) Update

func (l *Label) Update(ctx ui.Context)

type Slider

type Slider struct {
	X, Y, Width, Height int
	Value               float64
	// contains filtered or unexported fields
}

func (*Slider) Render

func (s *Slider) Render(ctx ui.Context)

func (*Slider) Update

func (s *Slider) Update(ctx ui.Context)

type Spinner

type Spinner struct {
	X, Y, Radius int
	Color        color.Color
	Speed        float64
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(x, y, radius int, color color.Color) *Spinner

func (*Spinner) Render

func (s *Spinner) Render(ctx ui.Context)

func (*Spinner) Update

func (s *Spinner) Update(ctx ui.Context)

type SurfaceHandle

type SurfaceHandle struct {
	Width, Height int
	Label         string
	// contains filtered or unexported fields
}

func (*SurfaceHandle) Render

func (sh *SurfaceHandle) Render(ctx ui.Context)

func (*SurfaceHandle) Update

func (sh *SurfaceHandle) Update(ctx ui.Context)

type Toggle

type Toggle struct {
	X, Y, Width, Height int
	IsOn                bool
	// contains filtered or unexported fields
}

func (*Toggle) Render

func (t *Toggle) Render(ctx ui.Context)

func (*Toggle) Update

func (t *Toggle) Update(ctx ui.Context)

type ValueSlider

type ValueSlider struct {
	X, Y, Width, Height int
	Value               float64

	MinValue, MaxValue float64
	// contains filtered or unexported fields
}

func (*ValueSlider) Render

func (vs *ValueSlider) Render(ctx ui.Context)

func (*ValueSlider) Update

func (vs *ValueSlider) Update(ctx ui.Context)

Jump to

Keyboard shortcuts

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