Debian Codegraph @

gdk/quartz/gdkdisplaylinksource.h

raw
1 /* gdkdisplaylinksource.h
2 *
3 * Copyright (C) 2015 Christian Hergert <[email protected]>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors:
19 * Christian Hergert <[email protected]>
20 */
21
22 #ifndef GDK_DISPLAY_LINK_SOURCE_H
23 #define GDK_DISPLAY_LINK_SOURCE_H
24
25 #include <glib.h>
26
27 #include <QuartzCore/QuartzCore.h>
28
29 G_BEGIN_DECLS
30
31 typedef struct
32 {
33 GSource source;
34
35 CVDisplayLinkRef display_link;
36 gint64 refresh_interval;
37
38 volatile gint64 presentation_time;
39 volatile guint needs_dispatch;
40 } GdkDisplayLinkSource;
41
42 GSource *gdk_display_link_source_new (void);
43 void gdk_display_link_source_pause (GdkDisplayLinkSource *source);
44 void gdk_display_link_source_unpause (GdkDisplayLinkSource *source);
45
46 G_END_DECLS
47
48 #endif /* GDK_DISPLAY_LINK_SOURCE_H */