2004-05-05 02:23:44 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* General RISC OS WIMP/OS library functions (interface).
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_WIMP_H_
|
|
|
|
#define _NETSURF_RISCOS_WIMP_H_
|
|
|
|
|
|
|
|
#include <assert.h>
|
2004-07-22 00:02:13 +04:00
|
|
|
#include <stdbool.h>
|
2004-05-05 02:23:44 +04:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
2004-07-22 00:02:13 +04:00
|
|
|
#include <string.h>
|
2004-05-05 02:23:44 +04:00
|
|
|
#include "oslib/os.h"
|
|
|
|
#include "oslib/wimp.h"
|
|
|
|
|
|
|
|
int ro_get_hscroll_height(wimp_w w);
|
2004-05-23 16:22:05 +04:00
|
|
|
int ro_get_vscroll_width(wimp_w w);
|
2004-05-05 02:23:44 +04:00
|
|
|
struct eig_factors ro_read_eig_factors(os_mode mode);
|
|
|
|
void ro_convert_os_units_to_pixels(os_coord *os_units, os_mode mode);
|
|
|
|
void ro_convert_pixels_to_os_units(os_coord *pixels, os_mode mode);
|
|
|
|
|
|
|
|
#define ro_gui_redraw_icon(w, i) xwimp_set_icon_state(w, i, 0, 0)
|
2005-01-23 19:09:05 +03:00
|
|
|
void ro_gui_force_redraw_icon(wimp_w w, wimp_i i);
|
2004-05-05 02:23:44 +04:00
|
|
|
char *ro_gui_get_icon_string(wimp_w w, wimp_i i);
|
|
|
|
void ro_gui_set_icon_string(wimp_w w, wimp_i i, const char *text);
|
|
|
|
void ro_gui_set_icon_integer(wimp_w w, wimp_i i, int value);
|
2004-08-31 22:01:22 +04:00
|
|
|
void ro_gui_set_icon_selected_state(wimp_w w, wimp_i i, bool state);
|
2004-07-22 00:02:13 +04:00
|
|
|
bool ro_gui_get_icon_selected_state(wimp_w w, wimp_i i);
|
2004-08-31 23:51:29 +04:00
|
|
|
void ro_gui_set_icon_shaded_state(wimp_w w, wimp_i i, bool state);
|
2004-07-22 00:02:13 +04:00
|
|
|
bool ro_gui_get_icon_shaded_state(wimp_w w, wimp_i i);
|
2005-01-23 19:09:05 +03:00
|
|
|
void ro_gui_set_icon_button_type(wimp_w w, wimp_i i, int type);
|
2004-07-09 02:05:35 +04:00
|
|
|
void ro_gui_set_window_title(wimp_w w, const char *title);
|
2004-07-12 01:45:51 +04:00
|
|
|
void ro_gui_set_caret_first(wimp_w w);
|
2004-07-16 20:33:45 +04:00
|
|
|
void ro_gui_open_window_centre(wimp_w parent, wimp_w child);
|
2004-05-05 02:23:44 +04:00
|
|
|
|
2004-05-23 03:04:44 +04:00
|
|
|
osspriteop_area *ro_gui_load_sprite_file(const char *pathname);
|
2004-07-11 17:05:38 +04:00
|
|
|
bool ro_gui_wimp_sprite_exists(const char *sprite);
|
2004-07-27 19:49:28 +04:00
|
|
|
void ro_gui_open_pane(wimp_w parent, wimp_w pane, int offset);
|
2004-05-23 03:04:44 +04:00
|
|
|
|
2004-08-31 01:03:48 +04:00
|
|
|
|
|
|
|
wimp_w ro_gui_set_window_background_colour(wimp_w window, wimp_colour background);
|
|
|
|
void ro_gui_set_icon_colours(wimp_w window, wimp_i icon,
|
|
|
|
wimp_colour foreground, wimp_colour background);
|
2005-03-14 16:58:43 +03:00
|
|
|
void ro_gui_user_redraw(wimp_draw *redraw, bool user_fill, os_colour user_colour);
|
2005-04-08 00:46:22 +04:00
|
|
|
void ro_gui_wimp_update_window_furniture(wimp_w w, wimp_window_flags bic_mask,
|
|
|
|
wimp_window_flags xor_mask);
|
|
|
|
|
2004-05-05 02:23:44 +04:00
|
|
|
#endif
|