protected void OnScreenDeviceNameChanged() { EventHelpers.Raise(this, ScreenDeviceNameChanged, EventArgs.Empty); }
internal void OnClientSizeChanged() { EventHelpers.Raise(this, ClientSizeChanged, EventArgs.Empty); }
protected void OnOrientationChanged() { EventHelpers.Raise(this, OrientationChanged, EventArgs.Empty); }
/// <summary> /// Called when <see cref="Visible"/> changed. /// </summary> /// <param name="sender">This <see cref="DrawableGameComponent"/>.</param> /// <param name="args">Arguments to the <see cref="VisibleChanged"/> event.</param> protected virtual void OnVisibleChanged(object sender, EventArgs args) { EventHelpers.Raise(sender, VisibleChanged, args); }
/// <summary> /// Called when <see cref="DrawOrder"/> changed. /// </summary> /// <param name="sender">This <see cref="DrawableGameComponent"/>.</param> /// <param name="args">Arguments to the <see cref="DrawOrderChanged"/> event.</param> protected virtual void OnDrawOrderChanged(object sender, EventArgs args) { EventHelpers.Raise(sender, DrawOrderChanged, args); }
// FIXME: Why does the GraphicsDeviceManager not know enough about the // GraphicsDevice to raise these events without help? internal void OnDeviceDisposing(EventArgs e) { EventHelpers.Raise(this, DeviceDisposing, e); }
private void OnInputAccepted(EventArgs e) { EventHelpers.Raise(this, InputAccepted, e); }
protected virtual void OnExiting(object sender, EventArgs args) { EventHelpers.Raise(sender, Exiting, args); }
protected virtual void OnDeactivated(object sender, EventArgs args) { AssertNotDisposed(); EventHelpers.Raise(sender, Deactivated, args); }
internal void OnDeviceCreated(EventArgs e) { EventHelpers.Raise(this, DeviceCreated, e); }
private void DisposeGraphicsDevice() { _graphicsDevice.Dispose(); EventHelpers.Raise(this, DeviceDisposing, EventArgs.Empty); _graphicsDevice = null; }
protected void OnDeviceResetting(EventArgs e) { EventHelpers.Raise(this, DeviceResetting, e); }
protected void OnDeviceDisposing(EventArgs e) { EventHelpers.Raise(this, DeviceDisposing, e); }
private void OnInputCanceled(EventArgs e) { EventHelpers.Raise(this, InputCanceled, e); }
protected void OnTextInput(object sender, TextInputEventArgs e) { EventHelpers.Raise(this, TextInput, e); }
public void Dispose() { Dispose(true); GC.SuppressFinalize(this); EventHelpers.Raise(this, Disposed, EventArgs.Empty); }
protected virtual void OnClientSizeChanged(EventArgs e) { EventHelpers.Raise(this, ClientSizeChanged, e); }
public override void DidRotate(UIInterfaceOrientation fromInterfaceOrientation) { base.DidRotate(fromInterfaceOrientation); EventHelpers.Raise(this, InterfaceOrientationChanged, EventArgs.Empty); }
// FIXME: Why does the GraphicsDeviceManager not know enough about the // GraphicsDevice to raise these events without help? internal void OnDeviceReset(EventArgs e) { EventHelpers.Raise(this, DeviceReset, e); }
/// <summary> /// Raises the AsyncRunLoopEnded event. This method must be called by /// derived classes when the asynchronous run loop they start has /// stopped running. /// </summary> protected void RaiseAsyncRunLoopEnded() { EventHelpers.Raise(this, AsyncRunLoopEnded, EventArgs.Empty); }