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);
 }
示例#4
0
 /// <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);
 }
示例#5
0
 /// <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);
 }
示例#6
0
 // 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);
 }
示例#7
0
 private void OnInputAccepted(EventArgs e)
 {
     EventHelpers.Raise(this, InputAccepted, e);
 }
示例#8
0
 protected virtual void OnExiting(object sender, EventArgs args)
 {
     EventHelpers.Raise(sender, Exiting, args);
 }
示例#9
0
 protected virtual void OnDeactivated(object sender, EventArgs args)
 {
     AssertNotDisposed();
     EventHelpers.Raise(sender, Deactivated, args);
 }
示例#10
0
 internal void OnDeviceCreated(EventArgs e)
 {
     EventHelpers.Raise(this, DeviceCreated, e);
 }
示例#11
0
 private void DisposeGraphicsDevice()
 {
     _graphicsDevice.Dispose();
     EventHelpers.Raise(this, DeviceDisposing, EventArgs.Empty);
     _graphicsDevice = null;
 }
示例#12
0
 protected void OnDeviceResetting(EventArgs e)
 {
     EventHelpers.Raise(this, DeviceResetting, e);
 }
示例#13
0
 protected void OnDeviceDisposing(EventArgs e)
 {
     EventHelpers.Raise(this, DeviceDisposing, e);
 }
示例#14
0
 private void OnInputCanceled(EventArgs e)
 {
     EventHelpers.Raise(this, InputCanceled, e);
 }
示例#15
0
 protected void OnTextInput(object sender, TextInputEventArgs e)
 {
     EventHelpers.Raise(this, TextInput, e);
 }
示例#16
0
 public void Dispose()
 {
     Dispose(true);
     GC.SuppressFinalize(this);
     EventHelpers.Raise(this, Disposed, EventArgs.Empty);
 }
示例#17
0
 protected virtual void OnClientSizeChanged(EventArgs e)
 {
     EventHelpers.Raise(this, ClientSizeChanged, e);
 }
示例#18
0
 public override void DidRotate(UIInterfaceOrientation fromInterfaceOrientation)
 {
     base.DidRotate(fromInterfaceOrientation);
     EventHelpers.Raise(this, InterfaceOrientationChanged, EventArgs.Empty);
 }
示例#19
0
 // 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);
 }
示例#20
0
 /// <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);
 }