Documentation ¶
Index ¶
- func NewVizTheme() fyne.Theme
- type VizButton
- func (b *VizButton) CreateRenderer() fyne.WidgetRenderer
- func (b *VizButton) DragEnd()
- func (b *VizButton) Dragged(d *fyne.DragEvent)
- func (b *VizButton) MouseDown(ev *desktop.MouseEvent)
- func (b *VizButton) MouseUp(ev *desktop.MouseEvent)
- func (b *VizButton) SetIcon(icon fyne.Resource)
- func (b *VizButton) SetText(text string)
- func (b *VizButton) Tapped(ev *fyne.PointEvent)
- func (b *VizButton) TappedSecondary(ev *fyne.PointEvent)
- type VizTheme
- func (VizTheme) BackgroundColor() color.Color
- func (VizTheme) ButtonColor() color.Color
- func (VizTheme) DisabledButtonColor() color.Color
- func (VizTheme) DisabledIconColor() color.Color
- func (VizTheme) DisabledTextColor() color.Color
- func (VizTheme) FocusColor() color.Color
- func (VizTheme) HoverColor() color.Color
- func (VizTheme) HyperlinkColor() color.Color
- func (VizTheme) IconColor() color.Color
- func (VizTheme) IconInlineSize() int
- func (VizTheme) Padding() int
- func (VizTheme) PlaceHolderColor() color.Color
- func (VizTheme) PrimaryColor() color.Color
- func (VizTheme) ScrollBarColor() color.Color
- func (VizTheme) ScrollBarSize() int
- func (VizTheme) ScrollBarSmallSize() int
- func (VizTheme) ShadowColor() color.Color
- func (VizTheme) TextBoldFont() fyne.Resource
- func (VizTheme) TextBoldItalicFont() fyne.Resource
- func (VizTheme) TextColor() color.Color
- func (VizTheme) TextFont() fyne.Resource
- func (VizTheme) TextItalicFont() fyne.Resource
- func (VizTheme) TextMonospaceFont() fyne.Resource
- func (VizTheme) TextSize() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VizButton ¶
type VizButton struct { widget.BaseWidget // contains filtered or unexported fields }
VizButton widget is a button that gets MouseDown/Up events
func NewVizButton ¶
NewVizButton creates a new button widget with the specified label, themed icon and tap handler
func (*VizButton) CreateRenderer ¶
func (b *VizButton) CreateRenderer() fyne.WidgetRenderer
CreateRenderer is
func (*VizButton) SetIcon ¶
SetIcon updates the icon on a label - pass nil to hide an icon XXX - keep this around for updating background color, perhaps
func (*VizButton) Tapped ¶
func (b *VizButton) Tapped(ev *fyne.PointEvent)
Tapped is called when a regular tap is reported
func (*VizButton) TappedSecondary ¶
func (b *VizButton) TappedSecondary(ev *fyne.PointEvent)
TappedSecondary is called when an alternative tap is reported
type VizTheme ¶
type VizTheme struct { }
VizTheme is a simple demonstration of a bespoke theme loaded by a Fyne app.
func (VizTheme) DisabledButtonColor ¶
DisabledButtonColor is
func (VizTheme) DisabledIconColor ¶
DisabledIconColor is
func (VizTheme) DisabledTextColor ¶
DisabledTextColor is
func (VizTheme) PlaceHolderColor ¶
PlaceHolderColor is
func (VizTheme) TextBoldItalicFont ¶
TextBoldItalicFont is
func (VizTheme) TextMonospaceFont ¶
TextMonospaceFont is
Click to show internal directories.
Click to hide internal directories.