ui

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 49 Imported by: 0

Documentation

Overview

Package ui contains the code for rendering the UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfirmDialog added in v0.6.0

func NewConfirmDialog(title, message, confirm string, callback func(bool), parent fyne.Window) *dialog.ConfirmDialog

NewConfirmDialog returns a new pre-configured confirm dialog.

func NewErrorDialog added in v0.6.0

func NewErrorDialog(message string, err error, parent fyne.Window) dialog.Dialog

NewErrorDialog returns a new custom error dialog.

func SettingKeys added in v0.4.0

func SettingKeys() []string

SettingKeys returns all setting keys.

Types

type UI added in v0.5.1

type UI struct {
	CacheService       app.CacheService
	CharacterService   *character.CharacterService
	ESIStatusService   app.ESIStatusService
	EveImageService    app.EveImageService
	EveUniverseService *eveuniverse.EveUniverseService
	StatusCacheService app.StatusCacheService
	// Run the app in offline mode
	IsOffline bool
	// Whether to disable update tickers (useful for debugging)
	IsUpdateTickerDisabled bool
	// contains filtered or unexported fields
}

The UI is the root object of the UI and contains all UI areas.

Each UI area holds a pointer of the UI instance, so that areas can call methods on other UI areas and access shared variables in the UI.

func NewUI

func NewUI(fyneApp fyne.App, ad appdirs.AppDirs) *UI

NewUI build the UI and returns it.

func (*UI) Init added in v0.5.1

func (u *UI) Init()

func (*UI) NewJumpClonesArea added in v0.5.1

func (u *UI) NewJumpClonesArea() *jumpClonesArea

func (*UI) ShowAndRun added in v0.5.1

func (u *UI) ShowAndRun()

ShowAndRun shows the UI and runs it (blocking).

Jump to

Keyboard shortcuts

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