image

package
v0.0.0-...-8e5a076 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultStyle = &Style{}

Functions

func New

func New(key string, props Props) node.T

Types

type Props

type Props struct {
	Style   Style
	Image   assets.Texture
	OnClick mouse.Callback
}

type Style

type Style struct {
	Extends *Style

	Hidden bool

	Width     WidthProp
	MaxWidth  MaxWidthProp
	Height    HeightProp
	MaxHeight MaxHeightProp

	Basis  BasisProp
	Grow   FlexGrowProp
	Shrink FlexShrinkProp
}

func (*Style) Apply

func (style *Style) Apply(w T, state State)

type T

type T interface {
	widget.T
	Image() assets.Texture
}

Jump to

Keyboard shortcuts

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