Documentation
¶
Overview ¶
Package ebitenui contains the main UI type that renders a complete user interface.
Index ¶
- type UI
- func (u *UI) AddWindow(w *widget.Window) widget.RemoveWindowFunc
- func (u *UI) ChangeFocus(direction widget.FocusDirection)
- func (u *UI) ClearFocus()
- func (u *UI) Draw(screen *ebiten.Image)
- func (u *UI) GetFocusedWidget() widget.Focuser
- func (u *UI) HasFocus() bool
- func (u *UI) IsWindowOpen(w *widget.Window) bool
- func (u *UI) Update()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UI ¶
type UI struct { // Container is the root container of the UI hierarchy. Container *widget.Container //If true the default tab/shift-tab to focus will be disabled DisableDefaultFocus bool // contains filtered or unexported fields }
UI encapsulates a complete user interface that can be rendered onto the screen. There should only be exactly one UI per application.
func (*UI) AddWindow ¶
func (u *UI) AddWindow(w *widget.Window) widget.RemoveWindowFunc
AddWindow adds window w to ui for rendering. It returns a function to remove w from ui.
func (*UI) ChangeFocus ¶
func (u *UI) ChangeFocus(direction widget.FocusDirection)
func (*UI) ClearFocus ¶
func (u *UI) ClearFocus()
func (*UI) Draw ¶
func (u *UI) Draw(screen *ebiten.Image)
Draw renders u onto screen. This function should be called in the Ebiten Draw function.
func (*UI) GetFocusedWidget ¶
Directories
¶
Path | Synopsis |
---|---|
_examples
|
|
Package event contains types to deal with firing and handling events.
|
Package event contains types to deal with firing and handling events. |
Package image contains types to deal with nine-slice images, buffered (cached) images, as well as drawing using masks.
|
Package image contains types to deal with nine-slice images, buffered (cached) images, as well as drawing using masks. |
Package input deals with user input such as mouse button clicks, scroll wheel movement etc.
|
Package input deals with user input such as mouse button clicks, scroll wheel movement etc. |
utilities
|
|
Package widget contains various widget implementations such as buttons, checkboxes, combo boxes, lists etc.
|
Package widget contains various widget implementations such as buttons, checkboxes, combo boxes, lists etc. |
Click to show internal directories.
Click to hide internal directories.