The R Project SVN R

Rev

Rev 32133 | Rev 32205 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32133 Rev 32151
Line 127... Line 127...
127
    SEXP DLlastElt;
127
    SEXP DLlastElt;
128
    SEXP savedSnapshot;         /* The last value of the display list
128
    SEXP savedSnapshot;         /* The last value of the display list
129
				 * just prior to when the display list
129
				 * just prior to when the display list
130
				 * was last initialised
130
				 * was last initialised
131
				 */
131
				 */
-
 
132
 
-
 
133
    /********************************************************				 
-
 
134
     * Event handling entries
-
 
135
     ********************************************************/
-
 
136
     
-
 
137
    /* These determine whether getGraphicsEvent will try to set an event handler */
-
 
138
    
-
 
139
    Rboolean canGenMouseDown; /* can the device generate mousedown events */
-
 
140
    Rboolean canGenMouseMove; /* can the device generate mousemove events */
-
 
141
    Rboolean canGenMouseUp;   /* can the device generate mouseup events */
-
 
142
    Rboolean canGenKeybd;     /* can the device generate keyboard events */
-
 
143
    
-
 
144
    Rboolean gettingEvent;    /* This is set while getGraphicsEvent is actively looking for events */
-
 
145
    SEXP eventRho;	      /* This is the environment of getGraphicsEvent in which to evaluate the handlers */
-
 
146
    SEXP eventResult;	      /* The result of the last event handler is stored here, unprotected */
-
 
147
    
-
 
148
    /* These are the event handlers */
-
 
149
    
-
 
150
    SEXP mouseDownHandler;
-
 
151
    SEXP mouseMoveHandler;
-
 
152
    SEXP mouseUpHandler;
-
 
153
    SEXP keybdHandler;
-
 
154
    
132
    /********************************************************
155
    /********************************************************
133
     * Device procedures.
156
     * Device procedures.
134
     ********************************************************/
157
     ********************************************************/
135
 
158
 
136
    /*
159
    /*
Line 420... Line 443...
420
     * An example is ...
443
     * An example is ...
421
     *
444
     *
422
     * static void X11_onExit(NewDevDesc *dd);
445
     * static void X11_onExit(NewDevDesc *dd);
423
    */    
446
    */    
424
    void (*onExit)();
447
    void (*onExit)();
-
 
448
    /*
-
 
449
     * device_getEvent is called by do_getGraphicsEvent to get a modal
-
 
450
     * graphics event.  It should call R_ProcessEvents() until one
-
 
451
     * of the event handlers sets eventResult to a non-null value,
-
 
452
     * and then return it
-
 
453
     * An example is ...
-
 
454
     *
-
 
455
     * static SEXP GA_getEvent(char *prompt);
-
 
456
     */
-
 
457
    SEXP (*getEvent)();
-
 
458
    
425
} NewDevDesc;
459
} NewDevDesc;
426
 
460
 
427
	/********************************************************/
461
	/********************************************************/
428
	/* the device-driver entry point is given a device	*/
462
	/* the device-driver entry point is given a device	*/
429
	/* description structure that it must set up.  this	*/
463
	/* description structure that it must set up.  this	*/