NetSurf
Data Structures | Macros | Typedefs | Functions
wimputils.h File Reference

A collection of grubby utilities for working with OSLib's wimp API. More...

#include <oslib/wimp.h>
#include <oslib/wimpreadsysinfo.h>
#include "utils/log.h"
Include dependency graph for wimputils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  window_open_state
 
struct  ns_wimp_message_list
 
union  message_list
 
struct  ns_os_vdu_var_list
 
union  vdu_var_list
 

Macros

#define PTR_WIMP_OPEN(pstate)   ((wimp_open *) (window_open_state *) (pstate))
 
#define PTR_WIMP_MESSAGE_LIST(l)   ((wimp_message_list *) (message_list *) (l))
 
#define PTR_OS_VDU_VAR_LIST(l)   ((os_vdu_var_list *) (vdu_var_list *) (l))
 

Typedefs

typedef union window_open_state window_open_state
 
typedef struct ns_wimp_message_list ns_wimp_message_list
 
typedef union message_list message_list
 
typedef struct ns_os_vdu_var_list ns_os_vdu_var_list
 
typedef union vdu_var_list vdu_var_list
 

Functions

static bool ns_wimp_has_text_selection (void)
 Check whether the OS supports text selection in writiable icons. More...
 

Detailed Description

A collection of grubby utilities for working with OSLib's wimp API.

Definition in file wimputils.h.

Macro Definition Documentation

◆ PTR_OS_VDU_VAR_LIST

#define PTR_OS_VDU_VAR_LIST (   l)    ((os_vdu_var_list *) (vdu_var_list *) (l))

Definition at line 66 of file wimputils.h.

◆ PTR_WIMP_MESSAGE_LIST

#define PTR_WIMP_MESSAGE_LIST (   l)    ((wimp_message_list *) (message_list *) (l))

Definition at line 53 of file wimputils.h.

◆ PTR_WIMP_OPEN

#define PTR_WIMP_OPEN (   pstate)    ((wimp_open *) (window_open_state *) (pstate))

Definition at line 39 of file wimputils.h.

Typedef Documentation

◆ message_list

typedef union message_list message_list

◆ ns_os_vdu_var_list

◆ ns_wimp_message_list

◆ vdu_var_list

typedef union vdu_var_list vdu_var_list

◆ window_open_state

Function Documentation

◆ ns_wimp_has_text_selection()

static bool ns_wimp_has_text_selection ( void  )
inlinestatic

Check whether the OS supports text selection in writiable icons.

Returns
true if text-selection is supported, false otherwise.

Definition at line 73 of file wimputils.h.

References NSLOG.

Referenced by ro_gui_url_bar_click(), and ro_gui_url_bar_icon_update().

Here is the caller graph for this function: