From cffc67aae848a6c74be6f7c0c0caf57a889cbacc Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 29 Jul 2007 22:57:40 +0000 Subject: (svn r10730) -Codechange: allow (some) arbitrary data to be send to the WE_CREATE event. --- src/window.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/window.h') diff --git a/src/window.h b/src/window.h index 60173560c..a441dd6eb 100644 --- a/src/window.h +++ b/src/window.h @@ -127,7 +127,11 @@ enum WindowEventCodes { struct WindowEvent { byte event; union { - struct{ + struct { + void *data; + } create; + + struct { Point pt; int widget; } click; @@ -581,10 +585,11 @@ Window *AllocateWindow( int height, WindowProc *proc, WindowClass cls, - const Widget *widget); + const Widget *widget, + void *data = NULL); -Window *AllocateWindowDesc(const WindowDesc *desc); -Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number); +Window *AllocateWindowDesc(const WindowDesc *desc, void *data = NULL); +Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number, void *data = NULL); void DrawWindowViewport(const Window *w); void ResizeWindow(Window *w, int x, int y); -- cgit v1.2.3-54-g00ecf