Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultAtlasRects = []microui.Rect{
{},
iconClose,
iconResize,
iconCheck,
iconCollapsed,
iconExpanded,
atlasWhite,
}
)
Functions ¶
func RemoveAllFonts ¶
func RemoveAllFonts()
func RemoveFont ¶
func RemoveFont(f Font)
Types ¶
type Driver ¶
type Driver interface { UpdateInputs() Draw(screen *ebiten.Image) DefaultFont() Font }
type DriverOption ¶
type DriverOption func(*driverOptions)
func WithAtlasTexture ¶
func WithAtlasTexture(tex *ebiten.Image) DriverOption
func WithDefaultFont ¶
func WithDefaultFont(f Font) DriverOption
func WithScrollMultiplier ¶
func WithScrollMultiplier(x, y float64) DriverOption
type Font ¶
type FontFaceWrapper ¶
type FontFaceWrapper struct { FontBase font.Face OffsetX int OffsetY int GetTextWidth func(text string) int32 GetTextHeight func() int32 }
func (*FontFaceWrapper) Draw ¶
func (w *FontFaceWrapper) Draw(dst *ebiten.Image, tx string, x, y int, clr color.Color)
func (*FontFaceWrapper) TextHeight ¶
func (w *FontFaceWrapper) TextHeight() int32
func (*FontFaceWrapper) TextWidth ¶
func (w *FontFaceWrapper) TextWidth(str string) int32
Click to show internal directories.
Click to hide internal directories.