gt_button

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GTButton

type GTButton struct {
	widget.BaseWidget
	Id              string
	Text            string
	BackgroundColor color.Color
	TextColor       color.Color
	OnTapped        func(btn *GTButton)
}

func NewGTButton

func NewGTButton(text string, size fyne.Size, backgroundColor, textColor color.Color, onTapped func(btn *GTButton)) *GTButton

NewGTButton 请使用这种方式初始化,直接用结构体初始化不会产生 Id 等扩展字段

func (*GTButton) CreateRenderer

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

func (*GTButton) Tapped

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

Jump to

Keyboard shortcuts

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