-
Notifications
You must be signed in to change notification settings - Fork 283
/
window.go
32 lines (29 loc) · 1.18 KB
/
window.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package flutter
// windowMode determines the kind of window mode to use for new windows.
type windowMode int
const (
// WindowModeDefault is the default window mode. Windows are created with
// borders and close/minimize buttons.
WindowModeDefault windowMode = iota
// WindowModeBorderless removes decorations such as borders and
// close/minimize buttons from the window.
WindowModeBorderless
// WindowModeBorderlessFullscreen starts the application in borderless
// fullscreen mode. Currently, only fullscreen on the primary monitor is
// supported. This option overrides WindowInitialDimensions. Note that on
// some systems a fullscreen window is very hard to close. Make sure your
// Flutter application has a close button and use PopBehaviorIconify to
// minimize or PopBehaviorClose to close the application.
WindowModeBorderlessFullscreen
// WindowModeMaximize starts the application maximized.
WindowModeMaximize
// WindowModeBorderlessMaximize starts the application in borderless
// maximize mode.
WindowModeBorderlessMaximize
)
// WindowMode sets the window mode on the application.
func WindowMode(w windowMode) Option {
return func(c *config) {
c.windowMode = w
}
}