Table of Contents

Class CommonWindow

Namespace
Lime
Assembly
Lime.dll
public abstract class CommonWindow
Inheritance
CommonWindow
Derived
Inherited Members

Constructors

CommonWindow()

protected CommonWindow()

Properties

Context

public IContext Context { get; set; }

Property Value

IContext

Current

public static IWindow Current { get; }

Property Value

IWindow

IsRenderingPhase

public bool IsRenderingPhase { get; }

Property Value

bool

SafeAreaInsets

public Rectangle SafeAreaInsets { get; protected set; }

Property Value

Rectangle

Tag

public object Tag { get; set; }

Property Value

object

VSync

Keeps refresh rate the same as monitor's refresh rate. Setting to false allows to render as much frames as possible. Works only on Windows with disabled Timer.

public virtual bool VSync { get; set; }

Property Value

bool

Methods

InvokeOnRendering(Action)

public void InvokeOnRendering(Action action)

Parameters

action Action

RaiseActivated()

protected void RaiseActivated()

RaiseClosed()

protected void RaiseClosed()

RaiseClosing(CloseReason)

protected bool RaiseClosing(CloseReason reason)

Parameters

reason CloseReason

Returns

bool

RaiseDeactivated()

protected void RaiseDeactivated()

RaiseMoved()

protected void RaiseMoved()

RaiseRendering()

protected void RaiseRendering()

RaiseResized(bool)

protected void RaiseResized(bool deviceRotated)

Parameters

deviceRotated bool

RaiseSafeAreaInsetsChanged()

protected void RaiseSafeAreaInsetsChanged()

RaiseSync()

protected void RaiseSync()

RaiseUpdating(float)

protected void RaiseUpdating(float delta)

Parameters

delta float

RaiseVisibleChanging(bool, bool)

protected void RaiseVisibleChanging(bool value, bool modal)

Parameters

value bool
modal bool

Events

Activated

public event Action Activated

Event Type

Action

Closed

public event Action Closed

Event Type

Action

Closing

public event ClosingDelegate Closing

Event Type

ClosingDelegate

Deactivated

public event Action Deactivated

Event Type

Action

Moved

public event Action Moved

Event Type

Action

Rendering

public event Action Rendering

Event Type

Action

Resized

public event ResizeDelegate Resized

Event Type

ResizeDelegate

SafeAreaInsetsChanged

public event SafeAreaInsetsChangedDelegate SafeAreaInsetsChanged

Event Type

SafeAreaInsetsChangedDelegate

Sync

public event Action Sync

Event Type

Action

UnhandledExceptionOnUpdate

public event Action<Exception> UnhandledExceptionOnUpdate

Event Type

Action<Exception>

Updating

public event UpdatingDelegate Updating

Event Type

UpdatingDelegate

VisibleChanging

public event VisibleChangingDelegate VisibleChanging

Event Type

VisibleChangingDelegate