Documentation ¶
Overview ¶
Package ebitenui contains the main UI type that renders a complete user interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoveWindowFunc ¶
type RemoveWindowFunc func()
RemoveWindowFunc is a function to remove a Window from rendering.
type UI ¶
type UI struct { // Container is the root container of the UI hierarchy. Container *widget.Container // ToolTip is used to render mouse hover tool tips. It may be nil to disable rendering. ToolTip *widget.ToolTip // DragAndDrop is used to render drag widgets while dragging and dropping. It may be nil to disable rendering. DragAndDrop *widget.DragAndDrop // 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) RemoveWindowFunc
AddWindow adds window w to u for rendering. It returns a function to remove w from u.
Directories ¶
Path | Synopsis |
---|---|
_demo
module
|
|
_scaffold
module
|
|
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. |
internal
|
|
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.