-
Notifications
You must be signed in to change notification settings - Fork 0
DisplayServer
Namespace: Electron2D
Provides display, orientation and virtual keyboard state.
public static class Electron2D.DisplayServerThe 0.1.0 Preview implementation stores a compact process-wide state used by mobile input and export pipelines. Platform backends feed this state through internal methods; public methods expose stable values without native handles.
All methods synchronize access to process-wide display state.
This class is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDragElectron2D.InputEventScreenTouch
| Member | Kind | Summary |
|---|---|---|
GetDisplaySafeArea() |
Method | Gets the current display safe area. |
ScreenGetOrientation(System.Int32) |
Method | Gets the current screen orientation state. |
ScreenSetOrientation(Electron2D.DisplayServer.ScreenOrientation, System.Int32) |
Method | Sets the requested screen orientation state. |
VirtualKeyboardGetHeight() |
Method | Gets the current virtual keyboard height. |
VirtualKeyboardHide() |
Method | Hides the virtual keyboard. |
VirtualKeyboardShow(System.String, Electron2D.Rect2, Electron2D.DisplayServer.VirtualKeyboardType, System.Int32, System.Int32, System.Int32) |
Method | Shows the virtual keyboard. |
Kind: Method
public static Electron2D.Rect2I GetDisplaySafeArea()()Gets the current display safe area.
The returned rectangle is a snapshot. Platform updates that arrive later do not mutate previously returned values.
The unobscured display area, or an empty rectangle when the platform has not reported one.
This method is safe to call from any thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.DisplayServer
Kind: Method
public static Electron2D.DisplayServer.ScreenOrientation ScreenGetOrientation(System.Int32)(System.Int32 screen)Gets the current screen orientation state.
The screen parameter is accepted for API compatibility
with future multi-screen support and is ignored in this baseline.
-
screen: The screen index. The 0.1.0 Preview stores one process-wide state.
The current screen orientation.
This method is safe to call from any thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.DisplayServer.ScreenSetOrientation(Electron2D.DisplayServer.ScreenOrientation,System.Int32)
Kind: Method
public static System.Void ScreenSetOrientation(Electron2D.DisplayServer.ScreenOrientation, System.Int32)(Electron2D.DisplayServer.ScreenOrientation orientation, System.Int32 screen)Sets the requested screen orientation state.
Invalid enum values are ignored. The request is recorded for the platform backend but does not expose any native display object through public API.
-
orientation: The requested orientation. -
screen: The screen index. The 0.1.0 Preview stores one process-wide state.
This method is safe to call from any thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.DisplayServer.ScreenGetOrientation(System.Int32)
Kind: Method
public static System.Int32 VirtualKeyboardGetHeight()()Gets the current virtual keyboard height.
This method follows the validation and lifetime rules of its declaring type.
The last reported virtual keyboard height in pixels, or 0 when the
virtual keyboard is hidden or unsupported.
This method is safe to call from any thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.DisplayServer.VirtualKeyboardHideElectron2D.DisplayServer.VirtualKeyboardShow(System.String,Electron2D.Rect2,Electron2D.DisplayServer.VirtualKeyboardType,System.Int32,System.Int32,System.Int32)
Kind: Method
public static System.Void VirtualKeyboardHide()()Hides the virtual keyboard.
This call clears the stored keyboard request and resets the reported height to zero. Unsupported platforms treat it as a no-op.
This method is safe to call from any thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.DisplayServer.VirtualKeyboardShow(System.String,Electron2D.Rect2,Electron2D.DisplayServer.VirtualKeyboardType,System.Int32,System.Int32,System.Int32)
VirtualKeyboardShow(System.String, Electron2D.Rect2, Electron2D.DisplayServer.VirtualKeyboardType, System.Int32, System.Int32, System.Int32)
Kind: Method
public static System.Void VirtualKeyboardShow(System.String, Electron2D.Rect2, Electron2D.DisplayServer.VirtualKeyboardType, System.Int32, System.Int32, System.Int32)(System.String existingText, Electron2D.Rect2 position, Electron2D.DisplayServer.VirtualKeyboardType type, System.Int32 maxLength, System.Int32 cursorStart, System.Int32 cursorEnd)Shows the virtual keyboard.
This method records the request for the platform backend. Passing
null for existingText stores an empty string.
Invalid keyboard types fall back to Electron2D.DisplayServer.VirtualKeyboardType.Default.
-
existingText: The text already present in the edited control. -
position: The edited control rectangle in window coordinates. -
type: The requested virtual keyboard layout. -
maxLength: The maximum accepted text length, or-1for unlimited input. -
cursorStart: The start of the current selection, or-1when unknown. -
cursorEnd: The end of the current selection, or-1when unknown.
This method is safe to call from any thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.DisplayServer.VirtualKeyboardGetHeightElectron2D.DisplayServer.VirtualKeyboardHide
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.