2 * AxWin Window Manager Interface Library
3 * By John Hodge (thePowersGang)
4 * This file is published under the terms of the Acess Licence. See the
5 * file COPYING for details.
7 * messages.c - Message Handling
12 int AxWin_MessageLoop();
13 tAxWin_Message *AxWin_WaitForMessage();
14 int AxWin_HandleMessage(tAxWin_Message *Message);
18 * \brief Loop forever, checking and waiting for messages
20 int AxWin_MessageLoop()
26 msg = AxWin_WaitForMessage();
27 ret = AxWin_HandleMessage(msg);
35 * \brief Wait for a message
37 tAxWin_Message *AxWin_WaitForMessage()
43 switch( giAxWin_Mode )
46 while( (length = SysGetMessage(&src, NULL)) == 0 ) sleep();
48 SysGetMessage(NULL, ret);
57 * \brief Handles a recieved message
59 int AxWin_HandleMessage(tAxWin_Message *Message)