nanogui: I want Timer event
Subject:
Re: [nanogui] I want Timer event
From:
"Greg Haerr" ####@####.####
Date:
29 Sep 2001 23:52:39 -0000
Message-Id: <042901c14940$3de5f5e0$3aba46a6@xmission.com>
: I want to use Timer event in my program, but there is no such a thing in
Nano-X. could you please tell me how to implement a timer mechnisam in nanox ?
The CVS Microwindows 0.89pre8 includes new timer functions,
GrCreateTimer and GrDestroyTimer, which send a
GR_EVENT_TYPE_TIMER when they tick off. Also, you can
use the GrGetNextEventTimeout in the main event loop.
: BTW, I ever try to use the SIGALRM to implement the timer but there is no
way to send such a event to the program!
: How to post a event to self ?
Currently, there's no round-trip method of arbitrarily
sending data, although you might try the GrSendClientData
functions.
Regards,
Greg