GnomeBG.BG¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Class Details¶
- class GnomeBG.BG(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new()¶
 - Return type:
 
- create_frame_thumbnail(factory, screen_area, dest_width, dest_height, frame_num)¶
 - Parameters:
 factory (
GnomeDesktop.DesktopThumbnailFactory) –screen_area (
cairo.RectangleInt) –dest_width (
int) –dest_height (
int) –frame_num (
int) –
- Returns:
 the newly created thumbnail or or
Noneif frame_num is out of bounds.- Return type:
 
Creates a thumbnail for a certain frame, where ‘frame’ is somewhat vaguely defined as ‘suitable point to show while single-stepping through the slideshow’.
- create_surface(window, width, height)¶
 - Parameters:
 window (
Gdk.Surface) –width (
int) –height (
int) –
- Returns:
 Noneon error (e.g. out of X connections)- Return type:
 
Create a surface that can be set as background for window.
- create_thumbnail(factory, screen_area, dest_width, dest_height)¶
 - Parameters:
 factory (
GnomeDesktop.DesktopThumbnailFactory) –screen_area (
cairo.RectangleInt) –dest_width (
int) –dest_height (
int) –
- Returns:
 a
GdkPixbuf.Pixbufshowing the background as a thumbnail- Return type:
 
- draw(dest)¶
 - Parameters:
 dest (
GdkPixbuf.Pixbuf) –
- get_image_size(factory, best_width, best_height, width, height)¶
 
- get_placement()¶
 - Return type:
 
- get_rgba(type, primary, secondary)¶
 - Parameters:
 type (
GDesktopEnums.BackgroundShading) –primary (
Gdk.RGBA) –secondary (
Gdk.RGBA) –
- is_dark(dest_width, dest_height)¶
 
- load_from_preferences(settings)¶
 - Parameters:
 settings (
Gio.Settings) –
- save_to_preferences(settings)¶
 - Parameters:
 settings (
Gio.Settings) –
- set_placement(placement)¶
 - Parameters:
 placement (
GDesktopEnums.BackgroundStyle) –
- set_rgba(type, primary, secondary)¶
 - Parameters:
 type (
GDesktopEnums.BackgroundShading) –primary (
Gdk.RGBA) –secondary (
Gdk.RGBA) –
Signal Details¶
- GnomeBG.BG.signals.changed(b_g)¶
 - Signal Name:
 changed- Flags:
 - Parameters:
 b_g (
GnomeBG.BG) – The object which received the signal
- GnomeBG.BG.signals.transitioned(b_g)¶
 - Signal Name:
 transitioned- Flags:
 - Parameters:
 b_g (
GnomeBG.BG) – The object which received the signal