Redefine the default boolean type to gmx_bool.
[alexxy/gromacs.git] / src / ngmx / xdlg.h
index 2d21d9d868cfd6459357139233063a04abc19ebb..05f4f9b54fac06b5e70785698dc9491d090ea788 100644 (file)
@@ -63,8 +63,8 @@ typedef struct {
   unsigned int          xmax,ymax;      /* Dimensions of parent window                 */
   unsigned long         flags;          /* Flags for display                   */
   unsigned long         fg,bg;          /* The colours                                 */
-  bool          bPop;           /* Should we pop the mouse back        */
-  bool          bGrab;          /* Have we grabbed the mouse ?                 */
+  gmx_bool          bPop;           /* Should we pop the mouse back    */
+  gmx_bool          bGrab;          /* Have we grabbed the mouse ?             */
   int          nitem;          /* The number of items                  */
   t_dlgitem    **dlgitem;      /* The array of item pointers           */
   DlgCallback   *cb;           /* User call back function              */
@@ -99,9 +99,9 @@ void AddDlgItems(t_dlg *dlg,int nitem,t_dlgitem *item[]);
  * FALSE will mean most of the time, that item id was not found
  *
  ****************************/
-bool QueryDlgItemSize(t_dlg *dlg,t_id id,int *w,int *h);
+gmx_bool QueryDlgItemSize(t_dlg *dlg,t_id id,int *w,int *h);
 
-bool QueryDlgItemPos(t_dlg *dlg,t_id id,int *x0,int *y0);
+gmx_bool QueryDlgItemPos(t_dlg *dlg,t_id id,int *x0,int *y0);
 
 int QueryDlgItemX(t_dlg *dlg, t_id id);
 
@@ -111,11 +111,11 @@ int QueryDlgItemW(t_dlg *dlg, t_id id);
 
 int QueryDlgItemH(t_dlg *dlg, t_id id);
 
-bool SetDlgItemSize(t_dlg *dlg,t_id id,int w,int h);
+gmx_bool SetDlgItemSize(t_dlg *dlg,t_id id,int w,int h);
 
-bool SetDlgItemPos(t_dlg *dlg,t_id id,int x0,int y0);
+gmx_bool SetDlgItemPos(t_dlg *dlg,t_id id,int x0,int y0);
 
-void SetDlgSize(t_dlg *dlg,int w,int h, bool bAutoPosition);
+void SetDlgSize(t_dlg *dlg,int w,int h, gmx_bool bAutoPosition);
 
 /*****************************
  *
@@ -123,7 +123,7 @@ void SetDlgSize(t_dlg *dlg,int w,int h, bool bAutoPosition);
  * after dlg is exec'ed
  *
  ****************************/
-bool IsCBChecked(t_dlg *dlg,t_id id);
+gmx_bool IsCBChecked(t_dlg *dlg,t_id id);
 
 t_id RBSelected(t_dlg *dlg,int gid);