mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app: set the type of the orientation and Windowed/Fullscreen options
Those variables didn't make it clear that they were Options. Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+5
-5
@@ -552,9 +552,9 @@ func (q *queue) Events(k event.Tag) []event.Event {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// Windowed is the normal window mode with OS specific window decorations.
|
// Windowed is the normal window mode with OS specific window decorations.
|
||||||
Windowed = windowMode(wm.Windowed)
|
Windowed Option = windowMode(wm.Windowed)
|
||||||
// Fullscreen is the full screen window mode.
|
// Fullscreen is the full screen window mode.
|
||||||
Fullscreen = windowMode(wm.Fullscreen)
|
Fullscreen Option = windowMode(wm.Fullscreen)
|
||||||
)
|
)
|
||||||
|
|
||||||
// windowMode sets the window mode.
|
// windowMode sets the window mode.
|
||||||
@@ -568,11 +568,11 @@ func windowMode(mode wm.WindowMode) Option {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// AnyOrientation allows the window to be freely orientated.
|
// AnyOrientation allows the window to be freely orientated.
|
||||||
AnyOrientation = orientation(wm.AnyOrientation)
|
AnyOrientation Option = orientation(wm.AnyOrientation)
|
||||||
// LandscapeOrientation constrains the window to landscape orientations.
|
// LandscapeOrientation constrains the window to landscape orientations.
|
||||||
LandscapeOrientation = orientation(wm.LandscapeOrientation)
|
LandscapeOrientation Option = orientation(wm.LandscapeOrientation)
|
||||||
// PortraitOrientation constrains the window to portrait orientations.
|
// PortraitOrientation constrains the window to portrait orientations.
|
||||||
PortraitOrientation = orientation(wm.PortraitOrientation)
|
PortraitOrientation Option = orientation(wm.PortraitOrientation)
|
||||||
)
|
)
|
||||||
|
|
||||||
// orientation sets the orientation of the app.
|
// orientation sets the orientation of the app.
|
||||||
|
|||||||
Reference in New Issue
Block a user