Apply clang-format to source tree
[alexxy/gromacs.git] / src / programs / view / xutil.h
index 38510d820e84e3d69b45467f4ac060a188f6c129..8094ff55a31d010a082d27a59bebbd9285d680af 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,2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,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 "Xstuff.h"
 #include "x11.h"
 
-#define OFFS_X          4
-#define OFFS_Y          4
-
-typedef struct {
-    Window         self, Parent;
-    unsigned long  color;
-    char          *text;
-    bool           bFocus;
-    int            x, y, width, height, bwidth;
-    Cursor         cursor;
+#define OFFS_X 4
+#define OFFS_Y 4
+
+typedef struct
+{
+    Window        self, Parent;
+    unsigned long color;
+    char*         text;
+    bool          bFocus;
+    int           x, y, width, height, bwidth;
+    Cursor        cursor;
 } t_windata;
 
-extern int CheckWin(Window win, const char *file, int line);
+extern int CheckWin(Window win, const charfile, int line);
 
 #define CheckWindow(win) CheckWin(win, __FILE__, __LINE__)
 
-extern void LightBorder(Display *disp, Window win, unsigned long color);
+extern void LightBorder(Displaydisp, Window win, unsigned long color);
 
-extern void SpecialTextInRect(t_x11 *x11, XFontStruct *font, Drawable win,
-                              const char *s, int x, int y, int width, int height,
-                              eXPos eX, eYPos eY);
+extern void SpecialTextInRect(t_x11*       x11,
+                              XFontStruct* font,
+                              Drawable     win,
+                              const char*  s,
+                              int          x,
+                              int          y,
+                              int          width,
+                              int          height,
+                              eXPos        eX,
+                              eYPos        eY);
 
-extern void TextInRect(t_x11 *x11, Drawable win,
-                       const char *s, int x, int y, int width, int height,
-                       eXPos eX, eYPos eY);
+extern void
+TextInRect(t_x11* x11, Drawable win, const char* s, int x, int y, int width, int height, eXPos eX, eYPos eY);
 
-extern void TextInWin(t_x11 *x11, t_windata *win, const char *s, eXPos eX, eYPos eY);
+extern void TextInWin(t_x11* x11, t_windata* win, const char* s, eXPos eX, eYPos eY);
 
-extern void InitWin(t_windata *win, int x0, int y0, int w, int h, int bw, const char *text);
+extern void InitWin(t_windata* win, int x0, int y0, int w, int h, int bw, const char* text);
 
-extern void FreeWin(Display *disp, t_windata *win);
+extern void FreeWin(Display* disp, t_windata* win);
 
-extern void ExposeWin(Display *disp, Window win);
+extern void ExposeWin(Displaydisp, Window win);
 
-extern void RectWin(Display *disp, GC gc, t_windata *win, unsigned long color);
+extern void RectWin(Display* disp, GC gc, t_windata* win, unsigned long color);
 
-extern void XDrawRoundRect(Display *disp, Window win, GC gc,
-                           int x, int y, int w, int h);
+extern void XDrawRoundRect(Display* disp, Window win, GC gc, int x, int y, int w, int h);
 
-extern void RoundRectWin(Display *disp, GC gc, t_windata *win,
-                         int offsx, int offsy, unsigned long color);
+extern void RoundRectWin(Display* disp, GC gc, t_windata* win, int offsx, int offsy, unsigned long color);
 
-extern void PushMouse(Display *disp, Window dest, int x, int y);
+extern void PushMouse(Displaydisp, Window dest, int x, int y);
 
-extern void PopMouse(Display *disp);
+extern void PopMouse(Displaydisp);
 
-extern bool HelpPressed(XEvent *event);
+extern bool HelpPressed(XEventevent);
 
-extern bool GrabOK(FILE *out, int err);
+extern bool GrabOK(FILEout, int err);
 /* Return true if grab succeeded, prints a message to out
  * and returns false otherwise.
  */
 
-#endif  /* _xutil_h */
+#endif /* _xutil_h */