Galago - desktop presence framework

galago-image.h File Reference

Galago Image API. More...

#include <stdlib.h>
#include <libgalago/galago-object.h>

Go to the source code of this file.


Image API

GalagoObjectClassgalago_image_get_class (void)
 Returns the class for a GalagoImage.
void galago_image_set_image_data (GalagoImage *image, const unsigned char *data, size_t len)
 Sets the image's image data.
void galago_image_get_image_data (const GalagoImage *image, unsigned char **ret_data, size_t *ret_len)
 Returns an image's image data.

Defines

#define GALAGO_CLASS_IMAGE   (galago_image_get_class())
#define GALAGO_IMAGE(obj)   GALAGO_OBJECT_CAST((obj), GALAGO_CLASS_IMAGE, GalagoImage)
#define GALAGO_IS_IMAGE(obj)   (GALAGO_IS_OBJECT(obj) && galago_object_check_cast((obj), GALAGO_CLASS_IMAGE))

Typedefs

typedef _GalagoImage GalagoImage
typedef _GalagoImageClass GalagoImageClass
typedef _GalagoImagePrivate GalagoImagePrivate

Detailed Description

Galago Image API.

Copyright:
(C) 2004-2005 Christian Hammond
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 2.1 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file galago-image.h.


Function Documentation

GalagoObjectClass* galago_image_get_class void   ) 
 

Returns the class for a GalagoImage.

Returns:
The GalagoImage class.

void galago_image_get_image_data const GalagoImage *  image,
unsigned char **  ret_data,
size_t *  ret_len
 

Returns an image's image data.

Parameters:
image The image.
ret_data The returned image data.
ret_len The returned image data length.

void galago_image_set_image_data GalagoImage *  image,
const unsigned char *  data,
size_t  len
 

Sets the image's image data.

Parameters:
image The image.
data The image data.
len The image data length.