mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app: added support for fullscreen mode
The option field WindowMode allows changing the window mode of an application in either Windowed or Fullscreen. Only macOS, Windows and X11 platforms are currently supported. Updates gio#89. Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
@@ -444,6 +444,22 @@ func (q *queue) Events(k event.Tag) []event.Event {
|
||||
return q.q.Events(k)
|
||||
}
|
||||
|
||||
const (
|
||||
// Windowed is the normal window mode with OS specific window decorations.
|
||||
Windowed = wm.Windowed
|
||||
// Fullscreen is the full screen window mode.
|
||||
Fullscreen = wm.Fullscreen
|
||||
)
|
||||
|
||||
// WindowMode sets the window mode.
|
||||
//
|
||||
// Supported platforms are macOS, X11 and Windows.
|
||||
func WindowMode(mode wm.WindowMode) Option {
|
||||
return func(opts *wm.Options) {
|
||||
opts.WindowMode = mode
|
||||
}
|
||||
}
|
||||
|
||||
// Title sets the title of the wm.
|
||||
func Title(t string) Option {
|
||||
return func(opts *wm.Options) {
|
||||
|
||||
Reference in New Issue
Block a user