~ci-train-bot/unity-settings-daemon/unity-settings-daemon-ubuntu-focal-3991

« back to all changes in this revision

Viewing changes to gnome-settings-daemon/gsd-bg-slide-show.h

  • Committer: Sebastien Bacher
  • Date: 2020-02-25 20:21:42 UTC
  • mfrom: (4197.1.1 drop-gnomebg)
  • Revision ID: seb128@ubuntu.com-20200225202142-y52rgu94nks70kij
Tags: 15.04.1+19.10.20190921-0ubuntu2
releasing package unity-settings-daemon version 15.04.1+19.10.20190921-0ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gsd-bg-slide_show.h - fade window background between two surfaces
 
2
 
 
3
   Copyright 2008, Red Hat, Inc.
 
4
 
 
5
   This file is part of the Gnome Library.
 
6
 
 
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.
 
11
 
 
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.
 
16
 
 
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.
 
21
 
 
22
   Author: Ray Strode <rstrode@redhat.com>
 
23
*/
 
24
 
 
25
#ifndef __GSD_BG_SLIDE_SHOW_H__
 
26
#define __GSD_BG_SLIDE_SHOW_H__
 
27
 
 
28
 
 
29
#include <gdk/gdk.h>
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
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))
 
39
 
 
40
typedef struct _GsdBGSlideShowPrivate GsdBGSlideShowPrivate;
 
41
typedef struct _GsdBGSlideShow GsdBGSlideShow;
 
42
typedef struct _GsdBGSlideShowClass GsdBGSlideShowClass;
 
43
 
 
44
struct _GsdBGSlideShow
 
45
{
 
46
        GObject parent_object;
 
47
 
 
48
        GsdBGSlideShowPrivate *priv;
 
49
};
 
50
 
 
51
struct _GsdBGSlideShowClass
 
52
{
 
53
        GObjectClass parent_class;
 
54
};
 
55
 
 
56
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GsdBGSlideShow, g_object_unref)
 
57
 
 
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,
 
61
                                            GError           **error);
 
62
 
 
63
void              gsd_bg_slide_show_load_async (GsdBGSlideShow    *self,
 
64
                                                  GCancellable        *cancellable,
 
65
                                                  GAsyncReadyCallback  callback,
 
66
                                                  gpointer             user_data);
 
67
gboolean          gsd_bg_slide_show_get_slide (GsdBGSlideShow *self,
 
68
                                                 int               frame_number,
 
69
                                                 int               width,
 
70
                                                 int               height,
 
71
                                                 gdouble          *progress,
 
72
                                                 double           *duration,
 
73
                                                 gboolean         *is_fixed,
 
74
                                                 const char      **file1,
 
75
                                                 const char      **file2);
 
76
 
 
77
void              gsd_bg_slide_show_get_current_slide (GsdBGSlideShow  *self,
 
78
                                                         int                width,
 
79
                                                         int                height,
 
80
                                                         gdouble           *progress,
 
81
                                                         double            *duration,
 
82
                                                         gboolean          *is_fixed,
 
83
                                                         const char       **file1,
 
84
                                                         const char       **file2);
 
85
 
 
86
 
 
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);
 
91
G_END_DECLS
 
92
 
 
93
#endif