component

package
v0.0.0-...-a5d0d41 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewButton

func NewButton(core common.Core) common.Component

func NewFlexContainer

func NewFlexContainer(initial common.FlexLayout) common.Factory

func NewGridContainer

func NewGridContainer(cols int, gap int) common.Factory

func NewImage

func NewImage(core common.Core) common.Component

func NewRect

func NewRect(core common.Core) common.Component

func NewText

func NewText(core common.Core) common.Component

Types

type Button

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

func (*Button) Core

func (b *Button) Core() *common.Core

func (*Button) Destroy

func (b *Button) Destroy()

func (*Button) Mount

func (b *Button) Mount()

func (*Button) OnClick

func (b *Button) OnClick(clickFn func())

func (*Button) SetText

func (b *Button) SetText(text string)

func (*Button) Text

func (b *Button) Text() string

func (*Button) Update

func (b *Button) Update()

type Container

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

func (*Container) Add

func (c *Container) Add(factory common.Factory) common.Component

func (*Container) Core

func (c *Container) Core() *common.Core

func (*Container) Destroy

func (c *Container) Destroy()

func (*Container) Mount

func (c *Container) Mount()

func (*Container) SetLayout

func (c *Container) SetLayout(options common.LayoutOptions)

func (*Container) Update

func (c *Container) Update()

type Image

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

func (*Image) Core

func (i *Image) Core() *common.Core

func (*Image) Destroy

func (i *Image) Destroy()

func (*Image) Mount

func (i *Image) Mount()

func (*Image) SetImage

func (i *Image) SetImage(image *ebiten.Image)

func (*Image) Update

func (i *Image) Update()

type Rect

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

func (*Rect) Core

func (rect *Rect) Core() *common.Core

func (*Rect) Destroy

func (rect *Rect) Destroy()

func (*Rect) GetBorder

func (rect *Rect) GetBorder() int

func (*Rect) GetBorderColor

func (rect *Rect) GetBorderColor() color.RGBA

func (*Rect) GetColor

func (rect *Rect) GetColor() color.RGBA

func (*Rect) Mount

func (rect *Rect) Mount()

func (*Rect) SetBorder

func (rect *Rect) SetBorder(b int)

func (*Rect) SetBorderColor

func (rect *Rect) SetBorderColor(c color.RGBA)

func (*Rect) SetColor

func (rect *Rect) SetColor(c color.RGBA)

func (*Rect) Update

func (rect *Rect) Update()

type Text

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

func (*Text) Color

func (t *Text) Color() color.Color

func (*Text) Core

func (t *Text) Core() *common.Core

func (*Text) Destroy

func (t *Text) Destroy()

func (*Text) Font

func (t *Text) Font() string

func (*Text) FontSize

func (t *Text) FontSize() float64

func (*Text) LineHeight

func (t *Text) LineHeight() float64

func (*Text) Mount

func (t *Text) Mount()

func (*Text) SetColor

func (t *Text) SetColor(c color.Color)

func (*Text) SetFont

func (t *Text) SetFont(font string)

func (*Text) SetFontSize

func (t *Text) SetFontSize(size float64)

func (*Text) SetLineHeight

func (t *Text) SetLineHeight(size float64)

func (*Text) SetText

func (t *Text) SetText(text string)

func (*Text) Text

func (t *Text) Text() string

func (*Text) Update

func (t *Text) Update()

Jump to

Keyboard shortcuts

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