Documentation ¶
Overview ¶
应用程序窗口管理器 应用程序窗口管理器不实现MonadInterface
Index ¶
- func Exit()
- func Run()
- type App
- func (p *App) Background(r, g, b, a uint8) *App
- func (p *App) Decorated(visible bool) *App
- func (p *App) DragFiles(enabled bool) *App
- func (p *App) Loop(fn func(self *App, root *context.Root)) *App
- func (p *App) MaxSize(width, height float32) *App
- func (p *App) MinSize(width, height float32) *App
- func (p *App) NavigationColor(r, g, b, a uint8) *App
- func (p *App) OnDropFiles(fn func(files []string)) *App
- func (p *App) OnUIContextError(fn func(err error)) *App
- func (p *App) Orientation(orientation Orientation) *App
- func (p *App) Size(width, height float32) *App
- func (p *App) StatusColor(r, g, b, a uint8) *App
- func (p *App) Then(fn func(self *App, root *context.Root)) *App
- func (p *App) Title(title string) *App
- func (p *App) WindowMode(mode WindowMode) *App
- type Orientation
- type WindowMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
程序
func (*App) OnUIContextError ¶
自定义UI上下文错误处理函数
func (*App) Orientation ¶
func (p *App) Orientation(orientation Orientation) *App
设置窗口布局方向
仅支持Android和JS
type Orientation ¶
type Orientation uint8
Orientation是应用程序的方向
仅支持Android和JS
const ( // 允许窗口自由定向 AnyOrientation Orientation = iota // 将窗口限制为横向 LandscapeOrientation // 将窗口限制为纵向 PortraitOrientation )
type WindowMode ¶
type WindowMode = gapp.WindowMode
窗口模式
模式可以通过编程方式或用户点击窗口标题栏上的最小化/最大化按钮来更改
const ( // Windowed是带有特定于操作系统的窗口装饰的正常窗口模式。 Windowed WindowMode = iota // 全屏窗口模式 Fullscreen // 最小化 Minimized // 最大化 Maximized )
Click to show internal directories.
Click to hide internal directories.