Debian Codegraph @

clutter/deprecated/clutter-fixed.h

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Authored By Matthew Allum <[email protected]>
7 * Tomas Frydrych <[email protected]>
8 *
9 * Copyright (C) 2006 OpenedHand
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
23 */
24
25 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
26 #error "Only <clutter/clutter.h> can be included directly."
27 #endif
28
29 #ifndef __CLUTTER_FIXED_H__
30 #define __CLUTTER_FIXED_H__
31
32 #include <cogl/cogl.h>
33 #include <clutter/clutter-types.h>
34
35 G_BEGIN_DECLS
36
37 #define CLUTTER_TYPE_PARAM_FIXED (clutter_param_fixed_get_type ())
38 #define CLUTTER_PARAM_SPEC_FIXED(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), CLUTTER_TYPE_PARAM_FIXED, ClutterParamSpecFixed))
39 #define CLUTTER_IS_PARAM_SPEC_FIXED(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), CLUTTER_TYPE_PARAM_FIXED))
40
41 /**
42 * CLUTTER_VALUE_HOLDS_FIXED:
43 * @x: a #GValue
44 *
45 * Evaluates to %TRUE if @x holds a #CoglFixed .
46 *
47 * Since: 0.8
48 *
49 * Deprecated: 1.10: Use %G_VALUE_HOLDS_INT instead
50 */
51 #define CLUTTER_VALUE_HOLDS_FIXED(x) (G_VALUE_HOLDS ((x), COGL_TYPE_FIXED))
52
53 typedef struct _ClutterParamSpecFixed ClutterParamSpecFixed;
54
55 /**
56 * ClutterParamSpecFixed: (skip)
57 * @minimum: lower boundary
58 * @maximum: higher boundary
59 * @default_value: default value
60 *
61 * #GParamSpec subclass for fixed point based properties
62 *
63 * Since: 0.8
64 *
65 * Deprecated: 1.10: Do not use fixed-point values in public
66 * API. If you must, use #GParamSpecInt instead.
67 */
68 struct _ClutterParamSpecFixed
69 {
70 /*< private >*/
71 GParamSpec parent_instance;
72
73 /*< public >*/
74 CoglFixed minimum;
75 CoglFixed maximum;
76 CoglFixed default_value;
77 };
78
79 CLUTTER_DEPRECATED_IN_1_10
80 GType clutter_param_fixed_get_type (void) G_GNUC_CONST;
81
82 CLUTTER_DEPRECATED_IN_1_10_FOR(g_value_set_int)
83 void clutter_value_set_fixed (GValue *value,
84 CoglFixed fixed_);
85 CLUTTER_DEPRECATED_IN_1_10_FOR(g_value_get_int)
86 CoglFixed clutter_value_get_fixed (const GValue *value);
87
88 CLUTTER_DEPRECATED_IN_1_10_FOR(g_param_spec_int)
89 GParamSpec * clutter_param_spec_fixed (const gchar *name,
90 const gchar *nick,
91 const gchar *blurb,
92 CoglFixed minimum,
93 CoglFixed maximum,
94 CoglFixed default_value,
95 GParamFlags flags);
96
97 G_END_DECLS
98
99 #endif /* __CLUTTER_FIXED_H__ */