Re: gtk and timer events
- From: Paul Davis <paul linuxaudiosystems com>
- To: tj <999alfred comcast net>
- Cc: gtk-list gnome org
- Subject: Re: gtk and timer events
- Date: Tue, 13 Mar 2007 12:05:20 -0400
On Tue, 2007-03-13 at 11:19 -0400, tj wrote:
> Hello, I am new to gtk and I need to port an application to it. However,
> there is one thing that I noticed right off of the bat.
>
> It seems there is no timer event. Like in other widget tool kits where
> you create a timer associated with a window ID and give it a timeout
> value. When it times out it generates a timer event to that window.
>
> If there is no timeout event, how do apps that "move" objects across a
> screen, like a game, do so while still entering the event loop to wait
> for user/system inputs?
>
> Have I just overlooked it or isit just not there?
g_timeout_add (msecs, function, pointer_arg)
its part of the "main event loop" structure that lives in glib, not gtk,
hence its not part of gtk but glib.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]