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
Current
public static IWindow Current { get; }
Property Value
IsRenderingPhase
public bool IsRenderingPhase { get; }
Property Value
SafeAreaInsets
public Rectangle SafeAreaInsets { get; protected set; }
Property Value
Tag
public object Tag { get; set; }
Property Value
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
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
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
Events
Activated
public event Action Activated
Event Type
Closed
public event Action Closed
Event Type
Closing
public event ClosingDelegate Closing
Event Type
Deactivated
public event Action Deactivated
Event Type
Moved
public event Action Moved
Event Type
Rendering
public event Action Rendering
Event Type
Resized
public event ResizeDelegate Resized
Event Type
SafeAreaInsetsChanged
public event SafeAreaInsetsChangedDelegate SafeAreaInsetsChanged
Event Type
Sync
public event Action Sync
Event Type
UnhandledExceptionOnUpdate
public event Action<Exception> UnhandledExceptionOnUpdate
Event Type
Updating
public event UpdatingDelegate Updating
Event Type
VisibleChanging
public event VisibleChangingDelegate VisibleChanging