gui

package
v0.0.0-...-075f868 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 is

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 is

func (*VizButton) DragEnd

func (b *VizButton) DragEnd()

DragEnd is

func (*VizButton) Dragged

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

Dragged is

func (*VizButton) MouseDown

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

MouseDown is

func (*VizButton) MouseUp

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

MouseUp is

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 is

func (VizTheme) ButtonColor

func (VizTheme) ButtonColor() color.Color

ButtonColor is

func (VizTheme) DisabledButtonColor

func (VizTheme) DisabledButtonColor() color.Color

DisabledButtonColor is

func (VizTheme) DisabledIconColor

func (VizTheme) DisabledIconColor() color.Color

DisabledIconColor is

func (VizTheme) DisabledTextColor

func (VizTheme) DisabledTextColor() color.Color

DisabledTextColor is

func (VizTheme) FocusColor

func (VizTheme) FocusColor() color.Color

FocusColor is

func (VizTheme) HoverColor

func (VizTheme) HoverColor() color.Color

HoverColor is

func (VizTheme) HyperlinkColor

func (VizTheme) HyperlinkColor() color.Color

HyperlinkColor is

func (VizTheme) IconColor

func (VizTheme) IconColor() color.Color

IconColor is

func (VizTheme) IconInlineSize

func (VizTheme) IconInlineSize() int

IconInlineSize is

func (VizTheme) Padding

func (VizTheme) Padding() int

Padding is

func (VizTheme) PlaceHolderColor

func (VizTheme) PlaceHolderColor() color.Color

PlaceHolderColor is

func (VizTheme) PrimaryColor

func (VizTheme) PrimaryColor() color.Color

PrimaryColor is

func (VizTheme) ScrollBarColor

func (VizTheme) ScrollBarColor() color.Color

ScrollBarColor is

func (VizTheme) ScrollBarSize

func (VizTheme) ScrollBarSize() int

ScrollBarSize is

func (VizTheme) ScrollBarSmallSize

func (VizTheme) ScrollBarSmallSize() int

ScrollBarSmallSize is

func (VizTheme) ShadowColor

func (VizTheme) ShadowColor() color.Color

ShadowColor is

func (VizTheme) TextBoldFont

func (VizTheme) TextBoldFont() fyne.Resource

TextBoldFont is

func (VizTheme) TextBoldItalicFont

func (VizTheme) TextBoldItalicFont() fyne.Resource

TextBoldItalicFont is

func (VizTheme) TextColor

func (VizTheme) TextColor() color.Color

TextColor is

func (VizTheme) TextFont

func (VizTheme) TextFont() fyne.Resource

TextFont is

func (VizTheme) TextItalicFont

func (VizTheme) TextItalicFont() fyne.Resource

TextItalicFont is

func (VizTheme) TextMonospaceFont

func (VizTheme) TextMonospaceFont() fyne.Resource

TextMonospaceFont is

func (VizTheme) TextSize

func (VizTheme) TextSize() int

TextSize is

Jump to

Keyboard shortcuts

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