GnomeDesktop.BGSlideShow¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
File |
||
r |
Has multiple sizes |
||
r |
start time |
||
r |
total duration |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_object |
r |
Class Details¶
- class GnomeDesktop.BGSlideShow(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(filename)¶
- Parameters:
filename (
str
) – The filename of the slide show- Returns:
the new
GnomeDesktop.BGSlideShow
- Return type:
Creates a new object to manage a slide show. window background between two
cairo.Surfaces
.
- get_current_slide(width, height)¶
- Parameters:
- Returns:
- progress:
slide progress
- duration:
slide duration
- is_fixed:
if slide is fixed
- file1:
first file in slide
- file2:
second file in slide
- Return type:
(progress:
float
, duration:float
, is_fixed:bool
, file1:str
, file2:str
)
Returns the current slides progress.
- get_has_multiple_sizes()¶
-
gets whether or not the slide show has multiple sizes for different monitors
- get_slide(frame_number, width, height)¶
- Parameters:
- Returns:
True
if successful- progress:
slide progress
- duration:
slide duration
- is_fixed:
if slide is fixed
- file1:
first file in slide
- file2:
second file in slide
- Return type:
(
bool
, progress:float
, duration:float
, is_fixed:bool
, file1:str
, file2:str
)
Retrieves slide by frame number
- get_total_duration()¶
- Returns:
a timestamp
- Return type:
gets the total duration of the slide show
- load_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
callback (
Gio.AsyncReadyCallback
orNone
) – the callback
Tries to load the slide show asynchronously.
Property Details¶
- GnomeDesktop.BGSlideShow.props.file¶
- Name:
file
- Type:
- Default Value:
- Flags:
File
- GnomeDesktop.BGSlideShow.props.has_multiple_sizes¶
-
Has multiple sizes
- GnomeDesktop.BGSlideShow.props.start_time¶
-
start time