diff options
Diffstat (limited to 'src/view.h')
-rw-r--r-- | src/view.h | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -21,37 +21,24 @@ #include "sys-queue.h" -#define VIEW_FLAGS_STAYTOP 0x01 /* keep view always on top */ -#define VIEW_FLAGS_BORDER 0x02 /* draw border */ -#define VIEW_FLAGS_TRANSPARENT 0x04 /* take rear views as background */ -#define VIEW_FLAGS_LABEL 0x08 /* display label */ -#define VIEW_FLAGS_FRONT 0x10 /* do not dim the view */ -#define VIEW_FLAGS_BACKGROUND 0x20 /* view is a background view */ -#define VIEW_FLAGS_SERVER 0x40 /* view is server-owned */ -#define VIEW_FLAGS_THUMBNAIL 0x80 /* view is a thumbnail view */ +#define VIEW_FLAGS_BACKGROUND 0x1 /* view is a background view */ +#define VIEW_FLAGS_SERVER 0x2 /* view is server-owned */ +#define VIEW_FLAGS_THUMBNAIL 0x4 /* view is a thumbnail view */ #define VIEW_STACK_TOP 0x1 /* top-most */ #define VIEW_STACK_BOTTOM 0x2 /* bottom-most */ #define VIEW_STACK_ABOVE 0x4 /* above sibling view */ #define VIEW_STACK_BELOW 0x8 /* below sibling view */ -#define BORDER 3 /* size of security border */ -#define CORNER 18 /* size of security corner */ -#define MAX_LABEL 32 /* max.characters of a label */ - struct client; struct buffer; struct view { int id; /* view ID */ - int state; /* state of view */ int flags; /* properties of the view */ struct sec_label *label; /* security label */ - unsigned long token; /* private token of the application */ DFBRectangle bpos; /* view location within its buffer */ DFBRectangle spos; /* view position and size on screen */ - int lx, ly, lw, lh; /* position and size of label */ - char *string; /* client-defined string */ struct client *client; /* client owner */ struct buffer *buffer; /* buffer that is visible within the view */ TAILQ_ENTRY(view) buffer_next; /* next view of the same buffer */ @@ -101,9 +88,6 @@ view_set_position(struct view *v, int x, int y); int view_translate(struct view *v, int dx, int dy); -int -view_set_title(struct view *view, const char *title); - void view_refresh(struct view *view); |