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 | 8f0e68285b4eadd1780280d7e36b00ff80c20f67 (patch) | |
tree | bb7b4abc525aa4e79b1a40ebe21516d9c47244e1 /src/viewport.h | |
parent | a7d54cf9464f457f181f920a4edc34fcb97aac4f (diff) | |
download | openttd-8f0e68285b4eadd1780280d7e36b00ff80c20f67.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 */ |