diff options
author | rubidium <rubidium@openttd.org> | 2008-05-18 12:40:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-18 12:40:38 +0000 |
commit | fc4393dcfee86962549736b429f69cc551ea1ab3 (patch) | |
tree | 714f6bb8fc38d8b835bffc7a3eaa83e7e6e08e5a /src/window_gui.h | |
parent | a4260474410a86019f2ab80a329141afd7db79ce (diff) | |
download | openttd-fc4393dcfee86962549736b429f69cc551ea1ab3.tar.xz |
(svn r13160) -Codechange: prepare GUIPlaceProcDragXY for the removal of WindowEvent.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 3b8e792b6..f1e8ed21f 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -20,8 +20,6 @@ */ static const int MAX_NUMBER_OF_WINDOWS = 25; -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 @@ -147,7 +145,7 @@ struct WindowEvent { TileIndex tile; TileIndex starttile; ViewportPlaceMethod select_method; - byte select_proc; + ViewportDragDropSelectionProcess select_proc; } place; struct { @@ -185,6 +183,8 @@ struct WindowEvent { } we; }; +typedef void WindowProc(Window *w, WindowEvent *e); + /** * High level window description */ @@ -482,7 +482,7 @@ public: * @param select_proc what will be created when the drag is over. * @param pt the exact point on the map where the mouse is. */ - virtual void OnPlaceDrag(ViewportPlaceMethod select_method, byte select_proc, Point pt); + virtual void OnPlaceDrag(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt); /** * The user has dragged over the map when the tile highlight mode @@ -493,7 +493,7 @@ public: * @param start_tile the begin tile of the drag. * @param end_tile the end tile of the drag. */ - virtual void OnPlaceMouseUp(ViewportPlaceMethod select_method, byte select_proc, Point pt, TileIndex start_tile, TileIndex end_tile); + virtual void OnPlaceMouseUp(ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, Point pt, TileIndex start_tile, TileIndex end_tile); /** * The user moves over the map when a tile highlight mode has been set |