diff options
author | QC <qball@gmpclient.org> | 2014-03-22 21:04:19 +0100 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2014-03-22 21:04:19 +0100 |
commit | c87312be3607e0c459f2649736c1b7419eee42ae (patch) | |
tree | 0f8e73688884f4843a46ddc6b2a358d3fb4e6061 /include/textbox.h | |
parent | 4d37cf35dc0a64abf3ca0f672807dd94e01c02b0 (diff) |
Indent o mania.
Diffstat (limited to 'include/textbox.h')
-rw-r--r-- | include/textbox.h | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/include/textbox.h b/include/textbox.h index 4e4061b1..7fbc3a0e 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -1,47 +1,49 @@ #ifndef __TEXTBOX_H__ #define __TEXTBOX_H__ -typedef struct { +typedef struct +{ unsigned long flags; - Window window, parent; - short x, y, w, h; - short cursor; - XftFont *font; - XftColor color_fg, color_bg; - char *text, *prompt; - XIM xim; - XIC xic; - XGlyphInfo extents; + Window window, parent; + short x, y, w, h; + short cursor; + XftFont *font; + XftColor color_fg, color_bg; + char *text, *prompt; + XIM xim; + XIC xic; + XGlyphInfo extents; } textbox; -typedef enum { - TB_AUTOHEIGHT = 1<<0, - TB_AUTOWIDTH = 1<<1, - TB_LEFT = 1<<16, - TB_RIGHT = 1<<17, - TB_CENTER = 1<<18, - TB_EDITABLE = 1<<19, +typedef enum +{ + TB_AUTOHEIGHT = 1 << 0, + TB_AUTOWIDTH = 1 << 1, + TB_LEFT = 1 << 16, + TB_RIGHT = 1 << 17, + TB_CENTER = 1 << 18, + TB_EDITABLE = 1 << 19, } TextboxFlags; -textbox* textbox_create( Window parent, - TextboxFlags flags, - short x, short y, short w, short h, - char *font, char *fg, char *bg, - char *text, char *prompt ); +textbox* textbox_create ( Window parent, + TextboxFlags flags, + short x, short y, short w, short h, + char *font, char *fg, char *bg, + char *text, char *prompt ); -void textbox_free( textbox *tb ); +void textbox_free ( textbox *tb ); -void textbox_font( textbox *tb, char *font, char *fg, char *bg ); +void textbox_font ( textbox *tb, char *font, char *fg, char *bg ); -void textbox_text( textbox *tb, char *text ); -void textbox_show( textbox *tb ); -void textbox_draw( textbox *tb ); +void textbox_text ( textbox *tb, char *text ); +void textbox_show ( textbox *tb ); +void textbox_draw ( textbox *tb ); -int textbox_keypress( textbox *tb, XEvent *ev ); +int textbox_keypress ( textbox *tb, XEvent *ev ); -void textbox_cursor_end( textbox *tb ); +void textbox_cursor_end ( textbox *tb ); #endif //__TEXTBOX_H__ |