Documentation ¶
Index ¶
- func DrawMenuBar(targImage *ebiten.Image, targColor color.Color, targFont *text.GoTextFace, ...)
- func MenuBarDetectClicked(column int, line int) bool
- func MenuBarDetectClickedByID(columnID string) bool
- func ReNewImg(image *ebiten.Image, targetwidth int, targetheight int, ...) *ebiten.Image
- func TransformColumn([]MenuBarColumn) []string
- type MenuBarColumn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawMenuBar ¶
func DrawMenuBar(targImage *ebiten.Image, targColor color.Color, targFont *text.GoTextFace, menuHeight int, menu ...[]MenuBarColumn)
func MenuBarDetectClicked ¶
func MenuBarDetectClickedByID ¶
make detection easier
func ReNewImg ¶
func ReNewImg(image *ebiten.Image, targetwidth int, targetheight int, targetcolor color.Color) *ebiten.Image
renew image. if same size, return same image
func TransformColumn ¶
func TransformColumn([]MenuBarColumn) []string
Types ¶
type MenuBarColumn ¶
type MenuBarColumn struct { // three column types currently avaliable: button, dropdown, separator ColumnType string // title of column ColumnName string // Information of column ColumnDesc string // if column type is button, other than 0 is ignored. // separator never has column. ColumnBase []MenuBarColumn // Detect if Button ColumnID string }
Click to show internal directories.
Click to hide internal directories.