GnomeDesktop.BG¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class GnomeDesktop.BG(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- create_frame_thumbnail(factory, screen, dest_width, dest_height, frame_num)¶
- Parameters:
factory (
GnomeDesktop.DesktopThumbnailFactory
) –screen (
Gdk.Screen
) –dest_width (
int
) –dest_height (
int
) –frame_num (
int
) –
- Returns:
the newly created thumbnail or or
None
if 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.Window
) –width (
int
) –height (
int
) –
- Returns:
None
on error (e.g. out of X connections)- Return type:
Create a surface that can be set as background for window.
- create_thumbnail(factory, screen, dest_width, dest_height)¶
- Parameters:
factory (
GnomeDesktop.DesktopThumbnailFactory
) –screen (
Gdk.Screen
) –dest_width (
int
) –dest_height (
int
) –
- Returns:
a
GdkPixbuf.Pixbuf
showing 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¶
- GnomeDesktop.BG.signals.changed(b_g)¶
- Signal Name:
changed
- Flags:
- Parameters:
b_g (
GnomeDesktop.BG
) – The object which received the signal
- GnomeDesktop.BG.signals.transitioned(b_g)¶
- Signal Name:
transitioned
- Flags:
- Parameters:
b_g (
GnomeDesktop.BG
) – The object which received the signal