Documentation ¶
Index ¶
- Constants
- type Alignment
- type Button
- type Checkbox
- type Container
- type Font
- type IO
- type Icon
- type Icons
- type Input
- type Label
- type ListItem
- type Mouse
- type Orientation
- type Pane
- func (p *Pane) Button(label string, action func()) *Pane
- func (p *Pane) Checkbox(label string, checked *bool) *Pane
- func (p *Pane) Confirm(label1 string, action1 func(), label2 string, action2 func()) *Pane
- func (p *Pane) Draw(canvas *ebiten.Image, win *Window)
- func (p *Pane) Height() int
- func (p *Pane) IconText(iconId int, text string) *Pane
- func (p *Pane) Input(text *string) *Pane
- func (p *Pane) List(listItems []ListItem, inView int, action func(index int)) *Pane
- func (p *Pane) ProgressBar(total int, progress *int) *Pane
- func (p *Pane) Selection(label string, selected *int, items ...string) *Pane
- func (p *Pane) Text(text string) *Pane
- func (p *Pane) Update(io *IO)
- type Pos
- type Progress
- type Size
- type Slider
- type Style
- type StyleDefinition
- type Widget
- type WidgetId
- type WidgetState
- type Window
- func (win *Window) Draw(screen *ebiten.Image)
- func (win *Window) GetPane(i int) (p *Pane)
- func (win *Window) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (win *Window) PopPane() bool
- func (win *Window) PushPane(p *Pane)
- func (win *Window) Run()
- func (win *Window) Update() error
Constants ¶
View Source
const ( AlignLeft Alignment = 0 AlignCenter Alignment = 1 AlignRight Alignment = 2 OrientHorizontal Orientation = 0 OrientVertical Orientation = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Label ¶
type Orientation ¶
type Orientation int
type Pane ¶
type Pane struct {
// contains filtered or unexported fields
}
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
func NewStyle ¶
func NewStyle(def *StyleDefinition) (s *Style)
type StyleDefinition ¶
type WidgetState ¶
type WidgetState struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.