Carbon Programming/Handling events

From Wikibooks, open books for an open world
< Carbon Programming
Jump to: navigation, search

[edit] Event loop

The event loop is started with one function call:

  • RunApplicationEventLoop();

The event loop will process events as long as the application is running. To exit the event loop, call QuitApplicationEventLoop().


[edit] Registering events

  • InstallEventHandler () - Creates an event handler for the application.
  • AddEventTypesToHandler() - Adds an event used by the handler.
Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export