Versions in this module Expand all Collapse all v2 v2.3.5 May 25, 2023 Changes in this version + const AnimationRepeatForever + const KeyModifierShortcutDefault + var AnimationEaseIn = animationEaseIn + var AnimationEaseInOut = animationEaseInOut + var AnimationEaseOut = animationEaseOut + var AnimationLinear = animationLinear + func IsHorizontal(orient DeviceOrientation) bool + func IsVertical(orient DeviceOrientation) bool + func LogError(reason string, err error) + func Max(x, y float32) float32 + func Min(x, y float32) float32 + func SetCurrentApp(current App) + type Animation struct + AutoReverse bool + Curve AnimationCurve + Duration time.Duration + RepeatCount int + Tick func(float32) + func NewAnimation(d time.Duration, fn func(float32)) *Animation + func (a *Animation) Start() + func (a *Animation) Stop() + type AnimationCurve func(float32) float32 + type App interface + CloudProvider func() CloudProvider + Driver func() Driver + Icon func() Resource + Lifecycle func() Lifecycle + Metadata func() AppMetadata + NewWindow func(title string) Window + OpenURL func(url *url.URL) error + Preferences func() Preferences + Quit func() + Run func() + SendNotification func(*Notification) + SetCloudProvider func(CloudProvider) + SetIcon func(Resource) + Settings func() Settings + Storage func() Storage + UniqueID func() string + func CurrentApp() App + type AppMetadata struct + Build int + Custom map[string]string + ID string + Icon Resource + Name string + Release bool + Version string + type BuildType int + const BuildDebug + const BuildRelease + const BuildStandard + type Canvas interface + AddShortcut func(shortcut Shortcut, handler func(shortcut Shortcut)) + Capture func() image.Image + Content func() CanvasObject + Focus func(Focusable) + FocusNext func() + FocusPrevious func() + Focused func() Focusable + InteractiveArea func() (Position, Size) + OnTypedKey func() func(*KeyEvent) + OnTypedRune func() func(rune) + Overlays func() OverlayStack + PixelCoordinateForPosition func(Position) (int, int) + Refresh func(CanvasObject) + RemoveShortcut func(shortcut Shortcut) + Scale func() float32 + SetContent func(CanvasObject) + SetOnTypedKey func(func(*KeyEvent)) + SetOnTypedRune func(func(rune)) + Size func() Size + Unfocus func() + type CanvasObject interface + Hide func() + MinSize func() Size + Move func(Position) + Position func() Position + Refresh func() + Resize func(Size) + Show func() + Size func() Size + Visible func() bool + type Clipboard interface + Content func() string + SetContent func(content string) + type CloudProvider interface + Cleanup func(App) + ProviderDescription func() string + ProviderIcon func() Resource + ProviderName func() string + Setup func(App) error + type CloudProviderPreferences interface + CloudPreferences func(App) Preferences + type CloudProviderStorage interface + CloudStorage func(App) Storage + type Container struct + Hidden bool + Layout Layout + Objects []CanvasObject + func NewContainer(objects ...CanvasObject) *Container + func NewContainerWithLayout(layout Layout, objects ...CanvasObject) *Container + func NewContainerWithoutLayout(objects ...CanvasObject) *Container + func (c *Container) Add(add CanvasObject) + func (c *Container) AddObject(o CanvasObject) + func (c *Container) Hide() + func (c *Container) MinSize() Size + func (c *Container) Move(pos Position) + func (c *Container) Position() Position + func (c *Container) Refresh() + func (c *Container) Remove(rem CanvasObject) + func (c *Container) RemoveAll() + func (c *Container) Resize(size Size) + func (c *Container) Show() + func (c *Container) Size() Size + func (c *Container) Visible() bool + type Delta struct + DX float32 + DY float32 + func NewDelta(dx float32, dy float32) Delta + func (v Delta) Components() (float32, float32) + func (v Delta) IsZero() bool + type Device interface + HasKeyboard func() bool + IsBrowser func() bool + IsMobile func() bool + Orientation func() DeviceOrientation + SystemScaleForWindow func(Window) float32 + func CurrentDevice() Device + type DeviceOrientation int + const OrientationHorizontalLeft + const OrientationHorizontalRight + const OrientationVertical + const OrientationVerticalUpsideDown + type Disableable interface + Disable func() + Disabled func() bool + Enable func() + type DoubleTappable interface + DoubleTapped func(*PointEvent) + type DragEvent struct + Dragged Delta + type Draggable interface + DragEnd func() + Dragged func(*DragEvent) + type Driver interface + AbsolutePositionForObject func(CanvasObject) Position + AllWindows func() []Window + CanvasForObject func(CanvasObject) Canvas + CreateWindow func(string) Window + Device func() Device + Quit func() + RenderedTextSize func(text string, fontSize float32, style TextStyle) (size Size, baseline float32) + Run func() + StartAnimation func(*Animation) + StopAnimation func(*Animation) + type Focusable interface + FocusGained func() + FocusLost func() + TypedKey func(*KeyEvent) + TypedRune func(rune) + type HardwareKey struct + ScanCode int + type KeyEvent struct + Name KeyName + Physical HardwareKey + type KeyModifier int + const KeyModifierAlt + const KeyModifierControl + const KeyModifierShift + const KeyModifierSuper + type KeyName string + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyApostrophe + const KeyAsterisk + const KeyB + const KeyBackTick + const KeyBackslash + const KeyBackspace + const KeyC + const KeyComma + const KeyD + const KeyDelete + const KeyDown + const KeyE + const KeyEnd + const KeyEnter + const KeyEqual + const KeyEscape + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyH + const KeyHome + const KeyI + const KeyInsert + const KeyJ + const KeyK + const KeyL + const KeyLeft + const KeyLeftBracket + const KeyM + const KeyMinus + const KeyN + const KeyO + const KeyP + const KeyPageDown + const KeyPageUp + const KeyPeriod + const KeyPlus + const KeyQ + const KeyR + const KeyReturn + const KeyRight + const KeyRightBracket + const KeyS + const KeySemicolon + const KeySlash + const KeySpace + const KeyT + const KeyTab + const KeyU + const KeyUnknown + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + type KeyboardShortcut interface + Key func() KeyName + Mod func() KeyModifier + type Layout interface + Layout func([]CanvasObject, Size) + MinSize func(objects []CanvasObject) Size + type LegacyTheme interface + BackgroundColor func() color.Color + ButtonColor func() color.Color + DisabledButtonColor func() color.Color + DisabledTextColor func() color.Color + FocusColor func() color.Color + HoverColor func() color.Color + IconInlineSize func() int + Padding func() int + PlaceHolderColor func() color.Color + PrimaryColor func() color.Color + ScrollBarColor func() color.Color + ScrollBarSize func() int + ScrollBarSmallSize func() int + ShadowColor func() color.Color + TextBoldFont func() Resource + TextBoldItalicFont func() Resource + TextColor func() color.Color + TextFont func() Resource + TextItalicFont func() Resource + TextMonospaceFont func() Resource + TextSize func() int + type Lifecycle interface + SetOnEnteredForeground func(func()) + SetOnExitedForeground func(func()) + SetOnStarted func(func()) + SetOnStopped func(func()) + type ListableURI interface + List func() ([]URI, error) + type MainMenu struct + Items []*Menu + func NewMainMenu(items ...*Menu) *MainMenu + func (m *MainMenu) Refresh() + type Menu struct + Items []*MenuItem + Label string + func NewMenu(label string, items ...*MenuItem) *Menu + func (m *Menu) Refresh() + type MenuItem struct + Action func() + Checked bool + ChildMenu *Menu + Disabled bool + Icon Resource + IsQuit bool + IsSeparator bool + Label string + Shortcut Shortcut + func NewMenuItem(label string, action func()) *MenuItem + func NewMenuItemSeparator() *MenuItem + type Notification struct + Content string + Title string + func NewNotification(title, content string) *Notification + type OverlayStack interface + Add func(overlay CanvasObject) + List func() []CanvasObject + Remove func(overlay CanvasObject) + Top func() CanvasObject + type PointEvent struct + AbsolutePosition Position + Position Position + type Position struct + X float32 + Y float32 + func NewPos(x float32, y float32) Position + func (p Position) Add(v Vector2) Position + func (p Position) AddXY(x, y float32) Position + func (p Position) Components() (float32, float32) + func (p Position) IsZero() bool + func (p Position) Subtract(v Vector2) Position + func (p Position) SubtractXY(x, y float32) Position + type Preferences interface + AddChangeListener func(func()) + Bool func(key string) bool + BoolWithFallback func(key string, fallback bool) bool + ChangeListeners func() []func() + Float func(key string) float64 + FloatWithFallback func(key string, fallback float64) float64 + Int func(key string) int + IntWithFallback func(key string, fallback int) int + RemoveValue func(key string) + SetBool func(key string, value bool) + SetFloat func(key string, value float64) + SetInt func(key string, value int) + SetString func(key string, value string) + String func(key string) string + StringWithFallback func(key, fallback string) string + type Resource interface + Content func() []byte + Name func() string + func LoadResourceFromPath(path string) (Resource, error) + func LoadResourceFromURLString(urlStr string) (Resource, error) + type ScrollEvent struct + Scrolled Delta + type Scrollable interface + Scrolled func(*ScrollEvent) + type SecondaryTappable interface + TappedSecondary func(*PointEvent) + type Settings interface + AddChangeListener func(chan Settings) + BuildType func() BuildType + PrimaryColor func() string + Scale func() float32 + SetTheme func(Theme) + Theme func() Theme + ThemeVariant func() ThemeVariant + type Shortcut interface + ShortcutName func() string + type ShortcutCopy struct + Clipboard Clipboard + func (se *ShortcutCopy) Key() KeyName + func (se *ShortcutCopy) Mod() KeyModifier + func (se *ShortcutCopy) ShortcutName() string + type ShortcutCut struct + Clipboard Clipboard + func (se *ShortcutCut) Key() KeyName + func (se *ShortcutCut) Mod() KeyModifier + func (se *ShortcutCut) ShortcutName() string + type ShortcutHandler struct + func (sh *ShortcutHandler) AddShortcut(shortcut Shortcut, handler func(shortcut Shortcut)) + func (sh *ShortcutHandler) RemoveShortcut(shortcut Shortcut) + func (sh *ShortcutHandler) TypedShortcut(shortcut Shortcut) + type ShortcutPaste struct + Clipboard Clipboard + func (se *ShortcutPaste) Key() KeyName + func (se *ShortcutPaste) Mod() KeyModifier + func (se *ShortcutPaste) ShortcutName() string + type ShortcutSelectAll struct + func (se *ShortcutSelectAll) Key() KeyName + func (se *ShortcutSelectAll) Mod() KeyModifier + func (se *ShortcutSelectAll) ShortcutName() string + type Shortcutable interface + TypedShortcut func(Shortcut) + type Size struct + Height float32 + Width float32 + func MeasureText(text string, size float32, style TextStyle) Size + func NewSize(w float32, h float32) Size + func (s Size) Add(v Vector2) Size + func (s Size) AddWidthHeight(width, height float32) Size + func (s Size) Components() (float32, float32) + func (s Size) IsZero() bool + func (s Size) Max(v Vector2) Size + func (s Size) Min(v Vector2) Size + func (s Size) Subtract(v Vector2) Size + func (s Size) SubtractWidthHeight(width, height float32) Size + type StaticResource struct + StaticContent []byte + StaticName string + func NewStaticResource(name string, content []byte) *StaticResource + func (r *StaticResource) Content() []byte + func (r *StaticResource) GoString() string + func (r *StaticResource) Name() string + type Storage interface + Create func(name string) (URIWriteCloser, error) + List func() []string + Open func(name string) (URIReadCloser, error) + Remove func(name string) error + RootURI func() URI + Save func(name string) (URIWriteCloser, error) + type StringValidator func(string) error + type Tabbable interface + AcceptsTab func() bool + type Tappable interface + Tapped func(*PointEvent) + type TextAlign int + const TextAlignCenter + const TextAlignLeading + const TextAlignTrailing + type TextStyle struct + Bold bool + Italic bool + Monospace bool + Symbol bool + TabWidth int + type TextWrap int + const TextTruncate + const TextWrapBreak + const TextWrapOff + const TextWrapWord + type Theme interface + Color func(ThemeColorName, ThemeVariant) color.Color + Font func(TextStyle) Resource + Icon func(ThemeIconName) Resource + Size func(ThemeSizeName) float32 + type ThemeColorName string + type ThemeIconName string + type ThemeSizeName string + type ThemeVariant uint + type URI interface + Authority func() string + Extension func() string + Fragment func() string + MimeType func() string + Name func() string + Path func() string + Query func() string + Scheme func() string + type URIReadCloser interface + URI func() URI + type URIWriteCloser interface + URI func() URI + type Validatable interface + SetOnValidationChanged func(func(error)) + Validate func() error + type Vector2 interface + Components func() (float32, float32) + IsZero func() bool + type Widget interface + CreateRenderer func() WidgetRenderer + type WidgetRenderer interface + Destroy func() + Layout func(Size) + MinSize func() Size + Objects func() []CanvasObject + Refresh func() + type Window interface + Canvas func() Canvas + CenterOnScreen func() + Clipboard func() Clipboard + Close func() + Content func() CanvasObject + FixedSize func() bool + FullScreen func() bool + Hide func() + Icon func() Resource + MainMenu func() *MainMenu + Padded func() bool + RequestFocus func() + Resize func(Size) + SetCloseIntercept func(func()) + SetContent func(CanvasObject) + SetFixedSize func(bool) + SetFullScreen func(bool) + SetIcon func(Resource) + SetMainMenu func(*MainMenu) + SetMaster func() + SetOnClosed func(func()) + SetPadded func(bool) + SetTitle func(string) + Show func() + ShowAndRun func() + Title func() string Other modules containing this package github.com/riikack/fyne