Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ButtonStyle ¶
type ButtonStyle struct { Text string Color color.NRGBA Font text.Font TextSize unit.Sp Background color.NRGBA CornerRadius unit.Dp Inset layout.Inset Button *widget.Clickable // contains filtered or unexported fields }
func (ButtonStyle) Layout ¶
func (b ButtonStyle) Layout(gtx layout.Context) layout.Dimensions
type ContentWidthStyle ¶
func ContentWidth ¶
func ContentWidth(th *material.Theme) ContentWidthStyle
func (ContentWidthStyle) Layout ¶
func (maxWidth ContentWidthStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
type DurationEditorStyle ¶
type DurationEditorStyle struct { Caption material.LabelStyle Value *Duration Editor material.EditorStyle Min time.Duration Max time.Duration }
func DurationEditor ¶
func (DurationEditorStyle) Layout ¶
func (edit DurationEditorStyle) Layout(gtx layout.Context) layout.Dimensions
type PanelStyle ¶
type PanelStyle struct {
Caption material.LabelStyle
}
func (PanelStyle) Layout ¶
func (p PanelStyle) Layout(gtx layout.Context, ws ...layout.Widget) layout.Dimensions
type PxEditorStyle ¶
type PxEditorStyle struct { Caption material.LabelStyle Value *Px Editor material.EditorStyle Min float32 Max float32 }
func (PxEditorStyle) Layout ¶
func (edit PxEditorStyle) Layout(gtx layout.Context) layout.Dimensions
type RoundBoxStyle ¶
func RoundBox ¶
func RoundBox(bg color.NRGBA) RoundBoxStyle
func (RoundBoxStyle) Layout ¶
func (b RoundBoxStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
type SidePanelStyle ¶
type SidePanelStyle struct {
ContentWidth ContentWidthStyle
}
func SidePanel ¶
func SidePanel(th *material.Theme) SidePanelStyle
func (SidePanelStyle) Layout ¶
func (p SidePanelStyle) Layout(gtx layout.Context, ws ...layout.Widget) layout.Dimensions
type SpinnerStyle ¶
func (SpinnerStyle) Layout ¶
func (spin SpinnerStyle) Layout(gtx layout.Context) layout.Dimensions
type StackStyle ¶
type StackStyle struct {
Gap Gap
}
func Stack ¶
func Stack(gap Gap) StackStyle
func (StackStyle) Layout ¶
func (stack StackStyle) Layout(gtx layout.Context, ws ...layout.Widget) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.