Window::invalidate(bool) should fire an event.

Create issue
Issue #712 resolved
Paul Turner created an issue

Currently there is no way to be notified when a window is invalidated. It would be good to add an event for this.

Reproducibility: N/A

Additional information: Always be aware of potential performance impacts. It's probably worth measuring before and after speeds here.

Comments (1)

  1. Paul Turner reporter

    Event is actually fired by the Window::invalidate_impl function.

    Timed this before and after - the version firing the event is 0.56% slower. Given that invalidation should be a infrequent event relative to all the other stuff going on, this essentially equates to an insignificant increase (IMO).

    changeset: 3237:ee4e8aca2d5a user: Paul Turner <paul@cegui.org.uk> date: Sat May 19 09:19:18 2012 +0100 summary: ADD: Window now fires EventInvalidated when it is invalidated

  2. Log in to comment