Documentation ¶
Index ¶
- Variables
- func DrawDebug(screen *ebiten.Image)
- func DrawFPS(screen *ebiten.Image)
- func DrawTPS(screen *ebiten.Image)
- type Button
- func (b *Button) Draw(screen *ebiten.Image)
- func (b *Button) Input()
- func (b *Button) SetBorderSize(size float64)
- func (b *Button) SetColor(colorButton color.RGBA)
- func (b *Button) SetColorHover(colorButtonHover color.RGBA)
- func (b *Button) SetColorText(colorText color.RGBA)
- func (b *Button) SetColorTextHover(colorTextHover color.RGBA)
- func (b *Button) SetFont(path string)
- func (b *Button) SetFontSize(size float64)
- func (b *Button) SetPosition(position Point)
- func (b *Button) SetRadius(radius int)
- func (b *Button) SetText(text string)
- type CheckBox
- type Contour
- type Label
- func (l *Label) Draw(screen *ebiten.Image)
- func (l *Label) Input(g *SceneManager)
- func (l *Label) SetColor(colorButton color.RGBA)
- func (l *Label) SetFont(path string)
- func (l *Label) SetFontSize(size float64)
- func (l *Label) SetFunction(execute func(g *SceneManager))
- func (l *Label) SetText(text string)
- type Point
- type Scene
- type SceneManager
- type Slider
- type SpriteButton
- type Widget
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Quit_game = errors.New("regular termination")
)
Functions ¶
Types ¶
type Button ¶
func (*Button) SetBorderSize ¶
func (*Button) SetColorHover ¶
func (*Button) SetColorText ¶
func (*Button) SetColorTextHover ¶
func (*Button) SetFontSize ¶
func (*Button) SetPosition ¶
type CheckBox ¶
type CheckBox struct { Size Point Checked bool Execute bool // contains filtered or unexported fields }
func NewCheckBox ¶
func (*CheckBox) SetBorderSize ¶
func (*CheckBox) SetColorChecked ¶
type Label ¶
type Label struct { Position Point // contains filtered or unexported fields }
func (*Label) Input ¶
func (l *Label) Input(g *SceneManager)
func (*Label) SetFontSize ¶
func (*Label) SetFunction ¶
func (l *Label) SetFunction(execute func(g *SceneManager))
type Scene ¶
type Scene interface { Draw(screen *ebiten.Image) Layout(outsideWidth, outsideHeight int) (int, int) Update(g *SceneManager) error }
type SceneManager ¶
type SceneManager struct {
Current_scene Scene
}
func (*SceneManager) Draw ¶
func (g *SceneManager) Draw(screen *ebiten.Image)
func (*SceneManager) Layout ¶
func (g *SceneManager) Layout(outsideWidth, outsideHeight int) (int, int)
func (*SceneManager) Update ¶
func (g *SceneManager) Update() error
type Slider ¶
type Slider struct {
// contains filtered or unexported fields
}
func (*Slider) SetColorButton ¶
type SpriteButton ¶
type SpriteButton struct { Execute bool // contains filtered or unexported fields }
func NewSpriteButton ¶
func NewSpriteButton(position Point, pathImgDefault, pathImgHover, pathImgClicked string) SpriteButton
func (*SpriteButton) Draw ¶
func (b *SpriteButton) Draw(screen *ebiten.Image)
func (*SpriteButton) Input ¶
func (b *SpriteButton) Input()
func (*SpriteButton) SetScale ¶
func (b *SpriteButton) SetScale(scale float64)
Click to show internal directories.
Click to hide internal directories.