2007-12-15 07:53:53 +01:00
|
|
|
#ifndef AWESOME_WIDGET_H
|
|
|
|
#define AWESOME_WIDGET_H
|
|
|
|
|
2007-12-17 10:57:17 +01:00
|
|
|
#include <confuse.h>
|
2007-12-15 07:53:53 +01:00
|
|
|
#include "config.h"
|
|
|
|
#include "draw.h"
|
2007-12-16 10:25:13 +01:00
|
|
|
#include "common.h"
|
2007-12-15 07:53:53 +01:00
|
|
|
|
|
|
|
enum { AlignLeft, AlignRight, AlignFlex };
|
|
|
|
|
2007-12-17 10:57:17 +01:00
|
|
|
typedef Widget *(WidgetConstructor)(Statusbar*, cfg_t*);
|
2007-12-15 18:21:02 +01:00
|
|
|
|
2007-12-15 07:53:53 +01:00
|
|
|
int calculate_offset(int, int, int, int);
|
|
|
|
void calculate_alignments(Widget *widget);
|
2007-12-17 10:57:17 +01:00
|
|
|
void common_new(Widget*, Statusbar*, cfg_t*);
|
2007-12-15 07:53:53 +01:00
|
|
|
|
2007-12-16 09:34:33 +01:00
|
|
|
WidgetConstructor layoutinfo_new;
|
|
|
|
WidgetConstructor taglist_new;
|
|
|
|
WidgetConstructor textbox_new;
|
|
|
|
WidgetConstructor focustitle_new;
|
2007-12-15 07:53:53 +01:00
|
|
|
|
2007-12-16 10:25:13 +01:00
|
|
|
UICB_PROTO(uicb_widget_tell);
|
|
|
|
|
2007-12-15 07:53:53 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99
|