forked from go-flutter-desktop/go-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindow.go
27 lines (24 loc) · 1009 Bytes
/
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
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
)
// WindowMode sets the window mode on the application.
func WindowMode(w windowMode) Option {
return func(c *config) {
c.windowMode = w
}
}