Ai
15 Star 73 Fork 23

Gitee 极速下载/Fyne

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/fyne-io/fyne
克隆/下载
settings.go 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
package fyne
// BuildType defines different modes that an application can be built using.
type BuildType int
const (
// BuildStandard is the normal build mode - it is not debug, test or release mode.
BuildStandard BuildType = iota
// BuildDebug is used when a developer would like more information and visual output for app debugging.
BuildDebug
// BuildRelease is a final production build, it is like [BuildStandard] but will use distribution certificates.
// A release build is typically going to connect to live services and is not usually used during development.
BuildRelease
)
// Settings describes the application configuration available.
type Settings interface {
Theme() Theme
SetTheme(Theme)
// ThemeVariant defines which preferred version of a theme should be used (i.e. light or dark)
//
// Since: 2.0
ThemeVariant() ThemeVariant
Scale() float32
// PrimaryColor indicates a user preference for a named primary color
//
// Since: 1.4
PrimaryColor() string
// AddChangeListener subscribes to settings change events over a channel.
//
// Deprecated: Use AddListener instead, which uses a callback-based API
// with the callback guaranteed to be invoked on the app goroutine.
AddChangeListener(chan Settings)
// AddListener registers a callback that is invoked whenever the settings change.
//
// Since: 2.6
AddListener(func(Settings))
BuildType() BuildType
ShowAnimations() bool
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/Fyne.git
git@gitee.com:mirrors/Fyne.git
mirrors
Fyne
Fyne
master

搜索帮助