23#ifndef riscos_wimputils_h_
24#define riscos_wimputils_h_
26#include <oslib/wimp.h>
27#include <oslib/wimpreadsysinfo.h>
39#define PTR_WIMP_OPEN(pstate) ((wimp_open *) (window_open_state *) (pstate))
53#define PTR_WIMP_MESSAGE_LIST(l) ((wimp_message_list *) (message_list *) (l))
66#define PTR_OS_VDU_VAR_LIST(l) ((os_vdu_var_list *) (vdu_var_list *) (l))
78 wimpreadsysinfotextselection_flags flags;
80 error = xwimpreadsysinfo_text_selection(&bg, &fg, &flags);
82 NSLOG(netsurf, WARNING,
83 "xwimpreadsysinfo_text_selection: 0x%x: %s",
84 error->errnum, error->errmess);
88 return (flags & wimpreadsysinfotextselectionflags_ENABLED);
#define NSLOG(catname, level, logmsg, args...)
union window_open_state window_open_state
static bool ns_wimp_has_text_selection(void)
Check whether the OS supports text selection in writiable icons.
struct ns_os_vdu_var_list ns_os_vdu_var_list
union vdu_var_list vdu_var_list
struct ns_wimp_message_list ns_wimp_message_list
union message_list message_list