diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-15 17:04:39 -0500 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-02-18 17:14:24 +0100 |
commit | 1db87c897f930171646351c99af7df09dc7ec949 (patch) | |
tree | 7b7783b11fa91636cac8c0cc6380dff150b02656 /gdk/gdkframeclockprivate.h | |
parent | 1da329b2bd0bcf1303d9cc557055f77482420967 (diff) | |
download | gtk+-1db87c897f930171646351c99af7df09dc7ec949.tar.gz |
Add gdk_frame_clock_begin/end_updating()
Add an API to start or stop continually updating the frame clock.
This is a slight convenience for applcations and avoids the problem
of getting one more frame run after an animation stops, but the
primary motivation for this is because it looks like we might have
to use timeBeginPeriod()/timeEndPeriod() on Windows to get reasonably
accurate timing, and for that we'll need to know if there is an
animation running.
https://bugzilla.gnome.org/show_bug.cgi?id=693934
Diffstat (limited to 'gdk/gdkframeclockprivate.h')
-rw-r--r-- | gdk/gdkframeclockprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkframeclockprivate.h b/gdk/gdkframeclockprivate.h index fd505bec6b..27629e38aa 100644 --- a/gdk/gdkframeclockprivate.h +++ b/gdk/gdkframeclockprivate.h @@ -49,6 +49,8 @@ struct _GdkFrameClockClass void (* request_phase) (GdkFrameClock *clock, GdkFrameClockPhase phase); + void (* begin_updating) (GdkFrameClock *clock); + void (* end_updating) (GdkFrameClock *clock); void (* freeze) (GdkFrameClock *clock); void (* thaw) (GdkFrameClock *clock); |