material

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RigidButton

func RigidButton(th *giomat.Theme, caption string, button *widget.Clickable) l.FlexChild

RigidButton returns layout function for a button with inset

func RigidCheckBox added in v1.1.0

func RigidCheckBox(th *giomat.Theme, label string, checkbox *widget.Bool) l.FlexChild

RigidCheckBox returns layout function for a regular checkbox

func RigidEditor

func RigidEditor(th *giomat.Theme, caption string, hint string, editor *widget.Editor) l.FlexChild

RigidEditor returns layout function for labeled edit field

func RigidLabel

func RigidLabel(th *giomat.Theme, caption string) l.FlexChild

RigidLabel returns layout function for a regular label

func RigidSection

func RigidSection(th *giomat.Theme, caption string) l.FlexChild

RigidSection returns layout function for a form heading

func RigidSeparator added in v1.3.0

func RigidSeparator(th *giomat.Theme, separator *giox.Separator) l.FlexChild

RigidSeparator returns layout function for a regular separator

Types

type ComboStyle

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

ComboStyle holds combobox rendering parameters

func Combo

func Combo(theme *giomat.Theme, widget *giox.Combo) ComboStyle

Combo constructs c ComboStyle

func (ComboStyle) Layout

func (c ComboStyle) Layout(gtx l.Context) l.Dimensions

Layout a combobox

type SeparatorStyle added in v1.3.0

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

SeparatorStyle defines material rendering parameters for separator

func Separator added in v1.3.0

func Separator(theme *giomat.Theme, widget *giox.Separator) SeparatorStyle

Separator creates a material separator widget

func (SeparatorStyle) Layout added in v1.3.0

func (ss SeparatorStyle) Layout(gtx l.Context) l.Dimensions

Layout a separator

Jump to

Keyboard shortcuts

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