Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonOption ¶
type ButtonOption func(*ButtonStyle)
func WithBgColor ¶
func WithBgColor(c color.NRGBA) ButtonOption
func WithIcon ¶
func WithIcon(icon *widget.Icon) ButtonOption
func WithIconColor ¶
func WithIconColor(c color.NRGBA) ButtonOption
func WithInset ¶
func WithInset(inset layout.Inset) ButtonOption
func WithSize ¶
func WithSize(sz unit.Value) ButtonOption
type ButtonStyle ¶
type ButtonStyle struct { material.IconButtonStyle material.ButtonStyle }
ButtonStyle provides a unified api for both icon buttons and text buttons.
func Button ¶
func Button( state *widget.Clickable, opt ...ButtonOption, ) ButtonStyle
Button renders a clickable button.
func (ButtonStyle) Layout ¶
func (btn ButtonStyle) Layout(gtx C) D
type D ¶
type D = layout.Dimensions
Click to show internal directories.
Click to hide internal directories.