64 lines
1.6 KiB
C
64 lines
1.6 KiB
C
/*--------------------------------*-C-*---------------------------------*
|
|
* File: graphics.h
|
|
*
|
|
*----------------------------------------------------------------------*/
|
|
|
|
#ifndef _GRAPHICS_H_
|
|
# define _GRAPHICS_H_
|
|
# include <X11/Xfuncproto.h>
|
|
|
|
# include "grx.h" /* text alignment */
|
|
|
|
/*
|
|
* number of graphics points
|
|
* divisible by 2 (num lines)
|
|
* divisible by 4 (num rect)
|
|
*/
|
|
# define NGRX_PTS 1000
|
|
|
|
_XFUNCPROTOBEGIN
|
|
|
|
extern void Gr_ButtonReport(int, int, int);
|
|
|
|
extern void Gr_do_graphics (int /* cmd */,
|
|
int /* nargs */,
|
|
int /* args */[],
|
|
unsigned char * /* text */);
|
|
|
|
extern void Gr_scroll (int /* count */);
|
|
|
|
extern void Gr_ClearScreen (void);
|
|
|
|
extern void Gr_ChangeScreen (void);
|
|
|
|
extern void Gr_expose (Window /* win */);
|
|
|
|
extern void Gr_Resize (int /* w */,
|
|
int /* h */);
|
|
|
|
extern void Gr_reset (void);
|
|
|
|
extern int Gr_Displayed (void);
|
|
|
|
_XFUNCPROTOEND
|
|
|
|
# ifdef RXVT_GRAPHICS
|
|
# define Gr_ButtonPress(x,y) Gr_ButtonReport ('P',(x),(y))
|
|
# define Gr_ButtonRelease(x,y) Gr_ButtonReport ('R',(x),(y))
|
|
# define GR_DISPLAY(x) if (Gr_Displayed()) (x)
|
|
# define GR_NO_DISPLAY(x) if (!Gr_Displayed()) (x)
|
|
# else
|
|
# define Gr_ButtonPress(x,y) ((void)0)
|
|
# define Gr_ButtonRelease(x,y) ((void)0)
|
|
# define Gr_scroll(count) ((void)0)
|
|
# define Gr_ClearScreen() ((void)0)
|
|
# define Gr_ChangeScreen() ((void)0)
|
|
# define Gr_expose(win) ((void)0)
|
|
# define Gr_Resize(w,h) ((void)0)
|
|
# define Gr_reset() ((void)0)
|
|
# define GR_DISPLAY(x)
|
|
# define GR_NO_DISPLAY(x) (x)
|
|
# endif
|
|
#endif /* whole file */
|
|
/*----------------------- end-of-file (C header) -----------------------*/
|