| anypaper Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#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);
This application class manipulates the parameters used in anyPaper, also loads and saves configuration files
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
| filemane of source image | |
| selected style | |
| position of image in x direction | |
| position of image in y direction | |
| scale factor in x direction | |
| scale factor in y direction | |
| width of image | |
| height of image | |
| background color | |
| command line used for setting the wallpaper | |
| default file for saving the built wallpaper | |
| type of interpolation used | |
| quality parameter for JPEG files | |
| compression parameter for PNG files |
void anypaper_parameters_position_test (AnypaperParameters *parameters,gint rangex,gint rangey,gint positionx,gint positiony);
Sets the new position values if they are valid.
|
a AnypaperParameters |
|
half of the displacement allowed in x direction |
|
half of the displacement allowed in y direction |
|
the selected position on x position |
|
the selected position on x position |
void anypaper_parameters_load (AnypaperParameters *parameters,gchar *filename);
Sets the values of parameters on file in AnypaperParameters.
|
a AnypaperParameters |
|
name of file with the parameters to be loaded |
void anypaper_parameters_write (AnypaperParameters *parameters,gchar *lastWallpaperFile,gchar *rcFile);
Saves the values of parameters in AnypaperParameters on file.
|
a AnypaperParameters |
|
name of file to be written with the lastwallpaper parameters in AnypaperParameters |
|
name of file to be written with the resource parameters in AnypaperParameters |