CAPD DynSys Library  5.2.0
linux.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 <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <stdexcept>

Namespaces

 capd
 
 capd::krak
 

Macros

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

Functions

void capd::krak::opengfxwndw (int wn, int hsr, int vsr, int bgcolor, int fgcolor, int argc, char **argv)
 
void capd::krak::handleExpose (void(*expose)())
 
void capd::krak::handleResize (void(*resize)())
 
void capd::krak::eventloop (void(*expose)(), void(*resize)(), void(*buttonpress)())
 
void capd::krak::handleEvents (void)
 
void capd::krak::OpenGraphics (int hrs, int vrs, int bgcol, int fgcol, int ltx, int lty)
 
void capd::krak::CloseGraphics (void)
 
void capd::krak::SetBgCol (int col)
 
void capd::krak::SetFgCol (int col)
 
void capd::krak::PlotDot (int i, int j)
 
void capd::krak::MoveTo (int i, int j)
 
void capd::krak::LineTo (int, int)
 
void capd::krak::Crcl (int i, int j, int r)
 
void capd::krak::FillRct (capd::krak::Rct *r, int pattNr, int colNr)
 
void capd::krak::DrawStrng (const char *txt)
 
int capd::krak::Button (void)
 
void capd::krak::GetMouse (capd::krak::Pxl *pxl)
 
double capd::krak::Clock (void)
 
double capd::krak::RClock (void)
 
void capd::krak::Beep (int freq, int time)
 
char * capd::krak::datetime (void)
 
int capd::krak::GetKey (void)
 
long capd::krak::tickClock (void)
 
long capd::krak::tckClock (void)
 
double capd::krak::tck2sec (long)
 

Variables

int capd::krak::isgraphic =1
 
int capd::krak::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
 
const 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
 
long event_mask
 
int capd::krak::buttonState =0
 
int capd::krak::lastKey =NO_KEY
 
unsigned int capd::krak::bttn_mask
 
struct timeval capd::krak::tp
 

Detailed Description

Author
The CAPD Group