button

package
v0.9.4-beta Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Max = image.Pt(100, 35)

Functions

This section is empty.

Types

type Button

type Button struct {
	Text                          string
	TextSize                      unit.Value
	TextOffsetTop, TextOffsetLeft float32
	BorderWidth                   unit.Value

	Size image.Point

	Active            bool
	Disabled          bool
	LastPressed       time.Time
	Pressed, Released color.NRGBA

	Click func()
	// contains filtered or unexported fields
}

func (*Button) Error

func (b *Button) Error()

func (*Button) Layout

func (b *Button) Layout(gtx layout.Context) layout.Dimensions

type Image

type Image struct {
	*screen.Screen
	Click func()
	Hide  bool
}

func (*Image) Layout

func (i *Image) Layout(th *material.Theme, gtx layout.Context) layout.Dimensions

func (*Image) SetImage

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

Jump to

Keyboard shortcuts

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