Inheritance
System.Object
WindowAdapter
public abstract class WindowAdapter : Window
Fields
Declaration
protected float deltaTime
Field Value
Type |
Description |
System.Single |
|
Declaration
protected float unscaledDeltaTime
Field Value
Type |
Description |
System.Single |
|
Properties
Declaration
public bool alive { get; }
Property Value
Type |
Description |
System.Boolean |
|
titleContent
Declaration
public virtual GUIContent titleContent { get; }
Property Value
Type |
Description |
GUIContent |
|
Declaration
public WidgetInspectorService widgetInspectorService { get; }
Property Value
Declaration
public static List<WindowAdapter> windowAdapters { get; }
Property Value
Methods
Declaration
public void attachRootRenderBox(RenderBox root)
Parameters
Declaration
public void attachRootWidget(Func<Widget> root)
Parameters
Type |
Name |
Description |
System.Func<Widget> |
root |
|
Declaration
public void attachRootWidget(Widget root)
Parameters
Type |
Name |
Description |
Widget |
root |
|
Declaration
protected virtual Surface createSurface()
Returns
Declaration
protected bool displayMetricsChanged()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override void flushMicrotasks()
Overrides
Declaration
public override IDisposable getScope()
Returns
Type |
Description |
System.IDisposable |
|
Overrides
Declaration
protected virtual TimeSpan getTime()
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
protected abstract bool hasFocus()
Returns
Type |
Description |
System.Boolean |
|
Declaration
Declaration
Declaration
public virtual void OnGUI(Event evt = null)
Parameters
Type |
Name |
Description |
Event |
evt |
|
Declaration
public void onScroll(float deltaX, float deltaY, float posX, float posY, int buttonId)
Parameters
Type |
Name |
Description |
System.Single |
deltaX |
|
System.Single |
deltaY |
|
System.Single |
posX |
|
System.Single |
posY |
|
System.Int32 |
buttonId |
|
Declaration
public void onViewMetricsChanged()
postPointerEvent(PointerData)
Declaration
public void postPointerEvent(PointerData data)
Parameters
postPointerEvents(List<PointerData>)
Declaration
public void postPointerEvents(List<PointerData> data)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<PointerData> |
data |
|
Declaration
protected abstract int queryAntiAliasing()
Returns
Type |
Description |
System.Int32 |
|
Declaration
protected abstract float queryDevicePixelRatio()
Returns
Type |
Description |
System.Single |
|
Declaration
protected abstract Vector2 queryWindowSize()
Returns
Declaration
public override void render(Scene scene)
Parameters
Type |
Name |
Description |
Scene |
scene |
|
Overrides
Declaration
public override Timer run(TimeSpan duration, Action callback, bool periodic = false)
Parameters
Type |
Name |
Description |
System.TimeSpan |
duration |
|
System.Action |
callback |
|
System.Boolean |
periodic |
|
Returns
Overrides
runInMain(Action)
Declaration
public override Timer runInMain(Action callback)
Parameters
Type |
Name |
Description |
System.Action |
callback |
|
Returns
Overrides
Declaration
public override void scheduleFrame(bool regenerateLayerTree = true)
Parameters
Type |
Name |
Description |
System.Boolean |
regenerateLayerTree |
|
Overrides
Declaration
public override void scheduleMicrotask(Action callback)
Parameters
Type |
Name |
Description |
System.Action |
callback |
|
Overrides
Declaration
Declaration
protected virtual void updateDeltaTime()
Declaration
protected virtual void updateSafeArea()
Declaration
public void withBinding(Action fn)
Parameters
Type |
Name |
Description |
System.Action |
fn |
|
Declaration
public T withBindingFunc<T>(Func<T> fn)
Parameters
Type |
Name |
Description |
System.Func<T> |
fn |
|
Returns
Type Parameters
Extension Methods