Blame libgnome-desktop/gnome-bg-slide-show.h

rpm-build 18b009
/* gnome-bg-slide_show.h - fade window background between two surfaces
rpm-build 18b009
rpm-build 18b009
   Copyright 2008, Red Hat, Inc.
rpm-build 18b009
rpm-build 18b009
   This file is part of the Gnome Library.
rpm-build 18b009
rpm-build 18b009
   The Gnome Library is free software; you can redistribute it and/or
rpm-build 18b009
   modify it under the terms of the GNU Library General Public License as
rpm-build 18b009
   published by the Free Software Foundation; either version 2 of the
rpm-build 18b009
   License, or (at your option) any later version.
rpm-build 18b009
rpm-build 18b009
   The Gnome Library is distributed in the hope that it will be useful,
rpm-build 18b009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 18b009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 18b009
   Library General Public License for more details.
rpm-build 18b009
rpm-build 18b009
   You should have received a copy of the GNU Library General Public
rpm-build 18b009
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
rpm-build 18b009
   write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
rpm-build 18b009
   Boston, MA 02110-1301, USA.
rpm-build 18b009
rpm-build 18b009
   Author: Ray Strode <rstrode@redhat.com>
rpm-build 18b009
*/
rpm-build 18b009
rpm-build 18b009
#ifndef __GNOME_BG_SLIDE_SHOW_H__
rpm-build 18b009
#define __GNOME_BG_SLIDE_SHOW_H__
rpm-build 18b009
rpm-build 18b009
#ifndef GNOME_DESKTOP_USE_UNSTABLE_API
rpm-build 18b009
#error    GnomeBGSlideShow is unstable API. You must define GNOME_DESKTOP_USE_UNSTABLE_API before including gnome-bg-slide_show.h
rpm-build 18b009
#endif
rpm-build 18b009
rpm-build 18b009
#include <gdk/gdk.h>
rpm-build 18b009
rpm-build 18b009
G_BEGIN_DECLS
rpm-build 18b009
rpm-build 18b009
#define GNOME_BG_TYPE_SLIDE_SHOW            (gnome_bg_slide_show_get_type ())
rpm-build 18b009
#define GNOME_BG_SLIDE_SHOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_BG_TYPE_SLIDE_SHOW, GnomeBGSlideShow))
rpm-build 18b009
#define GNOME_BG_SLIDE_SHOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GNOME_BG_TYPE_SLIDE_SHOW, GnomeBGSlideShowClass))
rpm-build 18b009
#define GNOME_BG_IS_SLIDE_SHOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_BG_TYPE_SLIDE_SHOW))
rpm-build 18b009
#define GNOME_BG_IS_SLIDE_SHOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GNOME_BG_TYPE_SLIDE_SHOW))
rpm-build 18b009
#define GNOME_BG_SLIDE_SHOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GNOME_BG_TYPE_SLIDE_SHOW, GnomeBGSlideShowClass))
rpm-build 18b009
rpm-build 18b009
typedef struct _GnomeBGSlideShowPrivate GnomeBGSlideShowPrivate;
rpm-build 18b009
typedef struct _GnomeBGSlideShow GnomeBGSlideShow;
rpm-build 18b009
typedef struct _GnomeBGSlideShowClass GnomeBGSlideShowClass;
rpm-build 18b009
rpm-build 18b009
struct _GnomeBGSlideShow
rpm-build 18b009
{
rpm-build 18b009
	GObject parent_object;
rpm-build 18b009
rpm-build 18b009
	GnomeBGSlideShowPrivate *priv;
rpm-build 18b009
};
rpm-build 18b009
rpm-build 18b009
struct _GnomeBGSlideShowClass
rpm-build 18b009
{
rpm-build 18b009
	GObjectClass parent_class;
rpm-build 18b009
};
rpm-build 18b009
rpm-build 18b009
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GnomeBGSlideShow, g_object_unref)
rpm-build 18b009
rpm-build 18b009
GType             gnome_bg_slide_show_get_type (void);
rpm-build 18b009
GnomeBGSlideShow *gnome_bg_slide_show_new (const char *filename);
rpm-build 18b009
gboolean          gnome_bg_slide_show_load (GnomeBGSlideShow  *self,
rpm-build 18b009
                                            GError           **error);
rpm-build 18b009
rpm-build 18b009
void              gnome_bg_slide_show_load_async (GnomeBGSlideShow    *self,
rpm-build 18b009
                                                  GCancellable        *cancellable,
rpm-build 18b009
                                                  GAsyncReadyCallback  callback,
rpm-build 18b009
                                                  gpointer             user_data);
rpm-build 18b009
gboolean          gnome_bg_slide_show_get_slide (GnomeBGSlideShow *self,
rpm-build 18b009
                                                 int               frame_number,
rpm-build 18b009
                                                 int               width,
rpm-build 18b009
                                                 int               height,
rpm-build 18b009
                                                 gdouble          *progress,
rpm-build 18b009
                                                 double           *duration,
rpm-build 18b009
                                                 gboolean         *is_fixed,
rpm-build 18b009
                                                 const char      **file1,
rpm-build 18b009
                                                 const char      **file2);
rpm-build 18b009
rpm-build 18b009
void              gnome_bg_slide_show_get_current_slide (GnomeBGSlideShow  *self,
rpm-build 18b009
                                                         int                width,
rpm-build 18b009
                                                         int                height,
rpm-build 18b009
                                                         gdouble           *progress,
rpm-build 18b009
                                                         double            *duration,
rpm-build 18b009
                                                         gboolean          *is_fixed,
rpm-build 18b009
                                                         const char       **file1,
rpm-build 18b009
                                                         const char       **file2);
rpm-build 18b009
rpm-build 18b009
rpm-build 18b009
double gnome_bg_slide_show_get_start_time (GnomeBGSlideShow *self);
rpm-build 18b009
double gnome_bg_slide_show_get_total_duration (GnomeBGSlideShow *self);
rpm-build 18b009
gboolean gnome_bg_slide_show_get_has_multiple_sizes (GnomeBGSlideShow *self);
rpm-build 18b009
int  gnome_bg_slide_show_get_num_slides (GnomeBGSlideShow *self);
rpm-build 18b009
G_END_DECLS
rpm-build 18b009
rpm-build 18b009
#endif