src/window.h
branchnoai
changeset 9694 e72987579514
parent 9686 d3c195c226f9
child 9703 d2a6acdbd665
equal deleted inserted replaced
9693:31fcaa5375a1 9694:e72987579514
   125 };
   125 };
   126 
   126 
   127 struct WindowEvent {
   127 struct WindowEvent {
   128 	byte event;
   128 	byte event;
   129 	union {
   129 	union {
   130 		struct{
   130 		struct {
       
   131 			void *data;
       
   132 		} create;
       
   133 
       
   134 		struct {
   131 			Point pt;
   135 			Point pt;
   132 			int widget;
   136 			int widget;
   133 		} click;
   137 		} click;
   134 
   138 
   135 		struct {
   139 		struct {
   189 		} wheel;
   193 		} wheel;
   190 	} we;
   194 	} we;
   191 };
   195 };
   192 
   196 
   193 struct WindowDesc {
   197 struct WindowDesc {
   194 	int16 left, top, width, height;
   198 	int16 left, top, minimum_width, minimum_height, default_width, default_height;
   195 	WindowClass cls;
   199 	WindowClass cls;
   196 	WindowClass parent_cls;
   200 	WindowClass parent_cls;
   197 	uint32 flags;
   201 	uint32 flags;
   198 	const Widget *widgets;
   202 	const Widget *widgets;
   199 	WindowProc *proc;
   203 	WindowProc *proc;
   579 							int y,
   583 							int y,
   580 							int width,
   584 							int width,
   581 							int height,
   585 							int height,
   582 							WindowProc *proc,
   586 							WindowProc *proc,
   583 							WindowClass cls,
   587 							WindowClass cls,
   584 							const Widget *widget);
   588 							const Widget *widget,
   585 
   589 							void *data = NULL);
   586 Window *AllocateWindowDesc(const WindowDesc *desc);
   590 
   587 Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number);
   591 Window *AllocateWindowDesc(const WindowDesc *desc, void *data = NULL);
       
   592 Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number, void *data = NULL);
   588 
   593 
   589 void DrawWindowViewport(const Window *w);
   594 void DrawWindowViewport(const Window *w);
   590 void ResizeWindow(Window *w, int x, int y);
   595 void ResizeWindow(Window *w, int x, int y);
   591 
   596 
   592 /**
   597 /**