Documentation
¶
Index ¶
- Variables
- func AttachH(imgs ...*ebiten.Image) *ebiten.Image
- func AttachV(imgs ...*ebiten.Image) *ebiten.Image
- func LoadFontFromFile(path string, op *truetype.Options) font.Face
- func RenderBox(size image.Point, clr color.Color) *ebiten.Image
- func RenderText(s string, font font.Face, clr color.Color) *ebiten.Image
- func RenderTextBox(t *ebiten.Image, clr color.Color) *ebiten.Image
- type Button
- type Checkbox
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ImgUncheckedBox *ebiten.Image ImgCheckedBox *ebiten.Image )
View Source
var ( MplusNormalFont font.Face MplusBigFont font.Face )
Functions ¶
func AttachH ¶
AttachH attaches input images horizontally. AttachH supposes all input images have proper height.
func AttachV ¶
AttachV attaches input images vertically. AttachV supposes all input images have proper width.
func RenderText ¶
todo: it fails to render string when it is multiple-lines todo: numbers and normal words are not coherently rendered
Types ¶
type Button ¶
type Button struct { MinPt image.Point Image *ebiten.Image // contains filtered or unexported fields }
func (*Button) SetOnPressed ¶
type Checkbox ¶
type Checkbox struct { MinPt image.Point Text *ebiten.Image // contains filtered or unexported fields }
Checkbox is a struct for implementing a checkbox. Checkbox consists of padded checkbox image and text image. The font of Text is fixed, including text size.
func (*Checkbox) SetOnChanged ¶
Click to show internal directories.
Click to hide internal directories.