Content deleted Content added
Stevebroshar (talk | contribs) use phone links |
m →top: remove non-target link in For hatnote |
||
(One intermediate revision by one other user not shown) | |||
Line 1:
{{Short description |A function reference passed to and called by another function}}
{{For |a discussion of callback with computer
{{More references |date=September 2015}}
[[File:Callback-notitle.svg|thumb|370px|A callback is often back on the level of the original caller.]]
Line 18:
=== Event handling ===
A callback can be used for event handling. Often, consuming code registers a callback for a particular type of event. When that event occurs, the callback is called. Callbacks are often used to program the [[graphical user interface]] (GUI) of a program that runs in a [[windowing system]]. The application supplies a reference to a custom callback function for the windowing system to call. The windowing system calls this function to notify the application of events like [[computer mouse|mouse]] clicks and [[computer keyboard|key]] presses.
=== Asynchronous action ===
|