shellsui

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LabelSize float32 = 16
View Source
const WMargin float32 = 10

Variables

This section is empty.

Functions

func GetMainContainer

func GetMainContainer(content *fyne.Container) *fyne.Container

func GetMarginRectangle

func GetMarginRectangle() *canvas.Rectangle

func GetMarginRectangleWithHeight

func GetMarginRectangleWithHeight(height int) *canvas.Rectangle

func GetMarginRectangleWithWidth

func GetMarginRectangleWithWidth(width int) *canvas.Rectangle

func GetShellsLabel

func GetShellsLabel(text string) *canvas.Text

Types

type SocialButton

type SocialButton struct {
	widget.Button
	// contains filtered or unexported fields
}

func NewSocialButton

func NewSocialButton(icon fyne.Resource, color color.Color, tapped func()) *SocialButton

func (*SocialButton) CreateRenderer

func (b *SocialButton) CreateRenderer() fyne.WidgetRenderer

CreateRenderer is a private method to Fyne which links this widget to its renderer

type ToggleButton

type ToggleButton struct {
	widget.Button
	// contains filtered or unexported fields
}

func NewToggleButton

func NewToggleButton(text string, icon fyne.Resource, textToggled string, iconToggled fyne.Resource, initState bool, tapped func()) *ToggleButton

func (*ToggleButton) Tapped

func (b *ToggleButton) Tapped(*fyne.PointEvent)

Jump to

Keyboard shortcuts

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