mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
e7da747f5f
Revised GUI. svn path=/import/netsurf/; revision=823
43 lines
1.3 KiB
C
43 lines
1.3 KiB
C
/*
|
|
* 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>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include "oslib/os.h"
|
|
#include "oslib/wimp.h"
|
|
|
|
struct eig_factors {
|
|
int xeig;
|
|
int yeig;
|
|
};
|
|
|
|
|
|
int ro_get_hscroll_height(wimp_w w);
|
|
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)
|
|
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);
|
|
#define ro_gui_set_icon_selected_state(w, i, state) xwimp_set_icon_state(w, i, (state ? wimp_ICON_SELECTED : 0), wimp_ICON_SELECTED)
|
|
int ro_gui_get_icon_selected_state(wimp_w w, wimp_i i);
|
|
#define ro_gui_set_icon_shaded_state(w, i, state) xwimp_set_icon_state(w, i, (state ? wimp_ICON_SHADED : 0), wimp_ICON_SHADED)
|
|
|
|
#endif
|