1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
|
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpvectors.c
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <string.h>
#include "gimp.h"
#undef GIMP_DISABLE_DEPRECATED
#undef __GIMP_VECTORS_H__
#include "gimpvectors.h"
/**
* gimp_vectors_is_valid:
* @vectors_ID: The vectors object to check.
*
* Deprecated: Use gimp_item_is_valid() instead.
*
* Returns: Whether the vectors ID is valid.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_is_valid (gint32 vectors_ID)
{
return gimp_item_is_valid (vectors_ID);
}
/**
* gimp_vectors_get_image:
* @vectors_ID: The vectors object.
*
* Deprecated: Use gimp_item_get_image() instead.
*
* Returns: The vectors image.
*
* Since: GIMP 2.4
*/
gint32
gimp_vectors_get_image (gint32 vectors_ID)
{
return gimp_item_get_image (vectors_ID);
}
/**
* gimp_vectors_get_name:
* @vectors_ID: The vectors object.
*
* Deprecated: Use gimp_item_get_name() instead.
*
* Returns: The name of the vectors object.
*
* Since: GIMP 2.4
*/
gchar *
gimp_vectors_get_name (gint32 vectors_ID)
{
return gimp_item_get_name (vectors_ID);
}
/**
* gimp_vectors_set_name:
* @vectors_ID: The vectors object.
* @name: the new name of the path.
*
* Deprecated: Use gimp_item_set_name() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_set_name (gint32 vectors_ID,
const gchar *name)
{
return gimp_item_set_name (vectors_ID, name);
}
/**
* gimp_vectors_get_visible:
* @vectors_ID: The vectors object.
*
* Deprecated: Use gimp_item_get_visible() instead.
*
* Returns: TRUE if the path is visible, FALSE otherwise.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_get_visible (gint32 vectors_ID)
{
return gimp_item_get_visible (vectors_ID);
}
/**
* gimp_vectors_set_visible:
* @vectors_ID: The vectors object.
* @visible: Whether the path is visible.
*
* Deprecated: Use gimp_item_set_visible() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_set_visible (gint32 vectors_ID,
gboolean visible)
{
return gimp_item_set_visible (vectors_ID, visible);
}
/**
* gimp_vectors_get_linked:
* @vectors_ID: The vectors object.
*
* Deprecated: Use gimp_item_get_linked() instead.
*
* Returns: TRUE if the path is linked, FALSE otherwise.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_get_linked (gint32 vectors_ID)
{
return gimp_item_get_linked (vectors_ID);
}
/**
* gimp_vectors_set_linked:
* @vectors_ID: The vectors object.
* @linked: Whether the path is linked.
*
* Deprecated: Use gimp_item_set_linked() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_set_linked (gint32 vectors_ID,
gboolean linked)
{
return gimp_item_set_linked (vectors_ID, linked);
}
/**
* gimp_vectors_get_tattoo:
* @vectors_ID: The vectors object.
*
* Deprecated: Use gimp_item_get_tattoo() instead.
*
* Returns: The vectors tattoo.
*
* Since: GIMP 2.4
*/
gint
gimp_vectors_get_tattoo (gint32 vectors_ID)
{
return gimp_item_get_tattoo (vectors_ID);
}
/**
* gimp_vectors_set_tattoo:
* @vectors_ID: The vectors object.
* @tattoo: the new tattoo.
*
* Deprecated: Use gimp_item_set_tattoo() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
*/
gboolean
gimp_vectors_set_tattoo (gint32 vectors_ID,
gint tattoo)
{
return gimp_item_set_tattoo (vectors_ID, tattoo);
}
/**
* gimp_vectors_parasite_find:
* @vectors_ID: The vectors object.
* @name: The name of the parasite to find.
*
* Deprecated: Use gimp_item_get_parasite() instead.
*
* Returns: The found parasite.
*
* Since: GIMP 2.4
**/
GimpParasite *
gimp_vectors_parasite_find (gint32 vectors_ID,
const gchar *name)
{
return gimp_item_get_parasite (vectors_ID, name);
}
/**
* gimp_vectors_parasite_attach:
* @vectors_ID: The vectors object.
* @parasite: The parasite to attach to a vectors object.
*
* Deprecated: Use gimp_item_attach_parasite() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
**/
gboolean
gimp_vectors_parasite_attach (gint32 vectors_ID,
const GimpParasite *parasite)
{
return gimp_item_attach_parasite (vectors_ID, parasite);
}
/**
* gimp_vectors_parasite_detach:
* @vectors_ID: The vectors object.
* @name: The name of the parasite to detach from a vectors object.
*
* Deprecated: Use gimp_item_detach_parasite() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
**/
gboolean
gimp_vectors_parasite_detach (gint32 vectors_ID,
const gchar *name)
{
return gimp_item_detach_parasite (vectors_ID, name);
}
/**
* gimp_vectors_parasite_list:
* @vectors_ID: The vectors object.
* @num_parasites: The number of attached parasites.
* @parasites: The names of currently attached parasites.
*
* Deprecated: Use gimp_item_get_parasite_list() instead.
*
* Returns: TRUE on success.
*
* Since: GIMP 2.4
**/
gboolean
gimp_vectors_parasite_list (gint32 vectors_ID,
gint *num_parasites,
gchar ***parasites)
{
*parasites = gimp_item_get_parasite_list (vectors_ID, num_parasites);
return *parasites != NULL;
}
|