Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

xdbm.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>
#include "dbm/gen.h"

Defines

#define WIDTH   800
#define HEIGHT   800
#define MARGIN   10
#define DBM(I, J)   dbm[(I)*dim+(J)]

Functions

void init_xinfo (xinfo_t *xinfo)
void setcolor (xinfo_t *xinfo, const char *col)
void draw_point (xinfo_t *xinfo, int x, int y)
void draw_line (xinfo_t *xinfo, int x1, int y1, int x2, int y2)
void draw_string (xinfo_t *xinfo, int x, int y, const char *str)
void setcolorij (xinfo_t *xinfo, int cij)
void draw_sline (xinfo_t *xinfo, double rx, double ry, int x1, int y1, int x2, int y2)
double getMax (int c1, int c2)
void draw_dbm (xinfo_t *xinfo, const int *dbm, int dim, int x1, int x2)
void handle_key (XKeyEvent *event, xinfo_t *xinfo)
void event_loop (xinfo_t *xinfo)
int main ()

Variables

int values []

Define Documentation

#define DBM I,
 )     dbm[(I)*dim+(J)]
 

#define HEIGHT   800
 

#define MARGIN   10
 

#define WIDTH   800
 


Function Documentation

void draw_dbm xinfo_t xinfo,
const int *  dbm,
int  dim,
int  x1,
int  x2
 

void draw_line xinfo_t xinfo,
int  x1,
int  y1,
int  x2,
int  y2
 

void draw_point xinfo_t xinfo,
int  x,
int  y
 

void draw_sline xinfo_t xinfo,
double  rx,
double  ry,
int  x1,
int  y1,
int  x2,
int  y2
 

void draw_string xinfo_t xinfo,
int  x,
int  y,
const char *  str
 

void event_loop xinfo_t xinfo  ) 
 

double getMax int  c1,
int  c2
 

void handle_key XKeyEvent *  event,
xinfo_t xinfo
 

void init_xinfo xinfo_t xinfo  ) 
 

int main  ) 
 

void setcolor xinfo_t xinfo,
const char *  col
 

void setcolorij xinfo_t xinfo,
int  cij
 


Variable Documentation

int values[]
 

Initial value:

 {1, 1, 1,
                dbm_LS_INFINITY, 1, dbm_LS_INFINITY,
                dbm_LS_INFINITY, dbm_LS_INFINITY, 1}


Generated on Fri Jun 30 00:02:46 2006 for Module dbm by  doxygen 1.4.2