// File name: display.h // by Ting-jen Yen // This file is the header file for the functions of // displaying on X windows #ifndef DISPLAY_H #define DISPLAY_H #include #ifdef X_MAIN #define EXTERN // The table is a precomputed table of log_2(i/10) for i= 0..9. // It is used for coordinate computing when scaling. // double table[10] = {1., 1.071773, 1.148698, 1.231144, 1.319508, 1.414214, 1.515717, 1.624505, 1.741101, 1.866066}; #else #define EXTERN extern extern double table[]; #endif // The following constants are used for status of the // main view window. The status changes when a mouse // button is pressed or released. #define NONE 0 #define PAN 1 #define ZOOM_IN 2 #define ZOOM_OUT 3 // Level of resolution. 0 is the highest resolution. EXTERN int levels; void SendReq(int, int, int, int); void SendReq_R(int); void SendReq_All(int); void ZoomIn_View(int&, int&, int&, int, int, int, int); void ZoomIn_Nav(int&, int&, int&, int, int, int, int); int ZoomOut_View(int&, int&, int&, int, int, int, int, int, int); int ZoomOut_Nav(int&, int&, int&, int, int, int, int); void Adjust_Image_Size(int, int &, int &); void AdjustLocation(int &, int &, int, int, int, int); void RemoveIndicator(int, int, int, int, int ,int, Window, XImage *); #endif