| 1 |
/* |
| 2 |
* Clutter. |
| 3 |
* |
| 4 |
* An OpenGL based 'interactive canvas' library. |
| 5 |
* |
| 6 |
* Authored By Matthew Allum <[email protected]> |
| 7 |
* |
| 8 |
* Copyright (C) 2006 OpenedHand |
| 9 |
* |
| 10 |
* This library is free software; you can redistribute it and/or |
| 11 |
* modify it under the terms of the GNU Lesser General Public |
| 12 |
* License as published by the Free Software Foundation; either |
| 13 |
* version 2 of the License, or (at your option) any later version. |
| 14 |
* |
| 15 |
* This library is distributed in the hope that it will be useful, |
| 16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 |
* Lesser General Public License for more details. |
| 19 |
* |
| 20 |
* You should have received a copy of the GNU Lesser General Public |
| 21 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 22 |
* |
| 23 |
* ClutterTimeoutPool: pool of timeout functions using the same slice of |
| 24 |
* the GLib main loop |
| 25 |
* |
| 26 |
* Author: Emmanuele Bassi <[email protected]> |
| 27 |
* |
| 28 |
* Based on similar code by Tristan van Berkom |
| 29 |
*/ |
| 30 |
|
| 31 |
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) |
| 32 |
#error "Only <clutter/clutter.h> can be included directly." |
| 33 |
#endif |
| 34 |
|
| 35 |
#ifndef __CLUTTER_TIMEOUT_POOL_H__ |
| 36 |
#define __CLUTTER_TIMEOUT_POOL_H__ |
| 37 |
|
| 38 |
#include <clutter/clutter-types.h> |
| 39 |
|
| 40 |
G_BEGIN_DECLS |
| 41 |
|
| 42 |
/** |
| 43 |
* ClutterTimeoutPool: (skip) |
| 44 |
* |
| 45 |
* #ClutterTimeoutPool is an opaque structure |
| 46 |
* whose members cannot be directly accessed. |
| 47 |
* |
| 48 |
* Since: 0.6 |
| 49 |
* |
| 50 |
* Deprecated: 1.6 |
| 51 |
*/ |
| 52 |
typedef struct _ClutterTimeoutPool ClutterTimeoutPool; |
| 53 |
|
| 54 |
CLUTTER_DEPRECATED_IN_1_6 |
| 55 |
ClutterTimeoutPool *clutter_timeout_pool_new (gint priority); |
| 56 |
|
| 57 |
CLUTTER_DEPRECATED_IN_1_6 |
| 58 |
guint clutter_timeout_pool_add (ClutterTimeoutPool *pool, |
| 59 |
guint fps, |
| 60 |
GSourceFunc func, |
| 61 |
gpointer data, |
| 62 |
GDestroyNotify notify); |
| 63 |
CLUTTER_DEPRECATED_IN_1_6 |
| 64 |
void clutter_timeout_pool_remove (ClutterTimeoutPool *pool, |
| 65 |
guint id_); |
| 66 |
|
| 67 |
G_END_DECLS |
| 68 |
|
| 69 |
#endif /* __CLUTTER_TIMEOUT_POOL_H__ */ |