NetSurf
status_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 * UTF8 status bar (interface).
21 */
22
23#ifndef _NETSURF_RISCOS_STATUS_BAR_H_
24#define _NETSURF_RISCOS_STATUS_BAR_H_
25
26#include <stdbool.h>
27
28struct status_bar;
29
30struct status_bar *ro_gui_status_bar_create(wimp_w parent, unsigned int width);
32
34unsigned int ro_gui_status_bar_get_width(struct status_bar *sb);
38void ro_gui_status_bar_set_text(struct status_bar *sb, const char *text);
40 unsigned int value);
42 unsigned int range);
44 const char *icon);
45#endif
wimp_w parent
Definition: dialog.c:88
int width
Definition: gui.c:160
unsigned int ro_gui_status_bar_get_width(struct status_bar *sb)
Get the proportional width the status bar is currently using.
Definition: status_bar.c:202
void ro_gui_status_bar_resize(struct status_bar *sb)
Resize a status bar following a change in the dimensions of the parent window.
Definition: status_bar.c:346
void ro_gui_status_bar_set_progress_range(struct status_bar *sb, unsigned int range)
Set the range of the progress bar.
Definition: status_bar.c:271
wimp_w ro_gui_status_bar_get_window(struct status_bar *sb)
Get the handle of the window that represents a status bar.
Definition: status_bar.c:188
void ro_gui_status_bar_set_text(struct status_bar *sb, const char *text)
Set the text to display in the status bar.
Definition: status_bar.c:316
void ro_gui_status_bar_set_progress_icon(struct status_bar *sb, const char *icon)
Set the icon for the progress bar.
Definition: status_bar.c:301
void ro_gui_status_bar_set_visible(struct status_bar *pb, bool visible)
Set the visibility status of the status bar.
Definition: status_bar.c:217
bool ro_gui_status_bar_get_visible(struct status_bar *sb)
Get the visibility status of the status bar.
Definition: status_bar.c:240
struct status_bar * ro_gui_status_bar_create(wimp_w parent, unsigned int width)
Create a new status bar.
Definition: status_bar.c:118
void ro_gui_status_bar_set_progress_value(struct status_bar *sb, unsigned int value)
Set the value of the progress bar.
Definition: status_bar.c:254
void ro_gui_status_bar_destroy(struct status_bar *sb)
Destroy a status bar and free all associated resources.
Definition: status_bar.c:161
bool visible
status bar is visible?
Definition: status_bar.c:55
struct progress_bar * pb
progress bar
Definition: status_bar.c:52
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.
Definition: plot.c:978