widget

package
v0.0.0-...-967bb3a Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Border

type Border struct {
	Color        color.NRGBA
	CornerRadius unit.Value
	Width        unit.Value
}

func (Border) AddLayout

func (x Border) AddLayout(b *flatbuffers.Builder, o *op.Ops, widget op.Ops) op.Ops

func (Border) CreateLayout

func (x Border) CreateLayout(b *flatbuffers.Builder, widget op.Ops) op.Op

type Fit

type Fit = flat.WidgetFit

type Icon

type Icon struct {
	resource.Resource
	// contains filtered or unexported fields
}

func NewIcon

func NewIcon(c *resource.Context, id string, data []byte) *Icon

func (Icon) AddLayout

func (x Icon) AddLayout(b *flatbuffers.Builder, o *op.Ops, color color.NRGBA) op.Ops

func (Icon) CreateLayout

func (x Icon) CreateLayout(b *flatbuffers.Builder, color color.NRGBA) op.Op

type Image

type Image struct {
	Src      paint.ImageOp
	Fit      Fit
	Position layout.Direction
	Scale    float32
}

func (Image) AddLayout

func (x Image) AddLayout(b *flatbuffers.Builder, o *op.Ops) op.Ops

func (Image) CreateLayout

func (x Image) CreateLayout(b *flatbuffers.Builder) op.Op

type Label

type Label struct {
	Alignment text.Alignment
	MaxLines  int32
}

func (Label) AddLayout

func (x Label) AddLayout(b *flatbuffers.Builder, o *op.Ops, font text.Font, size unit.Value, txt string) op.Ops

func (Label) CreateLayout

func (x Label) CreateLayout(b *flatbuffers.Builder, font text.Font, size unit.Value, txt string) op.Op

Jump to

Keyboard shortcuts

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