wx

package module
v0.0.0-...-976734d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Unlicense Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EntryExCaseUpper = strings.ToUpper
	EntryExCaseLower = strings.ToLower
	EntryExCaseTitle = func(s string) string {
		return cases.Title(language.French).String(strings.ToLower(s))
	}
)

Functions

func GetHWND

func GetHWND(w fyne.Window) (hwnd uintptr)

GetHWND retreives the HWND (WINAPI Window Handle) of a fyne.Window.

func MaximizeWindow

func MaximizeWindow(hwnd uintptr)

func RegisterEmbedRepository

func RegisterEmbedRepository(scheme string, fs embed.FS)

Types

type AutoComplete

type AutoComplete struct {
	widget.Entry // AutoComplete extends widget.Entry

	//
	Options []string // List of suggestions.

	//
	CustomLength   func() int                         // Returns the length of custom data source (widget.List like)
	CustomCreate   func() fyne.CanvasObject           // Creates a fyne.CanvasObject to display a custom data source item (widget.List like)
	CustomUpdate   func(id int, co fyne.CanvasObject) // Updates a fyne.CanvasObject to display a custom data source item (widget.List like)
	CustomComplete func(id int) string                // Called when a custom data source is used, to match a (complexe) item with its textual representation (that will be filled in the Entry)

	//
	SubmitOnCompleted bool // if true, completing from list (either with Enter key or with click) triggers Entry.OnSubmited if set

	// custom callbacks
	OnFocusGained   func()                              // Called when widget gains focus
	OnFocusLost     func()                              // Called when widget loses focus
	OnTypedRune     func(r rune) (block bool)           // Called when a rune is typed ; block = true will prevent the event from reaching the widget
	OnTypedKey      func(k *fyne.KeyEvent) (block bool) // Called when a key is typed ; block = true will prevent the event from reaching the widget (this will also prevent TypedRune to be called)
	OnTypedShortcut func(s fyne.Shortcut) (block bool)  // Called when a shortut is typed ; block = true will prevent the event from reaching the widget

	// tooltips
	ToolTipable
	// contains filtered or unexported fields
}

AutoComplete is an extend widget.Entry that allows to display a list of suggestions beneath it.

The suggestions can be (by default) a simple list of strings (.Options), or anything you want (complexe data structures).

The CustomXxx callbacks are used for custom suggestion data.

func NewAutoComplete

func NewAutoComplete(minLines int) *AutoComplete

NewAutoComplete creates an AutoComplete widget. minLines > 1 will create a multiline WordWrapped widget by default.

func (*AutoComplete) AcceptsTab

func (ac *AutoComplete) AcceptsTab() bool

func (*AutoComplete) FocusGained

func (ac *AutoComplete) FocusGained()

func (*AutoComplete) FocusLost

func (ac *AutoComplete) FocusLost()

func (*AutoComplete) ListHide

func (ac *AutoComplete) ListHide()

ListHide hides auto-complete list.

func (*AutoComplete) ListShow

func (ac *AutoComplete) ListShow()

ListShow will display the auto-completion list (if there is data to display).

func (*AutoComplete) ListVisible

func (ac *AutoComplete) ListVisible() bool

ListVisible returns wether the auto-complete list is visible.

func (*AutoComplete) MouseIn

func (ac *AutoComplete) MouseIn(me *desktop.MouseEvent)

func (*AutoComplete) MouseMoved

func (ac *AutoComplete) MouseMoved(me *desktop.MouseEvent)

func (*AutoComplete) MouseOut

func (ac *AutoComplete) MouseOut()

func (*AutoComplete) Move

func (ac *AutoComplete) Move(pos fyne.Position)

func (*AutoComplete) ReadOnly

func (ac *AutoComplete) ReadOnly() bool

ReadOnly returns read-only status.

Read-Only widget will display like a normal non focused widget, but it will be impossible to modify its content (either by keyboard or from clipboard).

func (*AutoComplete) RefreshItem

func (ac *AutoComplete) RefreshItem(id int)

func (*AutoComplete) SetItemHeight

func (ac *AutoComplete) SetItemHeight(id int, height float32)

func (*AutoComplete) SetReadOnly

func (ac *AutoComplete) SetReadOnly(b bool)

SetReadOnly sets read-only status.

Read-Only widget will display like a normal non focused widget, but it will be impossible to modify its content (either by keyboard or from clipboard).

func (*AutoComplete) SetText

func (ac *AutoComplete) SetText(s string)

SetText sets the text in the Entry without triggering OnChanged.

func (*AutoComplete) TypedKey

func (ac *AutoComplete) TypedKey(k *fyne.KeyEvent)

func (*AutoComplete) TypedRune

func (ac *AutoComplete) TypedRune(r rune)

func (*AutoComplete) TypedShortcut

func (ac *AutoComplete) TypedShortcut(s fyne.Shortcut)

type Button

type Button struct {
	widget.Button

	Menu          *fyne.Menu
	OnMenuRequest func() // if set, called just before showing popup menu

	ToolTipable
	// contains filtered or unexported fields
}

func NewButton

func NewButton(text string, icon fyne.Resource, importance widget.Importance, action func(), menuItems ...*fyne.MenuItem) *Button

func NewTBButton

func NewTBButton(text string, icon fyne.Resource, action func(), menuItems ...*fyne.MenuItem) *Button

func (*Button) MinSize

func (b *Button) MinSize() fyne.Size

func (*Button) MouseIn

func (b *Button) MouseIn(e *desktop.MouseEvent)

func (*Button) MouseMoved

func (b *Button) MouseMoved(e *desktop.MouseEvent)

func (*Button) MouseOut

func (b *Button) MouseOut()

func (*Button) SetMinWidth

func (b *Button) SetMinWidth(w float32)

func (*Button) Tap

func (b *Button) Tap()

func (*Button) TapSecondary

func (b *Button) TapSecondary()

func (*Button) Tapped

func (b *Button) Tapped(e *fyne.PointEvent)

func (*Button) TappedSecondary

func (b *Button) TappedSecondary(e *fyne.PointEvent)

func (*Button) ToolbarObject

func (b *Button) ToolbarObject() fyne.CanvasObject

type CheckEx

type CheckEx struct {
	widget.Check

	ToolTipable

	// custom callbacks
	OnFocusGained   func()
	OnFocusLost     func()
	OnTypedRune     func(rune) (block bool)
	OnTypedKey      func(*fyne.KeyEvent) (block bool)
	OnTypedShortcut func(fyne.Shortcut) (block bool)
}

func NewCheckEx

func NewCheckEx(text string, changed func(bool)) *CheckEx

func (*CheckEx) FocusGained

func (c *CheckEx) FocusGained()

FocusGained is a hook called by the focus handling logic after this object gained the focus.

func (*CheckEx) FocusLost

func (c *CheckEx) FocusLost()

FocusLost is a hook called by the focus handling logic after this object lost the focus.

func (*CheckEx) MouseIn

func (c *CheckEx) MouseIn(me *desktop.MouseEvent)

MouseIn is a hook that is called if the mouse pointer enters the element.

func (*CheckEx) MouseMoved

func (c *CheckEx) MouseMoved(me *desktop.MouseEvent)

MouseMoved is a hook that is called if the mouse pointer moved over the element.

func (*CheckEx) MouseOut

func (c *CheckEx) MouseOut()

MouseOut is a hook that is called if the mouse pointer leaves the element.

func (*CheckEx) TypedKey

func (c *CheckEx) TypedKey(k *fyne.KeyEvent)

TypedKey is a hook called by the input handling logic on key events if this object is focused.

func (*CheckEx) TypedRune

func (c *CheckEx) TypedRune(r rune)

TypedRune is a hook called by the input handling logic on text input events if this object is focused.

func (*CheckEx) TypedShortcut

func (c *CheckEx) TypedShortcut(s fyne.Shortcut)

type DateEntry

type DateEntry struct {
	widget.Entry

	ToolTipable

	// custom callbacks
	OnChanged       func(time.Time)
	OnFocusGained   func()
	OnFocusLost     func()
	OnTypedRune     func(r rune) (block bool)
	OnTypedKey      func(k *fyne.KeyEvent) (block bool)
	OnTypedShortcut func(s fyne.Shortcut) (block bool)
	// contains filtered or unexported fields
}

func NewDateEntry

func NewDateEntry() *DateEntry

func (*DateEntry) FocusGained

func (d *DateEntry) FocusGained()

func (*DateEntry) FocusLost

func (d *DateEntry) FocusLost()

func (*DateEntry) GetText

func (d *DateEntry) GetText() string

func (*DateEntry) GetTime

func (d *DateEntry) GetTime() time.Time

func (*DateEntry) MinSize

func (d *DateEntry) MinSize() fyne.Size

func (*DateEntry) MouseIn

func (d *DateEntry) MouseIn(me *desktop.MouseEvent)

func (*DateEntry) MouseMoved

func (d *DateEntry) MouseMoved(me *desktop.MouseEvent)

func (*DateEntry) MouseOut

func (d *DateEntry) MouseOut()

func (*DateEntry) ReadOnly

func (d *DateEntry) ReadOnly() bool

func (*DateEntry) SetReadOnly

func (d *DateEntry) SetReadOnly(b bool)

func (*DateEntry) SetText

func (d *DateEntry) SetText(s string)

func (*DateEntry) SetTime

func (d *DateEntry) SetTime(tm time.Time)

func (*DateEntry) TypedKey

func (d *DateEntry) TypedKey(k *fyne.KeyEvent)

func (*DateEntry) TypedRune

func (d *DateEntry) TypedRune(r rune)

func (*DateEntry) TypedShortcut

func (d *DateEntry) TypedShortcut(shortcut fyne.Shortcut)

type DoubleClickable

type DoubleClickable struct {
	// contains filtered or unexported fields
}

func (*DoubleClickable) IsDoubleClick

func (dbl *DoubleClickable) IsDoubleClick() (ret bool)

type EmbedRepository

type EmbedRepository struct {
	// contains filtered or unexported fields
}

func (*EmbedRepository) CanList

func (e *EmbedRepository) CanList(u fyne.URI) (bool, error)

CanList will be used to implement calls to storage.Listable() for the registered scheme of this repository.

Since: 2.0

func (*EmbedRepository) CanRead

func (e *EmbedRepository) CanRead(u fyne.URI) (bool, error)

CanRead will be used to implement calls to storage.CanRead() for the registered scheme of this repository.

Since: 2.0

func (*EmbedRepository) CreateListable

func (e *EmbedRepository) CreateListable(u fyne.URI) error

CreateListable will be used to implement calls to storage.CreateListable() for the registered scheme of this repository.

Since: 2.0

func (*EmbedRepository) Destroy

func (e *EmbedRepository) Destroy(string)

Destroy is called when the repository is un-registered from a given URI scheme.

The string parameter will be the URI scheme that the repository was registered for. This may be useful for repositories that need to handle more than one URI scheme internally.

Since: 2.0

func (*EmbedRepository) Exists

func (e *EmbedRepository) Exists(u fyne.URI) (bool, error)

Exists will be used to implement calls to storage.Exists() for the registered scheme of this repository.

Since: 2.0

func (*EmbedRepository) List

func (e *EmbedRepository) List(u fyne.URI) ([]fyne.URI, error)

List will be used to implement calls to storage.List() for the registered scheme of this repository.

Since: 2.0

func (*EmbedRepository) Reader

func (e *EmbedRepository) Reader(u fyne.URI) (fyne.URIReadCloser, error)

Reader will be used to implement calls to storage.Reader() for the registered scheme of this repository.

Since: 2.0

type EntryEx

type EntryEx struct {
	widget.Entry

	// widget configuration
	AcceptTab    bool
	RuneModifier func(rune) rune
	CaseModifier func(string) string // only for non multiline entries ; use RuneModifier for multiline

	ToolTipable

	// custom callbacks
	OnChanged       func(string)
	OnFocusGained   func()
	OnFocusLost     func()
	OnTypedRune     func(r rune) (block bool)
	OnTypedKey      func(k *fyne.KeyEvent) (block bool)
	OnTypedShortcut func(s fyne.Shortcut) (block bool)
	// contains filtered or unexported fields
}

func NewEntryEx

func NewEntryEx(minRows int) *EntryEx

func (*EntryEx) AcceptsTab

func (e *EntryEx) AcceptsTab() bool

func (*EntryEx) ExtendBaseWidget

func (e *EntryEx) ExtendBaseWidget(wid fyne.Widget)

func (*EntryEx) FocusGained

func (e *EntryEx) FocusGained()

func (*EntryEx) FocusLost

func (e *EntryEx) FocusLost()

func (*EntryEx) MouseIn

func (e *EntryEx) MouseIn(me *desktop.MouseEvent)

func (*EntryEx) MouseMoved

func (e *EntryEx) MouseMoved(me *desktop.MouseEvent)

func (*EntryEx) MouseOut

func (e *EntryEx) MouseOut()

func (*EntryEx) ReadOnly

func (e *EntryEx) ReadOnly() bool

func (*EntryEx) SetReadOnly

func (e *EntryEx) SetReadOnly(b bool)

func (*EntryEx) SetText

func (e *EntryEx) SetText(s string)

func (*EntryEx) TypedKey

func (e *EntryEx) TypedKey(k *fyne.KeyEvent)

func (*EntryEx) TypedRune

func (e *EntryEx) TypedRune(r rune)

func (*EntryEx) TypedShortcut

func (e *EntryEx) TypedShortcut(s fyne.Shortcut)

type FieldID

type FieldID = string

type Icon

type Icon struct {
	widget.Icon

	OnTapped          func(e *fyne.PointEvent)
	OnTappedSecondary func(e *fyne.PointEvent)

	PointerCursor bool
}

func NewIcon

func NewIcon(res fyne.Resource) *Icon

func (*Icon) Cursor

func (w *Icon) Cursor() desktop.Cursor

func (*Icon) SetColor

func (w *Icon) SetColor(clr fyne.ThemeColorName)

func (*Icon) Tapped

func (w *Icon) Tapped(e *fyne.PointEvent)

func (*Icon) TappedSecondary

func (w *Icon) TappedSecondary(e *fyne.PointEvent)

type InputFields

type InputFields struct {
	widget.BaseWidget

	OnChanged func(id FieldID)
	OnAction  func(id FieldID)
	// contains filtered or unexported fields
}

func NewInputFields

func NewInputFields() (w *InputFields)

func (*InputFields) AddActionButton

func (w *InputFields) AddActionButton(id FieldID, label, btnText string, importance widget.Importance)

func (*InputFields) AddCheck

func (w *InputFields) AddCheck(id FieldID, nullable bool, label string, text string, value bool)

func (*InputFields) AddCheckGroup

func (w *InputFields) AddCheckGroup(id FieldID, nullable bool, label string, options []string, values []string, horizontal bool)

func (*InputFields) AddDate

func (w *InputFields) AddDate(id FieldID, nullable bool, label string, value string)

func (*InputFields) AddLabel

func (w *InputFields) AddLabel(id FieldID, label string, text string, style fyne.TextStyle, alignement fyne.TextAlign)

func (*InputFields) AddNumber

func (w *InputFields) AddNumber(id FieldID, nullable bool, label string, value string, float, signed bool)

func (*InputFields) AddPassword

func (w *InputFields) AddPassword(id FieldID, nullable bool, label string, value string)

func (*InputFields) AddRadioGroup

func (w *InputFields) AddRadioGroup(id FieldID, nullable bool, label string, options []string, value string, horizontal bool)

func (*InputFields) AddSelect

func (w *InputFields) AddSelect(id FieldID, nullable bool, label string, options []string, value string, editable bool)

func (*InputFields) AddSeparator

func (w *InputFields) AddSeparator()

func (*InputFields) AddTab

func (w *InputFields) AddTab(title string, icon fyne.Resource)

func (*InputFields) AddText

func (w *InputFields) AddText(id FieldID, nullable bool, label string, value string, lines int)

func (*InputFields) AddTitle

func (w *InputFields) AddTitle(id FieldID, text string, style fyne.TextStyle, alignement fyne.TextAlign)

func (*InputFields) AddTitleMkd

func (w *InputFields) AddTitleMkd(id FieldID, text string)

func (*InputFields) CreateRenderer

func (w *InputFields) CreateRenderer() fyne.WidgetRenderer

func (*InputFields) Disable

func (w *InputFields) Disable()

func (*InputFields) Disabled

func (w *InputFields) Disabled() (ret bool)

func (*InputFields) Enable

func (w *InputFields) Enable()

func (*InputFields) GetNull

func (w *InputFields) GetNull(id FieldID) (b bool)

func (*InputFields) GetStatus

func (w *InputFields) GetStatus(id FieldID) (b bool)

func (*InputFields) Inputs

func (w *InputFields) Inputs() []FieldID

func (*InputFields) ReadAllString

func (w *InputFields) ReadAllString() (ret map[FieldID]string)

func (*InputFields) ReadString

func (w *InputFields) ReadString(id FieldID) (ret string)

func (*InputFields) SetFocus

func (w *InputFields) SetFocus(id FieldID)

func (*InputFields) SetNull

func (w *InputFields) SetNull(id FieldID, b bool)

func (*InputFields) SetStatus

func (w *InputFields) SetStatus(id FieldID, b bool)

func (*InputFields) Widget

func (w *InputFields) Widget(id FieldID) fyne.Widget

func (*InputFields) WriteAllString

func (w *InputFields) WriteAllString(data map[FieldID]string)

func (*InputFields) WriteOptions

func (w *InputFields) WriteOptions(id FieldID, options []string)

func (*InputFields) WriteString

func (w *InputFields) WriteString(id FieldID, value string)

type Label

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

func NewLabel

func NewLabel(text string) *Label

func (*Label) MinSize

func (w *Label) MinSize() fyne.Size

func (*Label) SetMinWidth

func (w *Label) SetMinWidth(width float32)

type NumEntry

type NumEntry struct {
	widget.Entry

	Float  bool
	Signed bool

	OnChanged func(string)

	OnChangedInt func(int)

	OnChangedFloat func(float64)

	ToolTipable

	// custom callbacks
	OnFocusGained   func()
	OnFocusLost     func()
	OnTypedRune     func(r rune) (block bool)
	OnTypedKey      func(k *fyne.KeyEvent) (block bool)
	OnTypedShortcut func(s fyne.Shortcut) (block bool)
	// contains filtered or unexported fields
}

func NewNumEntry

func NewNumEntry() *NumEntry

func (*NumEntry) FocusGained

func (n *NumEntry) FocusGained()

func (*NumEntry) FocusLost

func (n *NumEntry) FocusLost()

func (*NumEntry) GetFloat

func (n *NumEntry) GetFloat() float64

func (*NumEntry) GetInt

func (n *NumEntry) GetInt() int

func (*NumEntry) MouseIn

func (n *NumEntry) MouseIn(me *desktop.MouseEvent)

func (*NumEntry) MouseMoved

func (n *NumEntry) MouseMoved(me *desktop.MouseEvent)

func (*NumEntry) MouseOut

func (n *NumEntry) MouseOut()

func (*NumEntry) ReadOnly

func (n *NumEntry) ReadOnly() bool

func (*NumEntry) SetFloat

func (n *NumEntry) SetFloat(f float64)

func (*NumEntry) SetInt

func (n *NumEntry) SetInt(i int)

func (*NumEntry) SetReadOnly

func (n *NumEntry) SetReadOnly(b bool)

func (*NumEntry) SetText

func (n *NumEntry) SetText(s string)

func (*NumEntry) TypedKey

func (n *NumEntry) TypedKey(ke *fyne.KeyEvent)

func (*NumEntry) TypedRune

func (n *NumEntry) TypedRune(r rune)

func (*NumEntry) TypedShortcut

func (n *NumEntry) TypedShortcut(s fyne.Shortcut)

type ReadOnlyable

type ReadOnlyable interface {
	ReadOnly() bool
	SetReadOnly(b bool)
}

type SelectEntryEx

type SelectEntryEx struct {
	widget.SelectEntry

	// custom callbacks
	OnFocusGained   func()
	OnFocusLost     func()
	OnTypedRune     func(rune) (block bool)
	OnTypedKey      func(*fyne.KeyEvent) (block bool)
	OnTypedShortcut func(fyne.Shortcut) (block bool)
	// contains filtered or unexported fields
}

func NewSelectEntryEx

func NewSelectEntryEx() *SelectEntryEx

func (*SelectEntryEx) FocusGained

func (sel *SelectEntryEx) FocusGained()

FocusGained is a hook called by the focus handling logic after this object gained the focus.

func (*SelectEntryEx) FocusLost

func (sel *SelectEntryEx) FocusLost()

FocusLost is a hook called by the focus handling logic after this object lost the focus.

func (*SelectEntryEx) ReadOnly

func (sel *SelectEntryEx) ReadOnly() bool

func (*SelectEntryEx) SetReadOnly

func (sel *SelectEntryEx) SetReadOnly(b bool)

func (*SelectEntryEx) SetText

func (sel *SelectEntryEx) SetText(s string)

func (*SelectEntryEx) TypedKey

func (sel *SelectEntryEx) TypedKey(e *fyne.KeyEvent)

TypedKey is a hook called by the input handling logic on key events if this object is focused.

func (*SelectEntryEx) TypedRune

func (sel *SelectEntryEx) TypedRune(r rune)

TypedRune is a hook called by the input handling logic on text input events if this object is focused.

func (*SelectEntryEx) TypedShortcut

func (sel *SelectEntryEx) TypedShortcut(s fyne.Shortcut)

type SelectEx

type SelectEx struct {
	widget.Select

	ToolTipable

	// custom callbacks
	OnFocusGained   func()
	OnFocusLost     func()
	OnTypedRune     func(rune) (block bool)
	OnTypedKey      func(*fyne.KeyEvent) (block bool)
	OnTypedShortcut func(fyne.Shortcut) (block bool)
}

func NewSelectEx

func NewSelectEx(options []string, onChanged func(s string)) *SelectEx

func (*SelectEx) FocusGained

func (sel *SelectEx) FocusGained()

FocusGained is a hook called by the focus handling logic after this object gained the focus.

func (*SelectEx) FocusLost

func (sel *SelectEx) FocusLost()

FocusLost is a hook called by the focus handling logic after this object lost the focus.

func (*SelectEx) MouseIn

func (sel *SelectEx) MouseIn(me *desktop.MouseEvent)

MouseIn is a hook that is called if the mouse pointer enters the element.

func (*SelectEx) MouseMoved

func (sel *SelectEx) MouseMoved(me *desktop.MouseEvent)

MouseMoved is a hook that is called if the mouse pointer moved over the element.

func (*SelectEx) MouseOut

func (sel *SelectEx) MouseOut()

MouseOut is a hook that is called if the mouse pointer leaves the element.

func (*SelectEx) TypedKey

func (sel *SelectEx) TypedKey(e *fyne.KeyEvent)

TypedKey is a hook called by the input handling logic on key events if this object is focused.

func (*SelectEx) TypedRune

func (sel *SelectEx) TypedRune(r rune)

TypedRune is a hook called by the input handling logic on text input events if this object is focused.

func (*SelectEx) TypedShortcut

func (sel *SelectEx) TypedShortcut(s fyne.Shortcut)

type SelectableImage

type SelectableImage struct {
	widget.BaseWidget

	Image *canvas.Image

	Selected   bool
	OnSelected func(b bool)
	// contains filtered or unexported fields
}

func NewSelectableImage

func NewSelectableImage(win fyne.Window) *SelectableImage

func (*SelectableImage) CreateRenderer

func (w *SelectableImage) CreateRenderer() fyne.WidgetRenderer

func (*SelectableImage) Cursor

func (w *SelectableImage) Cursor() desktop.Cursor

func (*SelectableImage) Refresh

func (w *SelectableImage) Refresh()

func (*SelectableImage) Tapped

func (w *SelectableImage) Tapped(_ *fyne.PointEvent)

type ToolTipable

type ToolTipable struct {
	ToolTip fyne.CanvasObject
	// contains filtered or unexported fields
}

func (*ToolTipable) MouseIn

func (tt *ToolTipable) MouseIn(me *desktop.MouseEvent)

func (*ToolTipable) MouseMoved

func (tt *ToolTipable) MouseMoved(me *desktop.MouseEvent)

func (*ToolTipable) MouseOut

func (tt *ToolTipable) MouseOut()

func (*ToolTipable) SetToolTip

func (tt *ToolTipable) SetToolTip(title, text string, icon fyne.Resource)

type UpDownButton

type UpDownButton struct {
	widget.DisableableWidget
}

func (*UpDownButton) CreateRenderer

func (w *UpDownButton) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new WidgetRenderer for this widget. This should not be called by regular code, it is used internally to render a widget.

func (*UpDownButton) Hide

func (w *UpDownButton) Hide()

Hide hides this object.

func (*UpDownButton) MinSize

func (w *UpDownButton) MinSize() fyne.Size

MinSize returns the minimum size this object needs to be drawn.

func (*UpDownButton) Move

func (w *UpDownButton) Move(_ fyne.Position)

Move moves this object to the given position relative to its parent. This should only be called if your object is not in a container with a layout manager.

func (*UpDownButton) Position

func (w *UpDownButton) Position() fyne.Position

Position returns the current position of the object relative to its parent.

func (*UpDownButton) Refresh

func (w *UpDownButton) Refresh()

Refresh must be called if this object should be redrawn because its inner state changed.

func (*UpDownButton) Resize

func (w *UpDownButton) Resize(_ fyne.Size)

Resize resizes this object to the given size. This should only be called if your object is not in a container with a layout manager.

func (*UpDownButton) Show

func (w *UpDownButton) Show()

Show shows this object.

func (*UpDownButton) Size

func (w *UpDownButton) Size() fyne.Size

Size returns the current size of this object.

func (*UpDownButton) Visible

func (w *UpDownButton) Visible() bool

Visible returns whether this object is visible or not.

Jump to

Keyboard shortcuts

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