scifi

package
v0.0.0-...-e43d3ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var T = Theme{
	Palette: color.Palette{
		BackgroundColor:  color.NRGBA{R: 0, G: 0, B: 0, A: 255},
		BorderColor:      color.NRGBA{R: 0, G: 0, B: 0, A: 255},
		HighlightColor:   color.NRGBA{R: 0, G: 0, B: 0, A: 255},
		NoHighlightColor: color.NRGBA{R: 0, G: 0, B: 0, A: 255},
	},
	ButtonStyle: ButtonStyle{
		Outset: ebui.Outset{
			Top:    10,
			Bottom: 10,
			Left:   10,
			Right:  10,
		},
		Background: BackgroundColor,
		Border:     BorderColor,
		Highlight:  HighlightColor,
	},
}

Functions

func Font

func Font(id FontID) font.Face

Types

type Button

type Button struct {
	Style  ButtonStyle
	Click  ebui.Clickable
	Widget ebui.Widget
}

func (*Button) Draw

func (b *Button) Draw(screen *ebiten.Image, viewport image.Rectangle)

func (*Button) Size

func (b *Button) Size(viewsize image.Point) image.Point

type ButtonStyle

type ButtonStyle struct {
	ebui.Outset
	Background ColorID
	Border     ColorID
	Highlight  ColorID
}

type Checkbox

type Checkbox struct {
}

type ColorID

type ColorID uint8
const (
	BackgroundColor ColorID = iota
	BorderColor
	HighlightColor
	NoHighlightColor
)

type Combobox

type Combobox struct {
}

type FontID

type FontID uint8

FontID allows using pre-packaged fonts.

const (
	X12y20pxScanLine FontID = iota
)

type ProgressBar

type ProgressBar struct {
}

type RadioButton

type RadioButton struct {
}

type Scrollbar

type Scrollbar struct {
}

type Slider

type Slider struct {
}

type Spinner

type Spinner struct {
}

type Tabs

type Tabs struct {
}

type Theme

type Theme struct {
	color.Palette
	ButtonStyle
}

type Tree

type Tree struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL