NetSurf
progress_bar.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Richard Wilson <info@tinct.net>
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/** \file
20 * Progress bar (interface).
21 */
22
23#ifndef _NETSURF_RISCOS_PROGRESS_BAR_H_
24#define _NETSURF_RISCOS_PROGRESS_BAR_H_
25
26#include <stdbool.h>
27#include "oslib/osspriteop.h"
28#include "oslib/wimp.h"
29
30struct progress_bar;
31
32void ro_gui_progress_bar_init(osspriteop_area *icons);
33
36void ro_gui_progress_bar_update(struct progress_bar *pb, int width, int height);
37
39void ro_gui_progress_bar_set_icon(struct progress_bar *pb, const char *icon);
40void ro_gui_progress_bar_set_value(struct progress_bar *pb, unsigned int value);
41unsigned int ro_gui_progress_bar_get_value(struct progress_bar *pb);
42void ro_gui_progress_bar_set_range(struct progress_bar *pb, unsigned int range);
43unsigned int ro_gui_progress_bar_get_range(struct progress_bar *pb);
44#endif
void ro_gui_progress_bar_set_icon(struct progress_bar *pb, const char *icon)
Set the icon for a progress bar.
Definition: progress_bar.c:197
unsigned int ro_gui_progress_bar_get_range(struct progress_bar *pb)
Get the range of a progress bar.
Definition: progress_bar.c:269
unsigned int ro_gui_progress_bar_get_value(struct progress_bar *pb)
Get the value of a progress bar.
Definition: progress_bar.c:238
void ro_gui_progress_bar_update(struct progress_bar *pb, int width, int height)
Update the progress bar to a new dimension.
Definition: progress_bar.c:284
void ro_gui_progress_bar_set_value(struct progress_bar *pb, unsigned int value)
Set the value of a progress bar.
Definition: progress_bar.c:221
void ro_gui_progress_bar_destroy(struct progress_bar *pb)
Destroy a progress bar and free all associated resources.
Definition: progress_bar.c:158
wimp_w ro_gui_progress_bar_get_window(struct progress_bar *pb)
Get the handle of the window that represents a progress bar.
Definition: progress_bar.c:183
struct progress_bar * ro_gui_progress_bar_create(void)
Create a new progress bar.
Definition: progress_bar.c:128
void ro_gui_progress_bar_set_range(struct progress_bar *pb, unsigned int range)
Set the range of a progress bar.
Definition: progress_bar.c:252
void ro_gui_progress_bar_init(osspriteop_area *icons)
Initialise the progress bar.
Definition: progress_bar.c:104
int width
Definition: gui.c:160
int height
Definition: gui.c:161
char icon[13]
current icon
Definition: progress_bar.c:48
unsigned int value
progress bar value
Definition: progress_bar.c:47
unsigned int range
progress bar range
Definition: progress_bar.c:46