gui

package
v0.0.0-...-d0979cb Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVizTheme

func NewVizTheme() fyne.Theme

NewVizTheme xxx

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

func NewVizButton(label string, tap func(bool)) *VizButton

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 xxx

func (*VizButton) DragEnd

func (b *VizButton) DragEnd()

DragEnd xxx

func (*VizButton) Dragged

func (b *VizButton) Dragged(d *fyne.DragEvent)

Dragged xxx

func (*VizButton) MouseDown

func (b *VizButton) MouseDown(ev *desktop.MouseEvent)

MouseDown xxx

func (*VizButton) MouseUp

func (b *VizButton) MouseUp(ev *desktop.MouseEvent)

MouseUp xxx

func (*VizButton) SetIcon

func (b *VizButton) SetIcon(icon fyne.Resource)

SetIcon updates the icon on a label - pass nil to hide an icon XXX - keep this around for updating background color, perhaps

func (*VizButton) SetText

func (b *VizButton) SetText(text string)

SetText allows the button label to be changed

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) BackgroundColor

func (VizTheme) BackgroundColor() color.Color

BackgroundColor xxx

func (VizTheme) ButtonColor

func (VizTheme) ButtonColor() color.Color

ButtonColor xxx

func (VizTheme) DisabledButtonColor

func (VizTheme) DisabledButtonColor() color.Color

DisabledButtonColor xxx

func (VizTheme) DisabledIconColor

func (VizTheme) DisabledIconColor() color.Color

DisabledIconColor xxx

func (VizTheme) DisabledTextColor

func (VizTheme) DisabledTextColor() color.Color

DisabledTextColor xxx

func (VizTheme) FocusColor

func (VizTheme) FocusColor() color.Color

FocusColor xxx

func (VizTheme) HoverColor

func (VizTheme) HoverColor() color.Color

HoverColor xxx

func (VizTheme) HyperlinkColor

func (VizTheme) HyperlinkColor() color.Color

HyperlinkColor xxx

func (VizTheme) IconColor

func (VizTheme) IconColor() color.Color

IconColor xxx

func (VizTheme) IconInlineSize

func (VizTheme) IconInlineSize() int

IconInlineSize xxx

func (VizTheme) Padding

func (VizTheme) Padding() int

Padding xxx

func (VizTheme) PlaceHolderColor

func (VizTheme) PlaceHolderColor() color.Color

PlaceHolderColor xxx

func (VizTheme) PrimaryColor

func (VizTheme) PrimaryColor() color.Color

PrimaryColor xxx

func (VizTheme) ScrollBarColor

func (VizTheme) ScrollBarColor() color.Color

ScrollBarColor xxx

func (VizTheme) ScrollBarSize

func (VizTheme) ScrollBarSize() int

ScrollBarSize xxx

func (VizTheme) ScrollBarSmallSize

func (VizTheme) ScrollBarSmallSize() int

ScrollBarSmallSize xxx

func (VizTheme) ShadowColor

func (VizTheme) ShadowColor() color.Color

ShadowColor xxx

func (VizTheme) TextBoldFont

func (VizTheme) TextBoldFont() fyne.Resource

TextBoldFont xxx

func (VizTheme) TextBoldItalicFont

func (VizTheme) TextBoldItalicFont() fyne.Resource

TextBoldItalicFont xxx

func (VizTheme) TextColor

func (VizTheme) TextColor() color.Color

TextColor xxx

func (VizTheme) TextFont

func (VizTheme) TextFont() fyne.Resource

TextFont xxx

func (VizTheme) TextItalicFont

func (VizTheme) TextItalicFont() fyne.Resource

TextItalicFont xxx

func (VizTheme) TextMonospaceFont

func (VizTheme) TextMonospaceFont() fyne.Resource

TextMonospaceFont xxx

func (VizTheme) TextSize

func (VizTheme) TextSize() int

TextSize xxx

Jump to

Keyboard shortcuts

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