app, app/internal: [wasm,android] new Option to set Orientation

Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
Inkeliz
2021-04-23 18:21:58 +01:00
committed by Elias Naur
parent a06a7a4b3c
commit d51d8b46c3
5 changed files with 85 additions and 1 deletions
+9
View File
@@ -28,6 +28,7 @@ type Options struct {
WindowMode *WindowMode
StatusColor *color.NRGBA
NavigationColor *color.NRGBA
Orientation *Orientation
}
type WindowMode uint8
@@ -37,6 +38,14 @@ const (
Fullscreen
)
type Orientation uint8
const (
AnyOrientation Orientation = iota
LandscapeOrientation
PortraitOrientation
)
type FrameEvent struct {
system.FrameEvent