Documentation
¶
Index ¶
- Constants
- type BasicComponent
- func (bc *BasicComponent) Close(msg any)
- func (bc *BasicComponent) ID() int
- func (bc *BasicComponent) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (bc *BasicComponent) Parent() ParentCom
- func (bc *BasicComponent) Rect() Rect
- func (bc *BasicComponent) SetSize(height, width int)
- func (bc *BasicComponent) Update() error
- type BasicWindow
- func (bw *BasicWindow) AddComponent(c Component)
- func (bw *BasicWindow) Close(msg any)
- func (bw *BasicWindow) CompleteFadein()
- func (bw *BasicWindow) Draw(screen *ebiten.Image)
- func (bw *BasicWindow) FadeIn(timeInTick int)
- func (bw *BasicWindow) FadeOut(timeInTick int)
- func (bw *BasicWindow) GetPalette() []color.RGBA
- func (bw *BasicWindow) ID() int
- func (bw *BasicWindow) Notify(subId int, event ComEvent, msg any)
- func (bw *BasicWindow) RemoveComponent(c Component)
- func (bw *BasicWindow) SetPalette(plt []color.RGBA)
- func (bw *BasicWindow) Timer() *utils.TimerManager
- func (bw *BasicWindow) Update() error
- type ComEvent
- type Component
- type Input
- type Label
- type Menu
- type MenuItem
- type ParentCom
- type Pos
- type Rect
- type Window
Constants ¶
View Source
const ( KeyUp = iota KeyDown KeyLeft KeyRight KeySpace KeyEcs CountKey KeyAny )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicComponent ¶
type BasicComponent struct { RECT Rect // contains filtered or unexported fields }
func NewConponent ¶
func NewConponent(t, l, h, w int, parent ParentCom) *BasicComponent
func (*BasicComponent) Close ¶
func (bc *BasicComponent) Close(msg any)
func (*BasicComponent) ID ¶
func (bc *BasicComponent) ID() int
func (*BasicComponent) Layout ¶
func (bc *BasicComponent) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
func (*BasicComponent) Parent ¶
func (bc *BasicComponent) Parent() ParentCom
func (*BasicComponent) Rect ¶
func (bc *BasicComponent) Rect() Rect
func (*BasicComponent) SetSize ¶
func (bc *BasicComponent) SetSize(height, width int)
func (*BasicComponent) Update ¶
func (bc *BasicComponent) Update() error
type BasicWindow ¶
type BasicWindow struct { BasicComponent // handler OnOpen func() // contains filtered or unexported fields }
func NewBasicWindow ¶
func NewBasicWindow(parent ParentCom) *BasicWindow
func (*BasicWindow) AddComponent ¶
func (bw *BasicWindow) AddComponent(c Component)
func (*BasicWindow) Close ¶
func (bw *BasicWindow) Close(msg any)
func (*BasicWindow) CompleteFadein ¶
func (bw *BasicWindow) CompleteFadein()
func (*BasicWindow) Draw ¶
func (bw *BasicWindow) Draw(screen *ebiten.Image)
func (*BasicWindow) FadeIn ¶
func (bw *BasicWindow) FadeIn(timeInTick int)
func (*BasicWindow) FadeOut ¶
func (bw *BasicWindow) FadeOut(timeInTick int)
func (*BasicWindow) GetPalette ¶
func (bw *BasicWindow) GetPalette() []color.RGBA
func (*BasicWindow) ID ¶
func (bw *BasicWindow) ID() int
func (*BasicWindow) RemoveComponent ¶
func (bw *BasicWindow) RemoveComponent(c Component)
func (*BasicWindow) SetPalette ¶
func (bw *BasicWindow) SetPalette(plt []color.RGBA)
func (*BasicWindow) Timer ¶
func (bw *BasicWindow) Timer() *utils.TimerManager
func (*BasicWindow) Update ¶
func (bw *BasicWindow) Update() error
type Menu ¶
type Menu struct { BasicComponent OnSelect func(int) // contains filtered or unexported fields }
type ParentCom ¶
type ParentCom interface { Timer() *utils.TimerManager Notify(subId int, event ComEvent, msg any) }
Click to show internal directories.
Click to hide internal directories.