AnypaperImage

AnypaperImage — genarates the images used by anyPaper

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <anypaper_image.h>

                    AnypaperImagePrivate;
struct              AnypaperImage;
gboolean            anypaper_image_make                 (AnypaperImage *image,
                                                         AnypaperParameters *parameters);
void                anypaper_image_move                 (AnypaperImage *image,
                                                         AnypaperParameters *parameters);

Object Hierarchy

  GObject
   +----AnypaperImage

Description

This application class generates the images used by anyPaper

The images present in AnypaperImage are created by anypaper_image_move() using the parameters passed to function and images previously created by anypaper_image_make(). The anypaper_image_make() function modifies some parameters passed by AnypaperParameters (mainly positionx and positiony, for indicating the range allowed for the variables) so they must be updated.

Details

AnypaperImagePrivate

typedef struct _AnypaperImagePrivate AnypaperImagePrivate;


struct AnypaperImage

struct AnypaperImage {
	GdkPixbuf *image;
	GdkPixbuf *preview;
};

Contains the generated images used by the program

GdkPixbuf *image;

contains the real size image created by anyPaper

GdkPixbuf *preview;

contains a thumbnail of the image created by anyPaper

anypaper_image_make ()

gboolean            anypaper_image_make                 (AnypaperImage *image,
                                                         AnypaperParameters *parameters);

Generate a GdkPixbuf background and a GdkPixbuf base image with the parameters selected in AnypaperParameters.

image :

a AnypaperImage

parameters :

a AnypaperParameters

Returns :

TRUE if the image file is successfully opened, FALSE if an error occurs

anypaper_image_move ()

void                anypaper_image_move                 (AnypaperImage *image,
                                                         AnypaperParameters *parameters);

Generate the GdkPixbuf image and the GdkPixbuf preview present in AnypaperImage struct with the parameters selected in AnypaperParameters and the images created by anypaper_image_make()

image :

a AnypaperImage

parameters :

a AnypaperParameters

See Also

AnypaperParameters