setting

package
v0.0.0-...-80e0f6d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLang

func ChangeLang(lang Lang) error

Types

type Lang

type Lang struct {
	Code  string
	Title string
}

type SettingContract

type SettingContract interface {
	GetLanguages() []Lang
	GetCurrentLangOrDefaultLang() (currentLang Lang, isDefault bool)
	SetLang(language Lang) error

	GetDirectoryForSaving() string
	SetDirectoryForSaving(path string)

	GetFFmpegPath() string
	SetFFmpegPath(path string)

	GetFFprobePath() string
	SetFFprobePath(path string)

	GetFFplayPath() string
	SetFFplayPath(path string)

	ThemeInit()
	GetThemes() map[string]ThemeInfoContract
	GetTheme() ThemeInfoContract
	SetTheme(themeInfo ThemeInfoContract)
}

func NewSetting

func NewSetting(fyneApp fyne.App) SettingContract

type ThemeInfoContract

type ThemeInfoContract interface {
	GetName() string
	GetTitle() string
	GetVariant() fyne.ThemeVariant
}

Jump to

Keyboard shortcuts

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