Inheritance
System.Object
Window
public abstract class Window
Fields
Declaration
protected int _antiAliasing
Field Value
Type |
Description |
System.Int32 |
|
Declaration
protected float _devicePixelRatio
Field Value
Type |
Description |
System.Single |
|
Declaration
protected List<Locale> _locales
Field Value
Type |
Description |
System.Collections.Generic.List<Locale> |
|
Declaration
protected WindowPadding _padding
Field Value
Declaration
protected Size _physicalSize
Field Value
_textScaleFactor
Declaration
protected float _textScaleFactor
Field Value
Type |
Description |
System.Single |
|
Declaration
protected WindowPadding _viewInsets
Field Value
Declaration
public const int defaultAntiAliasing = 4
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int defaultMaxTargetFrameRate = 60
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int defaultMinTargetFrameRate = 25
Field Value
Type |
Description |
System.Int32 |
|
Properties
Declaration
public int antiAliasing { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public float devicePixelRatio { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public static bool hasInstance { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public static Window instance { get; set; }
Property Value
Declaration
public Locale locale { get; }
Property Value
Declaration
public List<Locale> locales { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Locale> |
|
Declaration
public FrameCallback onBeginFrame { get; set; }
Property Value
Declaration
public VoidCallback onDrawFrame { get; set; }
Property Value
Declaration
public static Action onFrameRateCoolDown { get; set; }
Property Value
Type |
Description |
System.Action |
|
Declaration
public static Action onFrameRateSpeedUp { get; set; }
Property Value
Type |
Description |
System.Action |
|
Declaration
public VoidCallback onLocaleChanged { get; set; }
Property Value
Declaration
public VoidCallback onMetricsChanged { get; set; }
Property Value
Declaration
public PointerDataPacketCallback onPointerEvent { get; set; }
Property Value
onTextScaleFactorChanged
Declaration
public VoidCallback onTextScaleFactorChanged { get; set; }
Property Value
Declaration
public WindowPadding padding { get; }
Property Value
Declaration
public Size physicalSize { get; }
Property Value
textScaleFactor
Declaration
public float textScaleFactor { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public WindowPadding viewInsets { get; }
Property Value
Methods
Declaration
public abstract void flushMicrotasks()
Declaration
Returns
Type |
Description |
System.Single |
|
Declaration
public abstract IDisposable getScope()
Returns
Type |
Description |
System.IDisposable |
|
Declaration
public Timer periodic(TimeSpan duration, Action callback)
Parameters
Type |
Name |
Description |
System.TimeSpan |
duration |
|
System.Action |
callback |
|
Returns
Declaration
public abstract void render(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Declaration
public Timer run(Action callback)
Parameters
Type |
Name |
Description |
System.Action |
callback |
|
Returns
Declaration
public abstract Timer run(TimeSpan duration, Action callback, bool periodic = false)
Parameters
Type |
Name |
Description |
System.TimeSpan |
duration |
|
System.Action |
callback |
|
System.Boolean |
periodic |
|
Returns
runInMain(Action)
Declaration
public abstract Timer runInMain(Action callback)
Parameters
Type |
Name |
Description |
System.Action |
callback |
|
Returns
Declaration
public abstract void scheduleFrame(bool regenerateLayerTree = true)
Parameters
Type |
Name |
Description |
System.Boolean |
regenerateLayerTree |
|
Declaration
public abstract void scheduleMicrotask(Action callback)
Parameters
Type |
Name |
Description |
System.Action |
callback |
|
Declaration
public void updateFPS(float unscaledDeltaTime)
Parameters
Type |
Name |
Description |
System.Single |
unscaledDeltaTime |
|
Extension Methods