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 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) 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.