Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Message queue
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Graphical user interfaces== [[Graphical user interface]]s (GUIs) employ a message queue, also called an ''event queue'' or ''input queue'', to pass [[event (computing)|graphical input actions]], such as [[mouse click]]s, keyboard events, or other user inputs, to the [[application program]].<ref>{{cite web |last1=Cartwright |first1=Corky |title=GUI Programming |url=https://www.cs.rice.edu/~cork/newBook/node89.html |website=Rice University:Robert (Corky) Cartwright |access-date=June 27, 2020}}</ref> The windowing system places messages indicating user or other events, such as timer ticks or messages sent by other threads, into the message queue. The GUI application removes these events one at a time by calling a routine called <code>getNextEvent()</code> or similar in an [[event loop]], and then calling the appropriate application routine to process that event.<ref>{{cite book |last1=Nystrom |first1=Robert |title=Game Programming Patterns |date=2014 |publisher=Genever Benning |isbn=978-0990582908 |url=https://gameprogrammingpatterns.com/event-queue.html |access-date=June 27, 2020}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)