Documentation ¶
Index ¶
- Variables
- func GetHWND(w fyne.Window) (hwnd uintptr)
- func MaximizeWindow(hwnd uintptr)
- func RegisterEmbedRepository(scheme string, fs embed.FS)
- type AutoComplete
- func (ac *AutoComplete) AcceptsTab() bool
- func (ac *AutoComplete) FocusGained()
- func (ac *AutoComplete) FocusLost()
- func (ac *AutoComplete) ListHide()
- func (ac *AutoComplete) ListShow()
- func (ac *AutoComplete) ListVisible() bool
- func (ac *AutoComplete) MouseIn(me *desktop.MouseEvent)
- func (ac *AutoComplete) MouseMoved(me *desktop.MouseEvent)
- func (ac *AutoComplete) MouseOut()
- func (ac *AutoComplete) Move(pos fyne.Position)
- func (ac *AutoComplete) ReadOnly() bool
- func (ac *AutoComplete) RefreshItem(id int)
- func (ac *AutoComplete) SetItemHeight(id int, height float32)
- func (ac *AutoComplete) SetReadOnly(b bool)
- func (ac *AutoComplete) SetText(s string)
- func (ac *AutoComplete) TypedKey(k *fyne.KeyEvent)
- func (ac *AutoComplete) TypedRune(r rune)
- func (ac *AutoComplete) TypedShortcut(s fyne.Shortcut)
- type Button
- func (b *Button) MinSize() fyne.Size
- func (b *Button) MouseIn(e *desktop.MouseEvent)
- func (b *Button) MouseMoved(e *desktop.MouseEvent)
- func (b *Button) MouseOut()
- func (b *Button) SetMinWidth(w float32)
- func (b *Button) Tap()
- func (b *Button) TapSecondary()
- func (b *Button) Tapped(e *fyne.PointEvent)
- func (b *Button) TappedSecondary(e *fyne.PointEvent)
- func (b *Button) ToolbarObject() fyne.CanvasObject
- type CheckEx
- func (c *CheckEx) FocusGained()
- func (c *CheckEx) FocusLost()
- func (c *CheckEx) MouseIn(me *desktop.MouseEvent)
- func (c *CheckEx) MouseMoved(me *desktop.MouseEvent)
- func (c *CheckEx) MouseOut()
- func (c *CheckEx) TypedKey(k *fyne.KeyEvent)
- func (c *CheckEx) TypedRune(r rune)
- func (c *CheckEx) TypedShortcut(s fyne.Shortcut)
- type DateEntry
- func (d *DateEntry) FocusGained()
- func (d *DateEntry) FocusLost()
- func (d *DateEntry) GetText() string
- func (d *DateEntry) GetTime() time.Time
- func (d *DateEntry) MinSize() fyne.Size
- func (d *DateEntry) MouseIn(me *desktop.MouseEvent)
- func (d *DateEntry) MouseMoved(me *desktop.MouseEvent)
- func (d *DateEntry) MouseOut()
- func (d *DateEntry) ReadOnly() bool
- func (d *DateEntry) SetReadOnly(b bool)
- func (d *DateEntry) SetText(s string)
- func (d *DateEntry) SetTime(tm time.Time)
- func (d *DateEntry) TypedKey(k *fyne.KeyEvent)
- func (d *DateEntry) TypedRune(r rune)
- func (d *DateEntry) TypedShortcut(shortcut fyne.Shortcut)
- type DoubleClickable
- type EmbedRepository
- func (e *EmbedRepository) CanList(u fyne.URI) (bool, error)
- func (e *EmbedRepository) CanRead(u fyne.URI) (bool, error)
- func (e *EmbedRepository) CreateListable(u fyne.URI) error
- func (e *EmbedRepository) Destroy(string)
- func (e *EmbedRepository) Exists(u fyne.URI) (bool, error)
- func (e *EmbedRepository) List(u fyne.URI) ([]fyne.URI, error)
- func (e *EmbedRepository) Reader(u fyne.URI) (fyne.URIReadCloser, error)
- type EntryEx
- func (e *EntryEx) AcceptsTab() bool
- func (e *EntryEx) ExtendBaseWidget(wid fyne.Widget)
- func (e *EntryEx) FocusGained()
- func (e *EntryEx) FocusLost()
- func (e *EntryEx) MouseIn(me *desktop.MouseEvent)
- func (e *EntryEx) MouseMoved(me *desktop.MouseEvent)
- func (e *EntryEx) MouseOut()
- func (e *EntryEx) ReadOnly() bool
- func (e *EntryEx) SetReadOnly(b bool)
- func (e *EntryEx) SetText(s string)
- func (e *EntryEx) TypedKey(k *fyne.KeyEvent)
- func (e *EntryEx) TypedRune(r rune)
- func (e *EntryEx) TypedShortcut(s fyne.Shortcut)
- type FieldID
- type Icon
- type InputFields
- func (w *InputFields) AddActionButton(id FieldID, label, btnText string, importance widget.Importance)
- func (w *InputFields) AddCheck(id FieldID, nullable bool, label string, text string, value bool)
- func (w *InputFields) AddCheckGroup(id FieldID, nullable bool, label string, options []string, values []string, ...)
- func (w *InputFields) AddDate(id FieldID, nullable bool, label string, value string)
- func (w *InputFields) AddLabel(id FieldID, label string, text string, style fyne.TextStyle, ...)
- func (w *InputFields) AddNumber(id FieldID, nullable bool, label string, value string, float, signed bool)
- func (w *InputFields) AddPassword(id FieldID, nullable bool, label string, value string)
- func (w *InputFields) AddRadioGroup(id FieldID, nullable bool, label string, options []string, value string, ...)
- func (w *InputFields) AddSelect(id FieldID, nullable bool, label string, options []string, value string, ...)
- func (w *InputFields) AddSeparator()
- func (w *InputFields) AddTab(title string, icon fyne.Resource)
- func (w *InputFields) AddText(id FieldID, nullable bool, label string, value string, lines int)
- func (w *InputFields) AddTitle(id FieldID, text string, style fyne.TextStyle, alignement fyne.TextAlign)
- func (w *InputFields) AddTitleMkd(id FieldID, text string)
- func (w *InputFields) CreateRenderer() fyne.WidgetRenderer
- func (w *InputFields) Disable()
- func (w *InputFields) Disabled() (ret bool)
- func (w *InputFields) Enable()
- func (w *InputFields) GetNull(id FieldID) (b bool)
- func (w *InputFields) GetStatus(id FieldID) (b bool)
- func (w *InputFields) Inputs() []FieldID
- func (w *InputFields) ReadAllString() (ret map[FieldID]string)
- func (w *InputFields) ReadString(id FieldID) (ret string)
- func (w *InputFields) SetFocus(id FieldID)
- func (w *InputFields) SetNull(id FieldID, b bool)
- func (w *InputFields) SetStatus(id FieldID, b bool)
- func (w *InputFields) Widget(id FieldID) fyne.Widget
- func (w *InputFields) WriteAllString(data map[FieldID]string)
- func (w *InputFields) WriteOptions(id FieldID, options []string)
- func (w *InputFields) WriteString(id FieldID, value string)
- type Label
- type NumEntry
- func (n *NumEntry) FocusGained()
- func (n *NumEntry) FocusLost()
- func (n *NumEntry) GetFloat() float64
- func (n *NumEntry) GetInt() int
- func (n *NumEntry) MouseIn(me *desktop.MouseEvent)
- func (n *NumEntry) MouseMoved(me *desktop.MouseEvent)
- func (n *NumEntry) MouseOut()
- func (n *NumEntry) ReadOnly() bool
- func (n *NumEntry) SetFloat(f float64)
- func (n *NumEntry) SetInt(i int)
- func (n *NumEntry) SetReadOnly(b bool)
- func (n *NumEntry) SetText(s string)
- func (n *NumEntry) TypedKey(ke *fyne.KeyEvent)
- func (n *NumEntry) TypedRune(r rune)
- func (n *NumEntry) TypedShortcut(s fyne.Shortcut)
- type ReadOnlyable
- type SelectEntryEx
- func (sel *SelectEntryEx) FocusGained()
- func (sel *SelectEntryEx) FocusLost()
- func (sel *SelectEntryEx) ReadOnly() bool
- func (sel *SelectEntryEx) SetReadOnly(b bool)
- func (sel *SelectEntryEx) SetText(s string)
- func (sel *SelectEntryEx) TypedKey(e *fyne.KeyEvent)
- func (sel *SelectEntryEx) TypedRune(r rune)
- func (sel *SelectEntryEx) TypedShortcut(s fyne.Shortcut)
- type SelectEx
- func (sel *SelectEx) FocusGained()
- func (sel *SelectEx) FocusLost()
- func (sel *SelectEx) MouseIn(me *desktop.MouseEvent)
- func (sel *SelectEx) MouseMoved(me *desktop.MouseEvent)
- func (sel *SelectEx) MouseOut()
- func (sel *SelectEx) TypedKey(e *fyne.KeyEvent)
- func (sel *SelectEx) TypedRune(r rune)
- func (sel *SelectEx) TypedShortcut(s fyne.Shortcut)
- type SelectableImage
- type ToolTipable
- type UpDownButton
- func (w *UpDownButton) CreateRenderer() fyne.WidgetRenderer
- func (w *UpDownButton) Hide()
- func (w *UpDownButton) MinSize() fyne.Size
- func (w *UpDownButton) Move(_ fyne.Position)
- func (w *UpDownButton) Position() fyne.Position
- func (w *UpDownButton) Refresh()
- func (w *UpDownButton) Resize(_ fyne.Size)
- func (w *UpDownButton) Show()
- func (w *UpDownButton) Size() fyne.Size
- func (w *UpDownButton) Visible() bool
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 (*Button) MouseIn ¶
func (b *Button) MouseIn(e *desktop.MouseEvent)
func (*Button) MouseMoved ¶
func (b *Button) MouseMoved(e *desktop.MouseEvent)
func (*Button) SetMinWidth ¶
func (*Button) TapSecondary ¶
func (b *Button) TapSecondary()
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 (*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 ¶
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) MouseIn ¶
func (d *DateEntry) MouseIn(me *desktop.MouseEvent)
func (*DateEntry) MouseMoved ¶
func (d *DateEntry) MouseMoved(me *desktop.MouseEvent)
func (*DateEntry) SetReadOnly ¶
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 (*EntryEx) AcceptsTab ¶
func (*EntryEx) ExtendBaseWidget ¶
func (e *EntryEx) ExtendBaseWidget(wid fyne.Widget)
func (*EntryEx) FocusGained ¶
func (e *EntryEx) FocusGained()
func (*EntryEx) MouseIn ¶
func (e *EntryEx) MouseIn(me *desktop.MouseEvent)
func (*EntryEx) MouseMoved ¶
func (e *EntryEx) MouseMoved(me *desktop.MouseEvent)
func (*EntryEx) SetReadOnly ¶
func (*EntryEx) TypedShortcut ¶
func (e *EntryEx) TypedShortcut(s fyne.Shortcut)
type Icon ¶
type Icon struct { widget.Icon OnTapped func(e *fyne.PointEvent) OnTappedSecondary func(e *fyne.PointEvent) PointerCursor bool }
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) AddCheckGroup ¶
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) AddPassword ¶
func (w *InputFields) AddPassword(id FieldID, nullable bool, label string, value string)
func (*InputFields) AddRadioGroup ¶
func (*InputFields) AddSeparator ¶
func (w *InputFields) AddSeparator()
func (*InputFields) AddTab ¶
func (w *InputFields) AddTab(title string, icon fyne.Resource)
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 ¶
func (*Label) SetMinWidth ¶
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) MouseIn ¶
func (n *NumEntry) MouseIn(me *desktop.MouseEvent)
func (*NumEntry) MouseMoved ¶
func (n *NumEntry) MouseMoved(me *desktop.MouseEvent)
func (*NumEntry) SetReadOnly ¶
func (*NumEntry) TypedShortcut ¶
func (n *NumEntry) TypedShortcut(s fyne.Shortcut)
type ReadOnlyable ¶
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 (*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 ¶
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) 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) 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.