Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (30 loc) · 816 Bytes

deviceorientation.md

File metadata and controls

38 lines (30 loc) · 816 Bytes
redirect_to layout tags title
page
api
Fyne API fyne

fyne


import "fyne.io/fyne"

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
)