aboutsummaryrefslogtreecommitdiffstats
path: root/dzen.h
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-04 09:47:22 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-04 09:47:22 +0000
commit00e51dd4415467fc2b74006f94b40cbb798d99f5 (patch)
tree1f5535b34f5df28165824d11201a05ca0b1ce3db /dzen.h
parent6494b68742b5f20e3d431716a115319d666752ea (diff)
downloaddzen-00e51dd4415467fc2b74006f94b40cbb798d99f5.tar.gz
dzen-00e51dd4415467fc2b74006f94b40cbb798d99f5.zip
don't be a smartass and use tabs for intendation like every one else
does git-svn-id: http://dzen.googlecode.com/svn/trunk@64 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'dzen.h')
-rw-r--r--dzen.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/dzen.h b/dzen.h
index d521ddc..55b1c57 100644
--- a/dzen.h
+++ b/dzen.h
@@ -28,74 +28,74 @@ typedef struct TW TWIN;
typedef struct SW SWIN;
struct Fnt {
- XFontStruct *xfont;
- XFontSet set;
- int ascent;
- int descent;
- int height;
+ XFontStruct *xfont;
+ XFontSet set;
+ int ascent;
+ int descent;
+ int height;
};
/* title window */
struct TW {
- int x, y, width, height;
+ int x, y, width, height;
- Window win;
- Drawable drawable;
- char alignment;
- Bool ishidden;
+ Window win;
+ Drawable drawable;
+ char alignment;
+ Bool ishidden;
};
/* slave window */
struct SW {
- int x, y, width, height;
-
- Window win;
- Window *line;
- Drawable drawable;
-
- char *tbuf[BUF_SIZE];
- int tcnt;
- int max_lines;
- int first_line_vis;
- int last_line_vis;
- int sel_line;
-
- char alignment;
- Bool ismenu;
- Bool issticky;
- Bool ismapped;
+ int x, y, width, height;
+
+ Window win;
+ Window *line;
+ Drawable drawable;
+
+ char *tbuf[BUF_SIZE];
+ int tcnt;
+ int max_lines;
+ int first_line_vis;
+ int last_line_vis;
+ int sel_line;
+
+ char alignment;
+ Bool ismenu;
+ Bool issticky;
+ Bool ismapped;
};
struct DZEN {
- int x, y, w, h;
- Bool running;
- unsigned long norm[ColLast];
-
- TWIN title_win;
- SWIN slave_win;
-
- char *fnt;
- char *bg;
- char *fg;
- int line_height;
-
- Display *dpy;
- int screen;
- unsigned int depth;
-
- Visual *visual;
- GC gc, rgc;
- Fnt font;
-
- Bool ispersistent;
- // The number of milliseconds to wait after an EOF from stdin before
- // exiting. A value of 0 == forever
- unsigned long timeout;
- int cur_line;
- int ret_val;
-
- /* should always be 0 if DZEN_XINERAMA not defined */
- int xinescreen;
+ int x, y, w, h;
+ Bool running;
+ unsigned long norm[ColLast];
+
+ TWIN title_win;
+ SWIN slave_win;
+
+ char *fnt;
+ char *bg;
+ char *fg;
+ int line_height;
+
+ Display *dpy;
+ int screen;
+ unsigned int depth;
+
+ Visual *visual;
+ GC gc, rgc;
+ Fnt font;
+
+ Bool ispersistent;
+ // The number of milliseconds to wait after an EOF from stdin before
+ // exiting. A value of 0 == forever
+ unsigned long timeout;
+ int cur_line;
+ int ret_val;
+
+ /* should always be 0 if DZEN_XINERAMA not defined */
+ int xinescreen;
};
extern Dzen dzen;
@@ -105,9 +105,9 @@ void x_draw_body(void);
/* draw.c */
extern void drawtext(const char *text,
- int reverse,
- int line,
- int aligne);
+ int reverse,
+ int line,
+ int aligne);
extern unsigned long getcolor(const char *colstr); /* returns color of colstr */
extern void setfont(const char *fontstr); /* sets global font */
extern unsigned int textw(const char *text); /* returns width of text in px */