summaryrefslogtreecommitdiff
path: root/support/latexdraw/digitizer/digitizer.h
blob: f075a2d6bf28b5a04e3543603b822c520ff74b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
/* ---------------------------------------------------------------------- */

/*
  Position und Groesse des LaTeXDraw-Fensters speichern
*/  
void save_win_pos(int x, int y, int w, int h);

/* ---------------------------------------------------------------------- */

/*
  Verbindung zum Digitizer herstellen und Digitizer initialisieren
*/
int init_digitizer(Display *display);

/* ---------------------------------------------------------------------- */

/*
  Koordianten eines Digitizer-Events in LTD-Koordinaten umrechnen
*/  
void translate_x_to_ltd(int x_in, int y_in, double *x_out, double *y_out);


/* ---------------------------------------------------------------------- */

/*
  Digitizer-Nachrichten erzeugen
*/  
int process_digitizer(Display *display, Window window);