|
|
#ifndef WINDOW_H
|
|
|
#define WINDOW_H
|
|
|
|
|
|
#include "vehicle_gui.h"
|
|
|
|
|
|
typedef union WindowEvent WindowEvent;
|
|
|
|
|
|
//typedef void WindowProc(Window *w, int event, int wparam, long lparam);
|
|
|
|
|
|
typedef void WindowProc(Window *w, WindowEvent *e);
|
|
|
|
|
|
/* How the resize system works:
|
|
|
First, you need to add a WWT_RESIZEBOX to the widgets, and you need
|
|
|
to add the flag WDF_RESIZABLE to the window. Now the window is ready
|
|
|
to resize itself.
|
|
|
As you may have noticed, all widgets have a RESIZE_XXX in their line.
|
|
|
This lines controls how the widgets behave on resize. RESIZE_NONE means
|