mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
app, app/internal: [wasm,android] new Option to set Orientation
Signed-off-by: Inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user