eui

package
v0.0.0-...-a4c0b9d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoolSelectButton

func NewBoolSelectButton(config BoolSelectButtonConfig) *widget.Button

func NewButton

func NewButton(res *Resources, text string, onclick func()) *widget.Button

func NewButtonWithConfig

func NewButtonWithConfig(res *Resources, config ButtonConfig) *widget.Button

func NewCenteredLabel

func NewCenteredLabel(text string, ff font.Face) *widget.Text

func NewCenteredLabelWithMaxWidth

func NewCenteredLabelWithMaxWidth(text string, ff font.Face, width float64) *widget.Text

func NewColoredLabel

func NewColoredLabel(text string, ff font.Face, clr color.RGBA, options ...widget.TextOpt) *widget.Text

func NewFunctionInput

func NewFunctionInput(res *Resources, config FunctionInputConfig) *widget.TextInput

func NewLabel

func NewLabel(text string, ff font.Face, options ...widget.TextOpt) *widget.Text

func NewPanel

func NewPanel(res *Resources, minWidth, minHeight int) *widget.Container

func NewPanelWithPadding

func NewPanelWithPadding(res *Resources, minWidth, minHeight int, padding widget.Insets) *widget.Container

func NewRowLayoutContainerWithMinWidth

func NewRowLayoutContainerWithMinWidth(minWidth, spacing int, rowscale []bool) *widget.Container

func NewSelectButton

func NewSelectButton(config SelectButtonConfig) *widget.Button

func NewSeparator

func NewSeparator(ld interface{}, clr color.RGBA) widget.PreferredSizeLocateableWidget

func NewTextButton

func NewTextButton(res *Resources, text string, onclick func()) *widget.Button

func NewTextInput

func NewTextInput(res *Resources, opts ...widget.TextInputOpt) *widget.TextInput

func NewTooltip

func NewTooltip(res *Resources, text string) *widget.Container

Types

type BoolSelectButtonConfig

type BoolSelectButtonConfig struct {
	Resources *Resources

	Value      *bool
	Label      string
	ValueNames []string

	MinWidth int

	Tooltip *widget.Container

	OnPressed func()
	OnHover   func()
}

type ButtonConfig

type ButtonConfig struct {
	Text          string
	TextAlignLeft bool
	TextAltColor  bool
	OnClick       func()
	TooltipLabel  string
	LayoutData    any
	MinWidth      int
	Font          font.Face
}

type FunctionInputConfig

type FunctionInputConfig struct {
	MinWidth      int
	TooltipLabel  string
	MaxTextLength int
	OnChange      func(s string)
}

type ImageButton

type ImageButton struct {
	GraphicWidget *widget.Graphic
	Widget        widget.PreferredSizeLocateableWidget
}

func NewImageButton

func NewImageButton(res *Resources, img *ebiten.Image, config ButtonConfig) ImageButton

type Resources

type Resources struct {
	// contains filtered or unexported fields
}

func PrepareResources

func PrepareResources(loader *resource.Loader) *Resources

type SceneObject

type SceneObject struct {
	// contains filtered or unexported fields
}

func NewSceneObject

func NewSceneObject(root *widget.Container) *SceneObject

func (*SceneObject) Draw

func (o *SceneObject) Draw(screen *ebiten.Image)

func (*SceneObject) Init

func (o *SceneObject) Init(scene *ge.Scene)

func (*SceneObject) IsDisposed

func (o *SceneObject) IsDisposed() bool

func (*SceneObject) Update

func (o *SceneObject) Update(delta float64)

type SelectButtonConfig

type SelectButtonConfig struct {
	Resources *Resources
	Input     *input.Handler

	Value          *int
	Label          string
	ValueNames     []string
	DisabledValues []int

	MinWidth int

	Tooltip *widget.Container

	OnPressed func()
	OnHover   func()
}

Jump to

Keyboard shortcuts

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