RAPI
Data Structures | Defines | Typedefs | Enumerations | Functions | Variables
R_ext/GraphicsDevice.h File Reference
#include <R_ext/Boolean.h>
#include <R_ext/libextern.h>
Include dependency graph for GraphicsDevice.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _DevDesc

Defines

#define R_USE_PROTOTYPES   1
#define R_RGB(r, g, b)   ((r)|((g)<<8)|((b)<<16)|0xFF000000)
#define R_RGBA(r, g, b, a)   ((r)|((g)<<8)|((b)<<16)|((a)<<24))
#define R_RED(col)   (((col) )&255)
#define R_GREEN(col)   (((col)>> 8)&255)
#define R_BLUE(col)   (((col)>>16)&255)
#define R_ALPHA(col)   (((col)>>24)&255)
#define R_OPAQUE(col)   (R_ALPHA(col) == 255)
#define R_TRANSPARENT(col)   (R_ALPHA(col) == 0)
#define R_TRANWHITE   (R_RGBA(255, 255, 255, 0))
#define curDevice   Rf_curDevice
#define killDevice   Rf_killDevice
#define ndevNumber   Rf_ndevNumber
#define NewFrameConfirm   Rf_NewFrameConfirm
#define nextDevice   Rf_nextDevice
#define NoDevices   Rf_NoDevices
#define NumDevices   Rf_NumDevices
#define prevDevice   Rf_prevDevice
#define selectDevice   Rf_selectDevice
#define AdobeSymbol2utf8   Rf_AdobeSymbol2utf8
#define leftButton   1
#define middleButton   2
#define rightButton   4
#define doKeybd   Rf_doKeybd
#define doMouseEvent   Rf_doMouseEvent
#define BEGIN_SUSPEND_INTERRUPTS
#define END_SUSPEND_INTERRUPTS

Typedefs

typedef struct _DevDesc DevDesc
typedef DevDescpDevDesc

Enumerations

enum  R_KeyName {
  knUNKNOWN = -1, knLEFT = 0, knUP, knRIGHT,
  knDOWN, knF1, knF2, knF3,
  knF4, knF5, knF6, knF7,
  knF8, knF9, knF10, knF11,
  knF12, knPGUP, knPGDN, knEND,
  knHOME, knINS, knDEL
}
enum  R_MouseEvent { meMouseDown = 0, meMouseUp, meMouseMove }

Functions

int ndevNumber (pDevDesc dd)
int NumDevices (void)
void R_CheckDeviceAvailable (void)
Rboolean R_CheckDeviceAvailableBool (void)
int curDevice (void)
int nextDevice (int from)
int prevDevice (int from)
int selectDevice (int devNum)
void killDevice (int devNum)
int NoDevices (void)
void NewFrameConfirm (pDevDesc dd)
void doMouseEvent (pDevDesc dd, R_MouseEvent event, int buttons, double x, double y)
void doKeybd (pDevDesc dd, R_KeyName rkey, const char *keyname)
void Rf_onintr (void)
void * AdobeSymbol2utf8 (char *out, const char *in, size_t nwork)
size_t Rf_ucstoutf8 (char *s, const unsigned int c)

Variables

LibExtern Rboolean R_interrupts_suspended
LibExtern int R_interrupts_pending
LibExtern Rboolean mbcslocale

Define Documentation

#define AdobeSymbol2utf8   Rf_AdobeSymbol2utf8
Value:
do { \
    Rboolean __oldsusp__ = R_interrupts_suspended; \
    R_interrupts_suspended = TRUE;
#define curDevice   Rf_curDevice
#define doKeybd   Rf_doKeybd
#define doMouseEvent   Rf_doMouseEvent
Value:
R_interrupts_suspended = __oldsusp__; \
    if (R_interrupts_pending && ! R_interrupts_suspended) \
        Rf_onintr(); \
} while(0)
#define killDevice   Rf_killDevice
#define leftButton   1
#define middleButton   2
#define ndevNumber   Rf_ndevNumber
#define NewFrameConfirm   Rf_NewFrameConfirm
#define nextDevice   Rf_nextDevice
#define NoDevices   Rf_NoDevices
#define NumDevices   Rf_NumDevices
#define prevDevice   Rf_prevDevice
#define R_ALPHA (   col)    (((col)>>24)&255)
#define R_BLUE (   col)    (((col)>>16)&255)
#define R_GREEN (   col)    (((col)>> 8)&255)
#define R_OPAQUE (   col)    (R_ALPHA(col) == 255)
#define R_RED (   col)    (((col) )&255)
#define R_RGB (   r,
  g,
 
)    ((r)|((g)<<8)|((b)<<16)|0xFF000000)
#define R_RGBA (   r,
  g,
  b,
 
)    ((r)|((g)<<8)|((b)<<16)|((a)<<24))
#define R_TRANSPARENT (   col)    (R_ALPHA(col) == 0)
#define R_TRANWHITE   (R_RGBA(255, 255, 255, 0))
#define R_USE_PROTOTYPES   1
#define rightButton   4
#define selectDevice   Rf_selectDevice

Typedef Documentation

typedef struct _DevDesc DevDesc
typedef DevDesc* pDevDesc

Enumeration Type Documentation

enum R_KeyName
Enumerator:
knUNKNOWN 
knLEFT 
knUP 
knRIGHT 
knDOWN 
knF1 
knF2 
knF3 
knF4 
knF5 
knF6 
knF7 
knF8 
knF9 
knF10 
knF11 
knF12 
knPGUP 
knPGDN 
knEND 
knHOME 
knINS 
knDEL 
Enumerator:
meMouseDown 
meMouseUp 
meMouseMove 

Function Documentation

void* AdobeSymbol2utf8 ( char *  out,
const char *  in,
size_t  nwork 
)
int curDevice ( void  )
void doKeybd ( pDevDesc  dd,
R_KeyName  rkey,
const char *  keyname 
)
void doMouseEvent ( pDevDesc  dd,
R_MouseEvent  event,
int  buttons,
double  x,
double  y 
)
void killDevice ( int  devNum)
int ndevNumber ( pDevDesc  dd)
void NewFrameConfirm ( pDevDesc  dd)
int nextDevice ( int  from)
int NoDevices ( void  )
int NumDevices ( void  )
int prevDevice ( int  from)
void R_CheckDeviceAvailable ( void  )
void Rf_onintr ( void  )
size_t Rf_ucstoutf8 ( char *  s,
const unsigned int  c 
)
int selectDevice ( int  devNum)

Variable Documentation

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines