Documentation
¶
Index ¶
- type MGNumericEntry
- type MGSmallButton
- func (b *MGSmallButton) CreateRenderer() fyne.WidgetRenderer
- func (b *MGSmallButton) MinSize() fyne.Size
- func (b *MGSmallButton) MouseDown(ev *desktop.MouseEvent)
- func (b *MGSmallButton) MouseIn(*desktop.MouseEvent)
- func (b *MGSmallButton) MouseOut()
- func (b *MGSmallButton) MouseUp(ev *desktop.MouseEvent)
- func (b *MGSmallButton) Tapped(*fyne.PointEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MGNumericEntry ¶
type MGNumericEntry struct {
widget.Entry
OnChanged func(int)
// contains filtered or unexported fields
}
func NewMGNumericEntry ¶
func NewMGNumericEntry(min, max, initial int) *MGNumericEntry
func NewMGNumericEntryWithButtons ¶
func NewMGNumericEntryWithButtons(min, max, initial int) (fyne.CanvasObject, *MGNumericEntry)
func (*MGNumericEntry) GetValue ¶
func (e *MGNumericEntry) GetValue() int
func (*MGNumericEntry) SetValue ¶
func (e *MGNumericEntry) SetValue(v int)
func (*MGNumericEntry) TypedKey ¶
func (e *MGNumericEntry) TypedKey(k *fyne.KeyEvent)
func (*MGNumericEntry) TypedRune ¶
func (e *MGNumericEntry) TypedRune(r rune)
Permite apenas digitação de dígitos e sinal '-' (se min < 0)
type MGSmallButton ¶
type MGSmallButton struct {
widget.BaseWidget
Label string
OnTapped func()
// contains filtered or unexported fields
}
func (*MGSmallButton) CreateRenderer ¶
func (b *MGSmallButton) CreateRenderer() fyne.WidgetRenderer
func (*MGSmallButton) MinSize ¶
func (b *MGSmallButton) MinSize() fyne.Size
func (*MGSmallButton) MouseDown ¶
func (b *MGSmallButton) MouseDown(ev *desktop.MouseEvent)
func (*MGSmallButton) MouseIn ¶
func (b *MGSmallButton) MouseIn(*desktop.MouseEvent)
func (*MGSmallButton) MouseOut ¶
func (b *MGSmallButton) MouseOut()
func (*MGSmallButton) MouseUp ¶
func (b *MGSmallButton) MouseUp(ev *desktop.MouseEvent)
func (*MGSmallButton) Tapped ¶
func (b *MGSmallButton) Tapped(*fyne.PointEvent)
Click to show internal directories.
Click to hide internal directories.