| 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.1 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 |
|
| 24 |
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) |
| 25 |
#error "Only <clutter/clutter.h> can be included directly." |
| 26 |
#endif |
| 27 |
|
| 28 |
#ifndef __CLUTTER_TEXTURE_DEPRECATED_H__ |
| 29 |
#define __CLUTTER_TEXTURE_DEPRECATED_H__ |
| 30 |
|
| 31 |
#include <clutter/clutter-texture.h> |
| 32 |
|
| 33 |
G_BEGIN_DECLS |
| 34 |
|
| 35 |
CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_image_new) |
| 36 |
ClutterActor * clutter_texture_new (void); |
| 37 |
|
| 38 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and platform-specific image loading) |
| 39 |
ClutterActor * clutter_texture_new_from_file (const gchar *filename, |
| 40 |
GError **error); |
| 41 |
|
| 42 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and platform-specific image loading) |
| 43 |
gboolean clutter_texture_set_from_file (ClutterTexture *texture, |
| 44 |
const gchar *filename, |
| 45 |
GError **error); |
| 46 |
CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_image_set_data) |
| 47 |
gboolean clutter_texture_set_from_rgb_data (ClutterTexture *texture, |
| 48 |
const guchar *data, |
| 49 |
gboolean has_alpha, |
| 50 |
gint width, |
| 51 |
gint height, |
| 52 |
gint rowstride, |
| 53 |
gint bpp, |
| 54 |
ClutterTextureFlags flags, |
| 55 |
GError **error); |
| 56 |
CLUTTER_DEPRECATED_IN_1_12_FOR(clutter_image_set_area) |
| 57 |
gboolean clutter_texture_set_area_from_rgb_data (ClutterTexture *texture, |
| 58 |
const guchar *data, |
| 59 |
gboolean has_alpha, |
| 60 |
gint x, |
| 61 |
gint y, |
| 62 |
gint width, |
| 63 |
gint height, |
| 64 |
gint rowstride, |
| 65 |
gint bpp, |
| 66 |
ClutterTextureFlags flags, |
| 67 |
GError **error); |
| 68 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_content_get_preferred_size) |
| 69 |
void clutter_texture_get_base_size (ClutterTexture *texture, |
| 70 |
gint *width, |
| 71 |
gint *height); |
| 72 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_actor_set_content_scaling_filters) |
| 73 |
void clutter_texture_set_filter_quality (ClutterTexture *texture, |
| 74 |
ClutterTextureQuality filter_quality); |
| 75 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_actor_get_content_scaling_filters) |
| 76 |
ClutterTextureQuality clutter_texture_get_filter_quality (ClutterTexture *texture); |
| 77 |
CLUTTER_DEPRECATED_IN_1_12 |
| 78 |
CoglHandle clutter_texture_get_cogl_texture (ClutterTexture *texture); |
| 79 |
CLUTTER_DEPRECATED_IN_1_12 |
| 80 |
void clutter_texture_set_cogl_texture (ClutterTexture *texture, |
| 81 |
CoglHandle cogl_tex); |
| 82 |
CLUTTER_DEPRECATED_IN_1_12 |
| 83 |
CoglHandle clutter_texture_get_cogl_material (ClutterTexture *texture); |
| 84 |
CLUTTER_DEPRECATED_IN_1_12 |
| 85 |
void clutter_texture_set_cogl_material (ClutterTexture *texture, |
| 86 |
CoglHandle cogl_material); |
| 87 |
CLUTTER_DEPRECATED_IN_1_12 |
| 88 |
void clutter_texture_set_sync_size (ClutterTexture *texture, |
| 89 |
gboolean sync_size); |
| 90 |
CLUTTER_DEPRECATED_IN_1_12 |
| 91 |
gboolean clutter_texture_get_sync_size (ClutterTexture *texture); |
| 92 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_actor_set_content_repeat) |
| 93 |
void clutter_texture_set_repeat (ClutterTexture *texture, |
| 94 |
gboolean repeat_x, |
| 95 |
gboolean repeat_y); |
| 96 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_actor_get_content_repeat) |
| 97 |
void clutter_texture_get_repeat (ClutterTexture *texture, |
| 98 |
gboolean *repeat_x, |
| 99 |
gboolean *repeat_y); |
| 100 |
CLUTTER_DEPRECATED_IN_1_12 |
| 101 |
CoglPixelFormat clutter_texture_get_pixel_format (ClutterTexture *texture); |
| 102 |
CLUTTER_DEPRECATED_IN_1_12 |
| 103 |
gint clutter_texture_get_max_tile_waste (ClutterTexture *texture); |
| 104 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_actor_set_content_gravity) |
| 105 |
void clutter_texture_set_keep_aspect_ratio (ClutterTexture *texture, |
| 106 |
gboolean keep_aspect); |
| 107 |
CLUTTER_DEPRECATED_IN_1_12_FOR(ClutterImage and clutter_actor_get_content_gravity) |
| 108 |
gboolean clutter_texture_get_keep_aspect_ratio (ClutterTexture *texture); |
| 109 |
CLUTTER_DEPRECATED_IN_1_12 |
| 110 |
void clutter_texture_set_load_async (ClutterTexture *texture, |
| 111 |
gboolean load_async); |
| 112 |
CLUTTER_DEPRECATED_IN_1_12 |
| 113 |
gboolean clutter_texture_get_load_async (ClutterTexture *texture); |
| 114 |
CLUTTER_DEPRECATED_IN_1_12 |
| 115 |
void clutter_texture_set_load_data_async (ClutterTexture *texture, |
| 116 |
gboolean load_async); |
| 117 |
CLUTTER_DEPRECATED_IN_1_12 |
| 118 |
gboolean clutter_texture_get_load_data_async (ClutterTexture *texture); |
| 119 |
CLUTTER_DEPRECATED_IN_1_12 |
| 120 |
void clutter_texture_set_pick_with_alpha (ClutterTexture *texture, |
| 121 |
gboolean pick_with_alpha); |
| 122 |
CLUTTER_DEPRECATED_IN_1_12 |
| 123 |
gboolean clutter_texture_get_pick_with_alpha (ClutterTexture *texture); |
| 124 |
|
| 125 |
CLUTTER_DEPRECATED_IN_1_8_FOR(ClutterOffscreenEffect) |
| 126 |
ClutterActor * clutter_texture_new_from_actor (ClutterActor *actor); |
| 127 |
|
| 128 |
CLUTTER_DEPRECATED_IN_1_10 |
| 129 |
gboolean clutter_texture_set_from_yuv_data (ClutterTexture *texture, |
| 130 |
const guchar *data, |
| 131 |
gint width, |
| 132 |
gint height, |
| 133 |
ClutterTextureFlags flags, |
| 134 |
GError **error); |
| 135 |
|
| 136 |
G_END_DECLS |
| 137 |
|
| 138 |
#endif /* __CLUTTER_TEXTURE_DEPRECATED_H__ */ |