changeset: 3:409f671eb8dd
tag: tip
user: arg_AT_garbe.us
date: Thu Feb 26 16:41:39 2009 +0000
files: leinwand.h
description:
some other sanity changes
diff -r 74c07ad48edd -r 409f671eb8dd leinwand.h
--- a/leinwand.h Thu Feb 26 16:14:21 2009 +0000
+++ b/leinwand.h Thu Feb 26 16:41:39 2009 +0000
@@ -1,10 +1,10 @@
/* See LICENSE file for license details */
typedef enum {
- CompositorTypeSourceOver,
- CompositorTypeSourceAtTop,
- CompositorTypeSourceIn,
- CompositorTypeSourceOut,
+ CompositorTypeSrcOver,
+ CompositorTypeSrcAtTop,
+ CompositorTypeSrcIn,
+ CompositorTypeSrcOut,
CompositorTypeDestOver,
CompositorTypeDestAtTop,
CompositorTypeDestIn,
@@ -55,7 +55,7 @@
unsigned int id;
LRectangle r; /* virtual rectangle spanned over all screens */
LCompositor *compositor;
- LSurface *root; /* root surface tier is 0 */
+ LSurface *surfaces;
LScreen *screens;
LInput *inputs;
};
@@ -81,16 +81,15 @@
unsigned int id;
LDisplay *dpy;
LRectangle r;
- LSurface *surface;
LScreen *next;
};
struct _LSurface {
unsigned int id;
- unsigned int tier;
LDisplay *dpy;
- LSurface *parent;
+ LSurface *parent; /* if parent == NULL, then it's the root surface */
LSurface *childs;
+ LSurface *prev;
LSurface *next;
};
@@ -102,21 +101,25 @@
LSurface *LGetRootSurface(LDisplay *dpy);
+void LMapSurface(LDisplay *dpy, LSurface *surface);
+
LSurface *LCreateSurface(LDisplay *dpy, LSurface *parent);
+
+void LDestroySurface(LDisplay *dpy, LSurface *surface);
void LSetCompositor(LDisplay *dpy, LSurface *surface, LCompositor *compositor);
-void LDrawSurface(LDisplay *dpy, LSurface *surface, LRectangle destr, LImage *src, LRectangle srcr);
+void LDrawImage(LDisplay *dpy, LSurface *surface, LRectangle destr, LRectangle srcr, LImage *src);
LImage *LGetImage(LDisplay *dpy, LSurface *surface, LRectangle r);
void LFreeImage(LDisplay *dpy, LImage *img);
-void LDestroySurface(LSurface *surface);
-
LInput *LGetInput(LDisplay *dpy, LInputType type);
-void LAddInputHandler(LDisplay *dpy, LInput *input, void (*handler)(LEvent *event));
+void LAddEventHandler(LDisplay *dpy, void (*handler)(LEvent *event));
-void LRemoveInputHandler(LDisplay *dpy, LInput *input, void (*handler)(LEvent *event));
+void LRemoveEventHandler(LDisplay *dpy, void (*handler)(LEvent *event));
+void LCommit(LDisplay *dpy);
+
Received on Thu Feb 26 2009 - 16:41:47 UTC
This archive was generated by hypermail 2.2.0 : Thu Feb 26 2009 - 16:48:04 UTC