Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GButton ¶
type GButton struct {
// contains filtered or unexported fields
}
func NewButton ¶
func NewButton(text string, x, y float64, tex *ebiten.Image, font *GFont, onClick GButtonClick) (*GButton, error)
NewButton checks that the string fits within the texture then return a new GButton, if you don't want bounds checks you can use NewButtonNoCheck
func NewButtonNoCheck ¶
func NewButtonNoCheck(text string, x, y float64, tex *ebiten.Image, font *GFont, onClick GButtonClick) *GButton
NewButtonNoCheck builds a GButton without checking bounds of string against texture
type GButtonClick ¶
type GButtonClick func()
type GFont ¶
type GFont struct {
// contains filtered or unexported fields
}
GFont thin wrapper around ebiten text drawing mainly meant to be used to pass to other gebitenui components, but can be used independently if desired
type GHoverTexture ¶ added in v0.0.6
type GHoverTexture struct {
// contains filtered or unexported fields
}
func NewHoverTexture ¶ added in v0.0.6
func (*GHoverTexture) Draw ¶ added in v0.0.6
func (ght *GHoverTexture) Draw(screen *ebiten.Image)
func (*GHoverTexture) Update ¶ added in v0.0.6
func (ght *GHoverTexture) Update()
type GTextbox ¶
type GTextbox struct {
// contains filtered or unexported fields
}
GTextbox centers text on the Y axis and accepts a text x/y offset
func NewTextBox ¶
func NewTextBox(x, y float64, maxTextLen int, tex *ebiten.Image, font *GFont, textOffsetX, textOffsetY float64, onChange GTextboxOnChange) *GTextbox
NewTextBox creates a new GTextBox
type GTextboxOnChange ¶ added in v0.0.3
type GTextboxOnChange func(newText string)
type GTextureButton ¶ added in v0.0.5
type GTextureButton struct {
// contains filtered or unexported fields
}
func NewTextureButton ¶ added in v0.0.5
func NewTextureButton(x, y float64, tex *ebiten.Image, onClick GButtonClick) *GTextureButton
NewTextureButton creates a new GTextureButton
func (*GTextureButton) Draw ¶ added in v0.0.5
func (gtb *GTextureButton) Draw(screen *ebiten.Image)
func (*GTextureButton) Update ¶ added in v0.0.5
func (gtb *GTextureButton) Update()
type GTextureButtonClick ¶ added in v0.0.5
type GTextureButtonClick func()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.