Documentation ¶
Index ¶
- type Window
- func (w *Window) AddKeyboardHandler(handler func(event events.KeyboardEvent) error) error
- func (w *Window) AddMouseHandler(handler func(event events.MouseEvent) error) error
- func (w *Window) AddPanel(panel widgets.IPanel) error
- func (w *Window) Draw(screen *ebiten.Image)
- func (w *Window) FindWidgetForInput(x float64, y float64) (*widgets.IWidget, error)
- func (w *Window) FindWidgetRecursive(x float64, y float64, widget widgets.IWidget) widgets.IWidget
- func (w *Window) HandleButtonDownEvent(event events.MouseEvent) error
- func (w *Window) HandleButtonUpEvent(event events.MouseEvent) error
- func (w *Window) HandleEvent(event events.IEvent) error
- func (w *Window) HandleKeyboardEvent(event events.KeyboardEvent) error
- func (w *Window) Layout(outsideWidth, outsideHeight int) (int, int)
- func (w *Window) MainLoop() error
- func (w *Window) Update(screen *ebiten.Image) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct { // widget that has focus... I think that will do? FocusedWidget *widgets.IWidget // contains filtered or unexported fields }
Window used to define the UI window for the application. Currently will just cater for single window per app. This will be reviewed in the future.
func (*Window) AddKeyboardHandler ¶
func (w *Window) AddKeyboardHandler(handler func(event events.KeyboardEvent) error) error
func (*Window) AddMouseHandler ¶
func (w *Window) AddMouseHandler(handler func(event events.MouseEvent) error) error
func (*Window) FindWidgetForInput ¶
FindWidgetForInput Need to make recursive for panels in panels etc... but just leave pretty linear for now.
func (*Window) FindWidgetRecursive ¶
func (*Window) HandleButtonDownEvent ¶
func (w *Window) HandleButtonDownEvent(event events.MouseEvent) error
func (*Window) HandleButtonUpEvent ¶
func (w *Window) HandleButtonUpEvent(event events.MouseEvent) error
func (*Window) HandleKeyboardEvent ¶
func (w *Window) HandleKeyboardEvent(event events.KeyboardEvent) error
Click to show internal directories.
Click to hide internal directories.