Documentation ¶
Index ¶
- Constants
- func DrawText(dst *ebiten.Image, str string, op *text.DrawOptions)
- type Context
- func (c *Context) Button(label string) Response
- func (c *Context) Checkbox(label string, state *bool) Response
- func (c *Context) Container(name string) *container
- func (c *Context) Control(idStr string, f func(r image.Rectangle) Response) Response
- func (c *Context) DrawControl(f func(screen *ebiten.Image))
- func (c *Context) Header(label string, expanded bool) Response
- func (c *Context) Label(text string)
- func (c *Context) LayoutColumn(f func())
- func (c *Context) Number(value *float64, step float64, digits int) Response
- func (c *Context) OpenPopup(name string)
- func (c *Context) Panel(name string, f func(layout Layout))
- func (c *Context) Popup(name string, f func(res Response, layout Layout))
- func (c *Context) SetFocus()
- func (c *Context) SetLayoutRow(widths []int, height int)
- func (c *Context) SetScroll(scroll image.Point)
- func (c *Context) Slider(value *float64, lo, hi float64, step float64, digits int) Response
- func (c *Context) Text(text string)
- func (c *Context) TextBox(buf *string) Response
- func (c *Context) TreeNode(label string, f func(res Response))
- func (c *Context) Window(title string, rect image.Rectangle, f func(res Response, layout Layout))
- type DebugUI
- type Layout
- type Response
Constants ¶
View Source
const ( ColorText = iota ColorBorder ColorWindowBG ColorTitleBG ColorTitleText ColorPanelBG ColorButton ColorButtonHover ColorButtonFocus ColorBase ColorBaseHover ColorBaseFocus ColorScrollBase ColorScrollThumb ColorMax = ColorScrollThumb )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) DrawControl ¶
func (c *Context) DrawControl(f func(screen *ebiten.Image))
func (*Context) LayoutColumn ¶
func (c *Context) LayoutColumn(f func())
func (*Context) SetLayoutRow ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.