FdBG

FdBG

Functions

Description

Functions

fd_bg_new ()

FdBG *
fd_bg_new (void);

fd_bg_load_from_preferences ()

void
fd_bg_load_from_preferences (FdBG *bg,
                             GSettings *settings);

fd_bg_save_to_preferences ()

void
fd_bg_save_to_preferences (FdBG *bg,
                           GSettings *settings);

fd_bg_set_filename ()

void
fd_bg_set_filename (FdBG *bg,
                    const char *filename);

fd_bg_set_placement ()

void
fd_bg_set_placement (FdBG *bg,
                     GDesktopBackgroundStyle placement);

fd_bg_set_rgba ()

void
fd_bg_set_rgba (FdBG *bg,
                GDesktopBackgroundShading type,
                GdkRGBA *primary,
                GdkRGBA *secondary);

fd_bg_get_placement ()

GDesktopBackgroundStyle
fd_bg_get_placement (FdBG *bg);

fd_bg_get_rgba ()

void
fd_bg_get_rgba (FdBG *bg,
                GDesktopBackgroundShading *type,
                GdkRGBA *primary,
                GdkRGBA *secondary);

fd_bg_get_filename ()

const gchar *
fd_bg_get_filename (FdBG *bg);

fd_bg_draw ()

void
fd_bg_draw (FdBG *bg,
            GdkPixbuf *dest);

fd_bg_create_surface ()

cairo_surface_t *
fd_bg_create_surface (FdBG *bg,
                      GdkWindow *window,
                      int width,
                      int height);

Create a surface that can be set as background for window .

Parameters

bg

FdBG

 

window

a GdkWindow object

 

width

the window width

 

height

the window height

 

Returns

NULL on error (e.g. out of X connections)


fd_bg_get_image_size ()

gboolean
fd_bg_get_image_size (FdBG *bg,
                      FdDesktopThumbnailFactory *factory,
                      int best_width,
                      int best_height,
                      int *width,
                      int *height);

fd_bg_create_thumbnail ()

GdkPixbuf *
fd_bg_create_thumbnail (FdBG *bg,
                        FdDesktopThumbnailFactory *factory,
                        GdkScreen *screen,
                        int dest_width,
                        int dest_height);

Returns

a GdkPixbuf showing the background as a thumbnail.

[transfer full]


fd_bg_is_dark ()

gboolean
fd_bg_is_dark (FdBG *bg,
               int dest_width,
               int dest_height);

fd_bg_has_multiple_sizes ()

gboolean
fd_bg_has_multiple_sizes (FdBG *bg);

fd_bg_changes_with_time ()

gboolean
fd_bg_changes_with_time (FdBG *bg);

fd_bg_create_frame_thumbnail ()

GdkPixbuf *
fd_bg_create_frame_thumbnail (FdBG *bg,
                              FdDesktopThumbnailFactory *factory,
                              GdkScreen *screen,
                              int dest_width,
                              int dest_height,
                              int frame_num);

Creates a thumbnail for a certain frame, where 'frame' is somewhat vaguely defined as 'suitable point to show while single-stepping through the slideshow'.

Returns

the newly created thumbnail or or NULL if frame_num is out of bounds.

[transfer full]