NetSurf
throbber.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Rob Kendrick <rjek@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef NETSURF_GTK_THROBBER_H
20#define NETSURF_GTK_THROBBER_H
21
22/**
23 * Initialise global throbber context
24 */
26
27/**
28 * release global throbber context
29 */
31
32/**
33 * get the pixbuf of a given frame of the throbber
34 *
35 * \param frame The frame number starting at 0 for stopped frame
36 * \param pixbuf updated on success
37 * \return NSERROR_OK and pixbuf updated on success, NSERROR_BAD_SIZE if frame
38 * is out of range else error code.
39 */
40nserror nsgtk_throbber_get_frame(int frame, GdkPixbuf **pixbuf);
41
42#endif /* NETSURF_GTK_THROBBER_H */
nserror
Enumeration of error codes.
Definition: errors.h:29
nserror nsgtk_throbber_init(void)
Initialise global throbber context.
Definition: throbber.c:46
nserror nsgtk_throbber_get_frame(int frame, GdkPixbuf **pixbuf)
get the pixbuf of a given frame of the throbber
Definition: throbber.c:103
void nsgtk_throbber_finalise(void)
release global throbber context
Definition: throbber.c:88