| GNOME Desktop Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Signals | ||||
#include <libgnomeui/gnome-bg.h>
GnomeBG;
enum GnomeBGColorType;
enum GnomeBGPlacement;
#define GNOME_BG_KEY_DIR
GnomeBG * gnome_bg_new (void);
void gnome_bg_load_from_preferences (GnomeBG *bg,
GConfClient *client);
void gnome_bg_save_to_preferences (GnomeBG *bg,
GConfClient *client);
void gnome_bg_set_filename (GnomeBG *bg,
const char *filename);
void gnome_bg_set_placement (GnomeBG *bg,
GnomeBGPlacement placement);
void gnome_bg_set_color (GnomeBG *bg,
GnomeBGColorType type,
GdkColor *primary,
GdkColor *secondary);
const gchar * gnome_bg_get_filename (GnomeBG *bg);
GnomeBGPlacement gnome_bg_get_placement (GnomeBG *bg);
void gnome_bg_get_color (GnomeBG *bg,
GnomeBGColorType *type,
GdkColor *primary,
GdkColor *secondary);
void gnome_bg_draw (GnomeBG *bg,
GdkPixbuf *dest,
GdkScreen *screen,
gboolean is_root);
gboolean gnome_bg_get_image_size (GnomeBG *bg,
GnomeDesktopThumbnailFactory *factory,
int best_width,
int best_height,
int *width,
int *height);
GdkPixbuf * gnome_bg_create_thumbnail (GnomeBG *bg,
GnomeDesktopThumbnailFactory *factory,
GdkScreen *screen,
int dest_width,
int dest_height);
gboolean gnome_bg_is_dark (GnomeBG *bg,
int dest_width,
int dest_height);
typedef enum {
GNOME_BG_COLOR_SOLID,
GNOME_BG_COLOR_H_GRADIENT,
GNOME_BG_COLOR_V_GRADIENT
} GnomeBGColorType;
typedef enum {
GNOME_BG_PLACEMENT_TILED,
GNOME_BG_PLACEMENT_ZOOMED,
GNOME_BG_PLACEMENT_CENTERED,
GNOME_BG_PLACEMENT_SCALED,
GNOME_BG_PLACEMENT_FILL_SCREEN,
GNOME_BG_PLACEMENT_SPANNED
} GnomeBGPlacement;
void gnome_bg_load_from_preferences (GnomeBG *bg,GConfClient *client);
|
|
|
void gnome_bg_save_to_preferences (GnomeBG *bg,GConfClient *client);
|
|
|
void gnome_bg_set_filename (GnomeBG *bg,const char *filename);
|
|
|
void gnome_bg_set_placement (GnomeBG *bg,GnomeBGPlacement placement);
|
|
|
void gnome_bg_set_color (GnomeBG *bg,GnomeBGColorType type,GdkColor *primary,GdkColor *secondary);
|
|
|
|
|
|
|
void gnome_bg_get_color (GnomeBG *bg,GnomeBGColorType *type,GdkColor *primary,GdkColor *secondary);
|
|
|
|
|
|
|
void gnome_bg_draw (GnomeBG *bg,GdkPixbuf *dest,GdkScreen *screen,gboolean is_root);
|
|
|
|
|
|
|
gboolean gnome_bg_get_image_size (GnomeBG *bg,GnomeDesktopThumbnailFactory *factory,int best_width,int best_height,int *width,int *height);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
GdkPixbuf * gnome_bg_create_thumbnail (GnomeBG *bg,GnomeDesktopThumbnailFactory *factory,GdkScreen *screen,int dest_width,int dest_height);
|
|
|
|
|
|
|
|
|
|
Returns : |
gboolean gnome_bg_is_dark (GnomeBG *bg,int dest_width,int dest_height);
|
|
|
|
|
|
Returns : |
"changed" signalvoid user_function (GnomeBG *bg,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |
"transitioned" signalvoid user_function (GnomeBG *bg,
gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |