Skip to content

DisplayServer ScreenOrientation

Eduard Gushchin edited this page Jun 21, 2026 · 5 revisions

DisplayServer.ScreenOrientation

Back to API Reference

Namespace: Electron2D

Summary

Identifies a requested screen orientation.

Declaration

public enum Electron2D.DisplayServer.ScreenOrientation : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Remarks

Sensor-based values are accepted and stored even when the current platform backend cannot apply them immediately.

Thread Safety

Enumeration values are immutable and may be used from any thread.

Since

This enum is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Landscape Enum value Represents default landscape orientation.
Portrait Enum value Represents default portrait orientation.
ReverseLandscape Enum value Represents reverse landscape orientation.
ReversePortrait Enum value Represents reverse portrait orientation.
Sensor Enum value Represents automatic landscape or portrait orientation selected by sensors.
SensorLandscape Enum value Represents automatic landscape orientation selected by sensors.
SensorPortrait Enum value Represents automatic portrait orientation selected by sensors.

Member Details

Landscape

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation Landscape

Summary

Represents default landscape orientation.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

Portrait

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation Portrait

Summary

Represents default portrait orientation.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

ReverseLandscape

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation ReverseLandscape

Summary

Represents reverse landscape orientation.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

ReversePortrait

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation ReversePortrait

Summary

Represents reverse portrait orientation.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

Sensor

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation Sensor

Summary

Represents automatic landscape or portrait orientation selected by sensors.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

SensorLandscape

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation SensorLandscape

Summary

Represents automatic landscape orientation selected by sensors.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

SensorPortrait

Kind: Enum value

public const Electron2D.DisplayServer.ScreenOrientation SensorPortrait

Summary

Represents automatic portrait orientation selected by sensors.

Remarks

Use this value with APIs that accept ScreenOrientation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.DisplayServer.ScreenOrientation

Clone this wiki locally