card

package
v0.0.0-...-c4a1d86 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	Theme *cleantheme.Theme
	Title string
	// contains filtered or unexported fields
}

A Card displays a card as in e.g. a BI application, i.e. a title with a value (and a min and max).

func New

func New(title string, theme *cleantheme.Theme) *Card

New creates a new Card.

func (*Card) Layout

func (c *Card) Layout(gtx *layout.Context)

Layout draws the Card as a Gio widget

func (*Card) UpdateValue

func (c *Card) UpdateValue(val float64)

UpdateValue sets the value the widget should show

Jump to

Keyboard shortcuts

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