2 * Copyright (C) 2004 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program 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
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #define SLIDESHOW_SUBSECOND_PRECISION 10
27 #define SLIDESHOW_MIN_SECONDS 0.1
28 #define SLIDESHOW_MAX_SECONDS 3600.0
31 * It works like this, it uses path_list, if that does not exist, it uses
32 * CollectionData, then finally falls back to the layout listing.
35 void slideshow_free(SlideShowData *ss);
37 gboolean slideshow_should_continue(SlideShowData *ss);
39 void slideshow_next(SlideShowData *ss);
40 void slideshow_prev(SlideShowData *ss);
42 SlideShowData *slideshow_start_from_filelist(LayoutWindow *target_lw, ImageWindow *imd, GList *list,
43 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data);
44 SlideShowData *slideshow_start_from_collection(LayoutWindow *target_lw, ImageWindow *imd, CollectionData *cd,
45 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data,
46 CollectInfo *start_info);
47 SlideShowData *slideshow_start(LayoutWindow *lw, gint start_point,
48 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data);
50 gboolean slideshow_paused(SlideShowData *ss);
51 void slideshow_pause_set(SlideShowData *ss, gboolean paused);
52 gboolean slideshow_pause_toggle(SlideShowData *ss);
56 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */