CAPD DynSys Library  5.2.0
sun.c File Reference
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/times.h>
#include "Xlib.h"
#include </usr/openwin/include/X11/Xutil.h>
#include </usr/openwin/include/X11/Xos.h>

Macros

#define SC(c, r, g, b)   red_a[c]=r;green_a[c]=g;blue_a[c]=b;
 

Functions

void opengfxwndw (int wn, int hsr, int vsr, int bgcolor, int fgcolor, int argc, char **argv)
 
void handleExpose (void(*expose)())
 
void handleResize (void(*resize)())
 
void eventloop (void(*expose)(), void(*resize)(), void(*buttonpress)())
 
void handleEvents (void)
 
void OpenGraphics (INT hres, INT vres, INT bg_col, INT fg_col, INT ltx, INT lty)
 
void CloseGraphics (void)
 
void SetBgCol (INT col)
 
void SetFgCol (int col)
 
void PlotDot (INT i, INT j)
 
void MoveTo (INT i, INT j)
 
void LineTo (INT i, INT j)
 
void Crcl (INT i, INT j, INT r)
 
void FillRct (RCT *r, INT pattern, INT color)
 
void DrawStrng (const char *txt)
 
int Button (void)
 
void GetMouse (PXL *pt)
 
DREAL Clock (void)
 
DREAL RClock (void)
 
void Beep (INT freq, INT t)
 
char * datetime (void)
 
int GetKey (void)
 

Variables

INT fontWdth
 
INT fontHght
 
INT isgraphic
 
float red_c []
 
float green_c []
 
float blue_c []
 
int top_marg_size =0
 
XColor exact_defs [MAX_PALETTE]
 
Pixmap stipple [30]
 
GC drawgc
 
unsigned long fg_pixel
 
unsigned long bg_pixel
 
unsigned long valuemask = 0
 
XGCValues values
 
Window win
 
unsigned int WX = 0
 
unsigned int WY = 0
 
unsigned int border_width = 4
 
XSizeHints size_hints
 
XEvent report
 
XFontStruct * font_info
 
char * display_name = NULL
 
Region region
 
XRectangle rectangle
 
Display * display
 
int screen
 
char * fontname = "9x15"
 
int default_depth
 
Colormap default_cmap
 
long unsigned int plane_masks [1]
 
XVisualInfo visual_info
 
int Class
 
long unsigned int colors [MAX_PALETTE]
 
int color_no
 
int c_ipstn =0
 
int c_jpstn =0
 
int c_bgcol
 
int c_fgcol
 
long event_mask
 
int buttonState =0
 
int lastKey =NO_KEY
 
struct timeval tp
 

Detailed Description

Author
The CAPD Group