Debian Codegraph @

clutter/deprecated/clutter-cairo-texture.h

raw
1 /*
2 * Clutter
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Authored By: Emmanuele Bassi <[email protected]>
7 * Matthew Allum <[email protected]>
8 * Chris Lord <[email protected]>
9 * Iain Holmes <[email protected]>
10 * Neil Roberts <[email protected]>
11 *
12 * Copyright (C) 2008, 2009, 2010 Intel Corporation.
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
26 */
27
28 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
29 #error "Only <clutter/clutter.h> can be included directly."
30 #endif
31
32 #ifndef __CLUTTER_CAIRO_TEXTURE_H__
33 #define __CLUTTER_CAIRO_TEXTURE_H__
34
35 #include <clutter/clutter-texture.h>
36
37 G_BEGIN_DECLS
38
39 #define CLUTTER_TYPE_CAIRO_TEXTURE (clutter_cairo_texture_get_type ())
40 #define CLUTTER_CAIRO_TEXTURE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_CAIRO_TEXTURE, ClutterCairoTexture))
41 #define CLUTTER_CAIRO_TEXTURE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_CAIRO_TEXTURE, ClutterCairoTextureClass))
42 #define CLUTTER_IS_CAIRO_TEXTURE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_CAIRO_TEXTURE))
43 #define CLUTTER_IS_CAIRO_TEXTURE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_CAIRO_TEXTURE))
44 #define CLUTTER_CAIRO_TEXTURE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_CAIRO_TEXTURE, ClutterCairoTextureClass))
45
46 typedef struct _ClutterCairoTexture ClutterCairoTexture;
47 typedef struct _ClutterCairoTextureClass ClutterCairoTextureClass;
48 typedef struct _ClutterCairoTexturePrivate ClutterCairoTexturePrivate;
49
50 /**
51 * ClutterCairoTexture:
52 *
53 * The #ClutterCairoTexture struct contains only private data.
54 *
55 * Since: 1.0
56 *
57 * Deprecated: 1.12: Use #ClutterCanvas instead
58 */
59 struct _ClutterCairoTexture
60 {
61 /*< private >*/
62 ClutterTexture parent_instance;
63
64 ClutterCairoTexturePrivate *priv;
65 };
66
67 /**
68 * ClutterCairoTextureClass:
69 * @create_surface: class handler for the #ClutterCairoTexture::create-surface
70 * signal
71 * @draw: class handler for the #ClutterCairoTexture::draw signal
72 *
73 * The #ClutterCairoTextureClass struct contains only private data.
74 *
75 * Since: 1.0
76 *
77 * Deprecated: 1.12: Use #ClutterCanvas instead
78 */
79 struct _ClutterCairoTextureClass
80 {
81 /*< private >*/
82 ClutterTextureClass parent_class;
83
84 /*< public >*/
85 cairo_surface_t *(* create_surface) (ClutterCairoTexture *texture,
86 guint width,
87 guint height);
88
89 gboolean (* draw) (ClutterCairoTexture *texture,
90 cairo_t *cr);
91
92 /*< private >*/
93 void (*_clutter_cairo_3) (void);
94 void (*_clutter_cairo_4) (void);
95 };
96
97 CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_canvas_get_type)
98 GType clutter_cairo_texture_get_type (void) G_GNUC_CONST;
99
100 CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_canvas_new)
101 ClutterActor * clutter_cairo_texture_new (guint width,
102 guint height);
103
104 CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_canvas_set_size)
105 void clutter_cairo_texture_set_surface_size (ClutterCairoTexture *self,
106 guint width,
107 guint height);
108 CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_canvas_get_size)
109 void clutter_cairo_texture_get_surface_size (ClutterCairoTexture *self,
110 guint *width,
111 guint *height);
112 CLUTTER_DEPRECATED_IN_1_12
113 void clutter_cairo_texture_set_auto_resize (ClutterCairoTexture *self,
114 gboolean value);
115 CLUTTER_DEPRECATED_IN_1_12
116 gboolean clutter_cairo_texture_get_auto_resize (ClutterCairoTexture *self);
117
118 CLUTTER_DEPRECATED_IN_1_12
119 void clutter_cairo_texture_clear (ClutterCairoTexture *self);
120
121 CLUTTER_DEPRECATED_IN_1_12
122 void clutter_cairo_texture_invalidate_rectangle (ClutterCairoTexture *self,
123 cairo_rectangle_int_t *rect);
124 CLUTTER_DEPRECATED_IN_1_12
125 void clutter_cairo_texture_invalidate (ClutterCairoTexture *self);
126
127 CLUTTER_DEPRECATED_IN_1_8_FOR(clutter_cairo_texture_invalidate_rectangle)
128 cairo_t * clutter_cairo_texture_create_region (ClutterCairoTexture *self,
129 gint x_offset,
130 gint y_offset,
131 gint width,
132 gint height);
133
134 CLUTTER_DEPRECATED_IN_1_8_FOR(clutter_cairo_texture_invalidate)
135 cairo_t * clutter_cairo_texture_create (ClutterCairoTexture *self);
136
137 G_END_DECLS
138
139 #endif /* __CLUTTER_CAIRO_TEXTURE_DEPRECATED_H__ */