diff options
author | rubidium <rubidium@openttd.org> | 2007-12-22 23:30:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-22 23:30:28 +0000 |
commit | 1f6043458c2677f3651618bc23f8b0a24598bffb (patch) | |
tree | bb7b4abc525aa4e79b1a40ebe21516d9c47244e1 /src/viewport.h | |
parent | f9c26f80c5f95e1860722a33bdc6e8af39beb482 (diff) | |
download | openttd-1f6043458c2677f3651618bc23f8b0a24598bffb.tar.xz |
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
Diffstat (limited to 'src/viewport.h')
-rw-r--r-- | src/viewport.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/viewport.h b/src/viewport.h index 08ef26744..451c0a42d 100644 --- a/src/viewport.h +++ b/src/viewport.h @@ -168,4 +168,14 @@ extern TileHighlightData _thd; void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom); +void SetObjectToPlaceWnd(CursorID icon, SpriteID pal, ViewportHighlightMode mode, Window *w); +void SetObjectToPlace(CursorID icon, SpriteID pal, ViewportHighlightMode mode, WindowClass window_class, WindowNumber window_num); + +void ResetObjectToPlace(); + +bool ScrollWindowTo(int x, int y, Window *w, bool instant = false); + +bool ScrollMainWindowToTile(TileIndex tile, bool instant = false); +bool ScrollMainWindowTo(int x, int y, bool instant = false); + #endif /* VIEWPORT_H */ |