Apply clang-format to source tree
[alexxy/gromacs.git] / src / programs / view / pulldown.h
index 71777971b459e6d1b618959cb9eb49f7159a33ad..1d87cd4a1796f09d3e22096a7b41468e921ffa7d 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013, by the GROMACS development team, led by
+ * Copyright (c) 2013,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
 
 #include "popup.h"
 
-typedef struct {
+typedef struct
+{
     t_windata    wd;
     int          nmenu;
     int          nsel;
-    int         *xpos;
-    t_menu     **m;
-    const char **title;
+    int*         xpos;
+    t_menu**     m;
+    const char** title;
 } t_pulldown;
 
-extern t_pulldown *init_pd(t_x11 *x11, Window Parent, int width,
-                           unsigned long fg, unsigned long bg,
-                           int nmenu, int *nsub, t_mentry *ent[],
-                           const char **title);
+extern t_pulldown* init_pd(t_x11*        x11,
+                           Window        Parent,
+                           int           width,
+                           unsigned long fg,
+                           unsigned long bg,
+                           int           nmenu,
+                           int*          nsub,
+                           t_mentry*     ent[],
+                           const char**  title);
 /* nmenu is the number of submenus, title are the titles of
  * the submenus, nsub are the numbers of entries in each submenu
  * ent are the entries in the pulldown menu, analogous to these in the
@@ -68,22 +74,22 @@ extern t_pulldown *init_pd(t_x11 *x11, Window Parent, int width,
  * specifying the selected item in xclient.data.l[0].
  */
 
-extern void hide_pd(t_x11 *x11, t_pulldown *pd);
+extern void hide_pd(t_x11* x11, t_pulldown* pd);
 /* Hides any menu that is still on the screen when it shouldn't */
 
-extern void check_pd_item(t_pulldown *pd, int nreturn, bool bStatus);
+extern void check_pd_item(t_pulldownpd, int nreturn, bool bStatus);
 /* Set the bChecked field in the pd item with return code
  * nreturn to bStatus. This function must always be called when
  * the bChecked flag has to changed.
  */
 
-extern void done_pd(t_x11 *x11, t_pulldown *pd);
+extern void done_pd(t_x11* x11, t_pulldown* pd);
 /* This routine destroys the menu pd, and unregisters it with x11 */
 
-extern int pd_width(t_pulldown *pd);
+extern int pd_width(t_pulldownpd);
 /* Return the width of the window */
 
-extern int pd_height(t_pulldown *pd);
+extern int pd_height(t_pulldownpd);
 /* Return the height of the window */
 
-#endif  /* _pulldown_h */
+#endif /* _pulldown_h */