AnypaperParameters

AnypaperParameters — manipulates the parameters used in anyPaper

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <anypaper_parameters.h>

                    AnypaperParametersPrivate;
struct              AnypaperParameters;
void                anypaper_parameters_position_test   (AnypaperParameters *parameters,
                                                         gint rangex,
                                                         gint rangey,
                                                         gint positionx,
                                                         gint positiony);
void                anypaper_parameters_load            (AnypaperParameters *parameters,
                                                         gchar *filename);
void                anypaper_parameters_write           (AnypaperParameters *parameters,
                                                         gchar *lastWallpaperFile,
                                                         gchar *rcFile);

Object Hierarchy

  GObject
   +----AnypaperParameters

Description

This application class manipulates the parameters used in anyPaper, also loads and saves configuration files

Details

AnypaperParametersPrivate

typedef struct _AnypaperParametersPrivate AnypaperParametersPrivate;


struct AnypaperParameters

struct AnypaperParameters {
	gchar		*file;
	gint		style;
	gint		positionx;
	gint		positiony;
	gdouble		scalex;
	gdouble		scaley;
	gint		width;
	gint		height;
	gchar		*background;
	gchar		*command;
	gchar		*defaultfile;
	GdkInterpType interpolation;
	gint		jpegQuality;
	gint		pngCompression;
};

Contains the parameters used to build the images created by anyPaper

gchar *file;

filemane of source image

gint style;

selected style

gint positionx;

position of image in x direction

gint positiony;

position of image in y direction

gdouble scalex;

scale factor in x direction

gdouble scaley;

scale factor in y direction

gint width;

width of image

gint height;

height of image

gchar *background;

background color

gchar *command;

command line used for setting the wallpaper

gchar *defaultfile;

default file for saving the built wallpaper

GdkInterpType interpolation;

type of interpolation used

gint jpegQuality;

quality parameter for JPEG files

gint pngCompression;

compression parameter for PNG files

anypaper_parameters_position_test ()

void                anypaper_parameters_position_test   (AnypaperParameters *parameters,
                                                         gint rangex,
                                                         gint rangey,
                                                         gint positionx,
                                                         gint positiony);

Sets the new position values if they are valid.

parameters :

a AnypaperParameters

rangex :

half of the displacement allowed in x direction

rangey :

half of the displacement allowed in y direction

positionx :

the selected position on x position

positiony :

the selected position on x position

anypaper_parameters_load ()

void                anypaper_parameters_load            (AnypaperParameters *parameters,
                                                         gchar *filename);

Sets the values of parameters on file in AnypaperParameters.

parameters :

a AnypaperParameters

filename :

name of file with the parameters to be loaded

anypaper_parameters_write ()

void                anypaper_parameters_write           (AnypaperParameters *parameters,
                                                         gchar *lastWallpaperFile,
                                                         gchar *rcFile);

Saves the values of parameters in AnypaperParameters on file.

parameters :

a AnypaperParameters

lastWallpaperFile :

name of file to be written with the lastwallpaper parameters in AnypaperParameters

rcFile :

name of file to be written with the resource parameters in AnypaperParameters