Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw events! #2

Open
aseemk opened this issue Feb 25, 2011 · 0 comments
Open

Draw events! #2

aseemk opened this issue Feb 25, 2011 · 0 comments
Labels

Comments

@aseemk
Copy link
Owner

aseemk commented Feb 25, 2011

Just as it's helpful to know when animation has begun, is happening and has ended, it can be really useful for apps to know when drawing has begun, is happening and has ended. The last one in particular is equivalent to "the image has resolved (for now at least)", which can be really useful for e.g. taking a snapshot, knowing that it's okay to move (e.g. slideshow), hiding a throbber, etc.

We could implement this similar to how we implement the animation events: each frame, see if the drawer needs an update; if it does, it's waiting for new tiles, which means it's still drawing; if it doesn't, and animation has finished, drawing is finished. See this Get Satisfaction post where I share this idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant