Documentation
¶
Index ¶
- Constants
- func DrawText(dst *ebiten.Image, str string, op *text.DrawOptions)
- type Container
- 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(id ID, opt Option, f func(r image.Rectangle) Response) Response
- func (c *Context) CurrentContainer() *Container
- func (c *Context) Draw(screen *ebiten.Image)
- func (c *Context) DrawControl(f func(screen *ebiten.Image))
- func (c *Context) Header(label string) Response
- func (c *Context) HeaderEx(label string, opt Option) Response
- func (c *Context) Label(text string)
- func (c *Context) LayoutColumn(f func())
- func (c *Context) Number(value *float64, step float64) Response
- func (c *Context) NumberEx(value *float64, step float64, format string, opt Option) Response
- func (c *Context) OpenPopup(name string)
- func (c *Context) Panel(name string, f func())
- func (c *Context) Popup(name string, f func(res Response))
- func (c *Context) SetFocus(id ID)
- func (c *Context) SetLayoutRow(widths []int, height int)
- func (c *Context) Slider(value *float64, lo, hi float64) Response
- func (c *Context) SliderEx(value *float64, low, high, step float64, format string, opt Option) 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) Update(f func())
- func (c *Context) Window(title string, rect image.Rectangle, f func(res Response))
- type ID
- type Option
- type Response
- type Style
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 ¶
func NewContext ¶
func NewContext() *Context
func (*Context) CurrentContainer ¶
func (*Context) DrawControl ¶
func (*Context) LayoutColumn ¶
func (c *Context) LayoutColumn(f func())
func (*Context) SetLayoutRow ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.