utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIPAddress

func ConvertIPAddress(addrs []net.Addr) []string

func GetComputerName

func GetComputerName() string

func GetIPAddress

func GetIPAddress() []string

func GetIPAddressObject added in v1.3.1

func GetIPAddressObject() []map[string]string

Now lets make a function to return them as an object with separate name and IP address fields

Types

type ClickableText added in v1.3.1

type ClickableText struct {
	widget.BaseWidget

	Text *canvas.Text
	// contains filtered or unexported fields
}

func NewClickableText added in v1.3.1

func NewClickableText(text string) *ClickableText

func (*ClickableText) CreateRenderer added in v1.3.1

func (ct *ClickableText) CreateRenderer() fyne.WidgetRenderer

func (*ClickableText) Tapped added in v1.3.1

func (ct *ClickableText) Tapped(_ *fyne.PointEvent)

type Theme added in v1.3.1

type Theme struct{}

func (Theme) Color added in v1.3.1

func (m Theme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color

func (Theme) Font added in v1.3.1

func (m Theme) Font(style fyne.TextStyle) fyne.Resource

func (Theme) GetColor added in v1.3.1

func (m Theme) GetColor(name string) color.Color

func (Theme) Icon added in v1.3.1

func (m Theme) Icon(name fyne.ThemeIconName) fyne.Resource

func (Theme) Size added in v1.3.1

func (m Theme) Size(name fyne.ThemeSizeName) float32

Jump to

Keyboard shortcuts

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