Mercurial > hg > forks > geeqie
annotate src/slideshow.h @ 2916:ae6cdcd69d9f default tip
Merge with upstream/master.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 May 2019 11:46:50 +0300 |
parents | 3966a69e854d |
children |
rev | line source |
---|---|
9 | 1 /* |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
2 * Copyright (C) 2004 John Ellis |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
3 * Copyright (C) 2008 - 2016 The Geeqie Team |
9 | 4 * |
5 * Author: John Ellis | |
6 * | |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
7 * This program is free software; you can redistribute it and/or modify |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
10 * (at your option) any later version. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
11 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
15 * GNU General Public License for more details. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
16 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
18 * with this program; if not, write to the Free Software Foundation, Inc., |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2021
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
9 | 20 */ |
21 | |
22 #ifndef SLIDESHOW_H | |
23 #define SLIDESHOW_H | |
24 | |
25 | |
26 #define SLIDESHOW_SUBSECOND_PRECISION 10 | |
27 #define SLIDESHOW_MIN_SECONDS 0.1 | |
2612
3966a69e854d
Slideshow delay in hrs-mins-secs
Colin Clark <colin.clark@cclark.uk>
parents:
2350
diff
changeset
|
28 #define SLIDESHOW_MAX_SECONDS 86399.0 /* 24 hours - 1 sec */ |
9 | 29 |
30 /* | |
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. | |
33 */ | |
34 | |
35 void slideshow_free(SlideShowData *ss); | |
36 | |
1446 | 37 gboolean slideshow_should_continue(SlideShowData *ss); |
9 | 38 |
39 void slideshow_next(SlideShowData *ss); | |
40 void slideshow_prev(SlideShowData *ss); | |
41 | |
1627
c3778530b075
use layout_set_fd() for changing images from a slideshow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1446
diff
changeset
|
42 SlideShowData *slideshow_start_from_filelist(LayoutWindow *target_lw, ImageWindow *imd, GList *list, |
9 | 43 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data); |
1627
c3778530b075
use layout_set_fd() for changing images from a slideshow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1446
diff
changeset
|
44 SlideShowData *slideshow_start_from_collection(LayoutWindow *target_lw, ImageWindow *imd, CollectionData *cd, |
9 | 45 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data, |
46 CollectInfo *start_info); | |
1627
c3778530b075
use layout_set_fd() for changing images from a slideshow
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1446
diff
changeset
|
47 SlideShowData *slideshow_start(LayoutWindow *lw, gint start_point, |
9 | 48 void (*stop_func)(SlideShowData *, gpointer), gpointer stop_data); |
49 | |
1433
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
50 gboolean slideshow_paused(SlideShowData *ss); |
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
51 void slideshow_pause_set(SlideShowData *ss, gboolean paused); |
12600de4b59a
Use gboolean where applicable, minor cleanup and indentations fixes.
Laurent Monin <geeqie@norz.org>
parents:
1284
diff
changeset
|
52 gboolean slideshow_pause_toggle(SlideShowData *ss); |
9 | 53 |
54 | |
55 #endif | |
1055
4bbdfab3c89a
Adding a vim modeline to all files - patch by Klaus Ethgen
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
475
diff
changeset
|
56 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |