Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / ngmx / manager.h
index 0fc964c4b1c4210845830730d80c76e6c2386ec2..7b2aa4e46983f33f2f00a3a2d764ff8168e2743e 100644 (file)
@@ -62,7 +62,7 @@ enum { esbNone, esbRect, esbTri, esbTrunc, esbNR };
 
 typedef struct {
   t_windata wd;                        /* Mol window structure                 */
-  bool      bShowHydrogen;     /* Show Hydrogens?                      */
+  gmx_bool      bShowHydrogen; /* Show Hydrogens?                      */
   int       bond_type;         /* Show one of the above bondtypes      */
   int       ePBC;               /* PBC type                             */
   int       boxtype;            /* Rectangular, Tric, TruncOct (display)*/
@@ -80,8 +80,8 @@ typedef struct {
 typedef struct {
   t_blocka *grps;              /* Blocks with atom numbers             */
   char    **grpnames;          /* The names of the groups              */
-  bool    *bDisable;            /* Group indexes out of natoms in TRX   */
-  bool    *bShow;              /* Show a group ?                       */
+  gmx_bool    *bDisable;            /* Group indexes out of natoms in TRX   */
+  gmx_bool    *bShow;          /* Show a group ?                       */
 } t_filter;
 
 /*
@@ -105,19 +105,19 @@ typedef struct {
   matrix    box;               /* The box                              */
   int       nobj;              /* The number of objects                */
   t_object  *obj;              /* The objects on screen                */
-  bool      *bHydro;           /* TRUE for hydrogen atoms              */
-  bool      *bLabel;            /* Show a label on atom i?              */
+  gmx_bool      *bHydro;               /* TRUE for hydrogen atoms              */
+  gmx_bool      *bLabel;            /* Show a label on atom i?              */
   char      **szLab;            /* Array of pointers to labels          */
   unsigned long *col;          /* The colour of the atoms              */
   int       *size;             /* The size of the atoms                */
   real      *vdw;              /* The VDWaals radius of the atoms      */
-  bool      *bVis;              /* visibility of atoms                  */
-  bool      bPbc;               /* Remove Periodic boundary             */
-  bool      bAnimate;          /* Animation going on?                  */
-  bool      bEof;               /* End of file reached?                 */
-  bool      bStop;              /* Stopped by user?                     */
-  bool      bSort;             /* Sort the coordinates                 */
-  bool      bPlus;             /* Draw plus for single atom            */
+  gmx_bool      *bVis;              /* visibility of atoms                  */
+  gmx_bool      bPbc;               /* Remove Periodic boundary             */
+  gmx_bool      bAnimate;              /* Animation going on?                  */
+  gmx_bool      bEof;               /* End of file reached?                 */
+  gmx_bool      bStop;              /* Stopped by user?                     */
+  gmx_bool      bSort;         /* Sort the coordinates                 */
+  gmx_bool      bPlus;         /* Draw plus for single atom            */
   int       nSkip;             /* Skip n steps after each frame        */
   int       nWait;             /* Wait n ms after each frame           */
   gmx_rmpbc_t gpbc;             /* For removing peridiocity             */
@@ -153,9 +153,9 @@ extern void map_man(t_x11 *x11,t_manager *man);
 
 extern void move_man(t_x11 *x11,t_manager *man,int width,int height);
 
-extern bool toggle_animate (t_x11 *x11,t_manager *man);
+extern gmx_bool toggle_animate (t_x11 *x11,t_manager *man);
 
-extern bool toggle_pbc (t_manager *man);
+extern gmx_bool toggle_pbc (t_manager *man);
 
 extern void no_labels(t_x11 *x11,t_manager *man);
 /* Turn off all labels */