mywidgets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextMenuButton

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

ContextMenuButton : Drop Down Menu

func NewContextMenu

func NewContextMenu(icon fyne.Resource, m *fyne.Menu) *ContextMenuButton

NewContextMenu ...

func (*ContextMenuButton) Tapped

func (C *ContextMenuButton) Tapped(e *fyne.PointEvent)

Tapped : Mouse Event

func (*ContextMenuButton) TappedSecondary

func (C *ContextMenuButton) TappedSecondary(*fyne.PointEvent)

Tapped : Right Click Mouse Event

type CustomButton

type CustomButton struct {
	widget.BaseWidget
	Text      string
	TextSize  float32
	Alignment fyne.TextAlign
	TextStyle fyne.TextStyle
	FillColor color.Color
	TextColor color.Color
	Padding   float32
	Icon      fyne.Resource

	OnTapped func()
}

CustomButton

func (*CustomButton) CreateRenderer

func (c *CustomButton) CreateRenderer() fyne.WidgetRenderer

CreateRenderer ...

func (*CustomButton) Tapped

func (c *CustomButton) Tapped(*fyne.PointEvent)

Tapped ...

type CustomButtonRender

type CustomButtonRender struct {
	fyne.WidgetRenderer
	Padding float32
	Text    *canvas.Text
	// Rect    *canvas.Rectangle
	Icon    *canvas.Image
	CButton CustomButton
}

CustomButtonRender ...

func (*CustomButtonRender) Destroy

func (r *CustomButtonRender) Destroy()

Destroy ...

func (*CustomButtonRender) Layout

func (r *CustomButtonRender) Layout(size fyne.Size)

Layout : Layout the components of the check widget

func (*CustomButtonRender) MinSize

func (r *CustomButtonRender) MinSize() fyne.Size

MinSize calculates the minimum size of a check. This is based on the contained text, the check icon and a standard amount of padding added.

func (*CustomButtonRender) Objects

func (r *CustomButtonRender) Objects() []fyne.CanvasObject

Objects ...

func (*CustomButtonRender) Refresh

func (r *CustomButtonRender) Refresh()

Refresh ...

type TapLabel

type TapLabel struct {
	widget.Label
	OnTapped func()
}

TapLabel : label that can be tapped

func NewTapLabel

func NewTapLabel(text string, tapped func()) *TapLabel

NewTapLabel ...

func (*TapLabel) Tapped

func (T *TapLabel) Tapped(_ *fyne.PointEvent)

Tapped : Mouse Event Left Click will call the function

Jump to

Keyboard shortcuts

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