Fyne API "fyne.DeviceOrientation"
fyne.DeviceOrientation
import "fyne.io/fyne/v2"
Usage
type DeviceOrientation
type DeviceOrientation int
DeviceOrientation represents the different ways that a mobile device can be held
const (
// OrientationVertical is the default vertical orientation
OrientationVertical DeviceOrientation = iota
// OrientationVerticalUpsideDown is the portrait orientation held upside down
OrientationVerticalUpsideDown
// OrientationHorizontalLeft is used to indicate a landscape orientation with the top to the left
OrientationHorizontalLeft
// OrientationHorizontalRight is used to indicate a landscape orientation with the top to the right
OrientationHorizontalRight
)