4 * An OpenGL based 'interactive canvas' library.
6 * Authored By Johan Bilien <johan.bilien@nokia.com>
8 * Copyright (C) 2007 OpenedHand
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.
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.
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/>.
26 #ifndef __CLUTTER_X11_TEXTURE_PIXMAP_H__
27 #define __CLUTTER_X11_TEXTURE_PIXMAP_H__
30 #include <glib-object.h>
31 #include <clutter/clutter.h>
37 #define CLUTTER_X11_TYPE_TEXTURE_PIXMAP (clutter_x11_texture_pixmap_get_type ())
38 #define CLUTTER_X11_TEXTURE_PIXMAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_X11_TYPE_TEXTURE_PIXMAP, ClutterX11TexturePixmap))
39 #define CLUTTER_X11_TEXTURE_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_X11_TYPE_TEXTURE_PIXMAP, ClutterX11TexturePixmapClass))
40 #define CLUTTER_X11_IS_TEXTURE_PIXMAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_X11_TYPE_TEXTURE_PIXMAP))
41 #define CLUTTER_X11_IS_TEXTURE_PIXMAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_X11_TYPE_TEXTURE_PIXMAP))
42 #define CLUTTER_X11_TEXTURE_PIXMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_X11_TYPE_TEXTURE_PIXMAP, ClutterX11TexturePixmapClass))
44 typedef struct _ClutterX11TexturePixmap ClutterX11TexturePixmap;
45 typedef struct _ClutterX11TexturePixmapClass ClutterX11TexturePixmapClass;
46 typedef struct _ClutterX11TexturePixmapPrivate ClutterX11TexturePixmapPrivate;
49 * ClutterX11TexturePixmap:
51 * The #ClutterX11TexturePixmap structure contains only private data
55 struct _ClutterX11TexturePixmap
58 ClutterTexture parent;
60 ClutterX11TexturePixmapPrivate *priv;
64 * ClutterX11TexturePixmapClass:
65 * @update_area: virtual function for updating the area of the texture
67 * The #ClutterX11TexturePixmapClass structure contains only private data
71 struct _ClutterX11TexturePixmapClass
74 ClutterTextureClass parent_class;
77 void (* update_area) (ClutterX11TexturePixmap *texture,
84 GType clutter_x11_texture_pixmap_get_type (void) G_GNUC_CONST;
86 ClutterActor *clutter_x11_texture_pixmap_new (void);
87 ClutterActor *clutter_x11_texture_pixmap_new_with_pixmap (Pixmap pixmap);
88 ClutterActor *clutter_x11_texture_pixmap_new_with_window (Window window);
90 void clutter_x11_texture_pixmap_set_automatic (ClutterX11TexturePixmap *texture,
92 void clutter_x11_texture_pixmap_set_pixmap (ClutterX11TexturePixmap *texture,
94 void clutter_x11_texture_pixmap_set_window (ClutterX11TexturePixmap *texture,
98 void clutter_x11_texture_pixmap_sync_window (ClutterX11TexturePixmap *texture);
99 void clutter_x11_texture_pixmap_update_area (ClutterX11TexturePixmap *texture,