viewer/sbgconst.h

Go to the documentation of this file.
00001 
00019 #ifndef           SBGCONST_H
00020 #define           SBGCONST_H
00021 
00022 /*
00023 This file contains all the symbols and constants that the user sees
00024 that are not defined by Starbase.
00025 */
00026 
00027 #include          "host.h"
00028 
00029 #define WINDOWNAMESIZE    13     /*max size of name */
00030 #define MAXWINDOWS      64       /*max allowed windows */
00031 #define MAXWINDOWNAME   1024     /*max name length */
00032 
00033 #define NO_WINDOW     0          /*no legal window */
00034 #define SMDWINDOW     0          /*use smd, no window */
00035 #define SCROLLINGWIN    1        /*scrolling window */
00036 #define FULLSIZEWIN     2        /*non-scrolling window */
00037 #define DCWIN       3            /*dc drawing only */
00038 
00039 #define M_DOT       0            /*marker_types */
00040 #define M_PLUS        1          /*starbase markers */
00041 #define M_ASTERISK      2
00042 #define M_CIRCLE      3
00043 #define M_CROSS       4
00044 #define M_TRIANGLE      5
00045 #define M_SQUARE      6
00046 #define M_DIAMOND     7
00047 #define M_CROSSED_SQUARE  8
00048 
00049 class WINFD;
00050 
00055 typedef WINFD *WINDOW;           //compatible with old code
00056 
00061 typedef enum {
00062   BLACK,
00063   WHITE,
00064   RED,
00065   YELLOW,
00066   GREEN,
00067   CYAN,
00068   BLUE,
00069   MAGENTA,
00070   AQUAMARINE,
00071   DARK_SLATE_BLUE,
00072   LIGHT_BLUE,
00073   MEDIUM_BLUE,
00074   MIDNIGHT_BLUE,
00075   NAVY_BLUE,
00076   SKY_BLUE,
00077   SLATE_BLUE,
00078   STEEL_BLUE,
00079   CORAL,
00080   BROWN,
00081   SANDY_BROWN,
00082   GOLD,
00083   GOLDENROD,
00084   DARK_GREEN,
00085   DARK_OLIVE_GREEN,
00086   FOREST_GREEN,
00087   LIME_GREEN,
00088   PALE_GREEN,
00089   YELLOW_GREEN,
00090   LIGHT_GREY,
00091   DARK_SLATE_GREY,
00092   DIM_GREY,
00093   GREY,
00094   KHAKI,
00095   MAROON,
00096   ORANGE,
00097   ORCHID,
00098   PINK,
00099   PLUM,
00100   INDIAN_RED,
00101   ORANGE_RED,
00102   VIOLET_RED,
00103   SALMON,
00104   TAN,
00105   TURQUOISE,
00106   DARK_TURQUOISE,
00107   VIOLET,
00108   WHEAT,
00109   GREEN_YELLOW
00110 } COLOUR;                        /*starbase colours */
00111 
00112 
00117 enum ECHO_TYPE
00118 {
00119   NO_ECHO,
00120   BEST_ECHO,
00121   CROSS_HAIR_ECHO,
00122   SMALL_X_ECHO,
00123   RUBBER_LINE_ECHO,
00124   RUBBER_BOX_ECHO,
00125   ALPHA_ECHO
00126 };
00127 
00129 #define QUEUE_CLEAR     0        /*queue is empty */
00130 #define DOWN_EVENT      1        /*button press */
00131 #define MOVE_EVENT      2        /*pointer move */
00132 #define UP_EVENT      3          /*button release */
00133 #define KEYPRESS_EVENT    4      /*key pressed */
00134 #define SELECT_EVENT    5        /*press-release pair */
00135 #define ANY_EVENT     6          /*any type */
00136 #define DESTROY_EVENT   7
00137 
00146 typedef struct graphicsevent
00147 {
00148   struct graphicsevent *next;    /*next event */
00149   WINDOW fd;                     //structure of window
00150   INT16 fildes;                  //unix only
00151   INT8 type;                     /*event type */
00152   char key;                      /*keypress */
00153   float x, y;                    /*position of event */
00154   float xmax, ymax;              //for selection
00155 } GRAPHICS_EVENT;                /*event type */
00156 
00157 typedef void (*EVENT_HANDLER) (GRAPHICS_EVENT *);
00158 #endif

Generated on Wed Feb 28 19:49:12 2007 for Tesseract by  doxygen 1.5.1