1
/* gsd-bg-slide_show.h - fade window background between two surfaces
3
Copyright 2008, Red Hat, Inc.
5
This file is part of the Gnome Library.
7
The Gnome Library is free software; you can redistribute it and/or
8
modify it under the terms of the GNU Library General Public License as
9
published by the Free Software Foundation; either version 2 of the
10
License, or (at your option) any later version.
12
The Gnome Library is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
Library General Public License for more details.
17
You should have received a copy of the GNU Library General Public
18
License along with the Gnome Library; see the file COPYING.LIB. If not,
19
write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
Boston, MA 02110-1301, USA.
22
Author: Ray Strode <rstrode@redhat.com>
25
#ifndef __GSD_BG_SLIDE_SHOW_H__
26
#define __GSD_BG_SLIDE_SHOW_H__
33
#define GSD_BG_TYPE_SLIDE_SHOW (gsd_bg_slide_show_get_type ())
34
#define GSD_BG_SLIDE_SHOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSD_BG_TYPE_SLIDE_SHOW, GsdBGSlideShow))
35
#define GSD_BG_SLIDE_SHOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSD_BG_TYPE_SLIDE_SHOW, GsdBGSlideShowClass))
36
#define GSD_BG_IS_SLIDE_SHOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSD_BG_TYPE_SLIDE_SHOW))
37
#define GSD_BG_IS_SLIDE_SHOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GSD_BG_TYPE_SLIDE_SHOW))
38
#define GSD_BG_SLIDE_SHOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSD_BG_TYPE_SLIDE_SHOW, GsdBGSlideShowClass))
40
typedef struct _GsdBGSlideShowPrivate GsdBGSlideShowPrivate;
41
typedef struct _GsdBGSlideShow GsdBGSlideShow;
42
typedef struct _GsdBGSlideShowClass GsdBGSlideShowClass;
44
struct _GsdBGSlideShow
46
GObject parent_object;
48
GsdBGSlideShowPrivate *priv;
51
struct _GsdBGSlideShowClass
53
GObjectClass parent_class;
56
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GsdBGSlideShow, g_object_unref)
58
GType gsd_bg_slide_show_get_type (void);
59
GsdBGSlideShow *gsd_bg_slide_show_new (const char *filename);
60
gboolean gsd_bg_slide_show_load (GsdBGSlideShow *self,
63
void gsd_bg_slide_show_load_async (GsdBGSlideShow *self,
64
GCancellable *cancellable,
65
GAsyncReadyCallback callback,
67
gboolean gsd_bg_slide_show_get_slide (GsdBGSlideShow *self,
77
void gsd_bg_slide_show_get_current_slide (GsdBGSlideShow *self,
87
double gsd_bg_slide_show_get_start_time (GsdBGSlideShow *self);
88
double gsd_bg_slide_show_get_total_duration (GsdBGSlideShow *self);
89
gboolean gsd_bg_slide_show_get_has_multiple_sizes (GsdBGSlideShow *self);
90
int gsd_bg_slide_show_get_num_slides (GsdBGSlideShow *self);