viewport_type.h

Go to the documentation of this file.
00001 /* $Id: viewport_type.h 14221 2008-09-02 14:46:28Z smatz $ */
00002 
00005 #ifndef VIEWPORT_TYPE_H
00006 #define VIEWPORT_TYPE_H
00007 
00008 #include "zoom_type.h"
00009 
00013 struct ViewPort {
00014   int left;    
00015   int top;     
00016   int width;   
00017   int height;  
00018 
00019   int virtual_left;    
00020   int virtual_top;     
00021   int virtual_width;   
00022   int virtual_height;  
00023 
00024   ZoomLevel zoom;
00025 };
00026 
00027 struct ViewportSign {
00028   int32 left;
00029   int32 top;
00030   uint16 width_1, width_2;
00031 };
00032 
00033 enum {
00034   ZOOM_IN   = 0,
00035   ZOOM_OUT  = 1,
00036   ZOOM_NONE = 2, // hack, used to update the button status
00037 };
00038 
00045 enum {
00046   BB_HEIGHT_UNDER_BRIDGE = 6, 
00047   BB_Z_SEPARATOR  = 7,        
00048 };
00049 
00051 enum ViewportPlaceMethod {
00052   VPM_X_OR_Y          = 0, 
00053   VPM_FIX_X           = 1, 
00054   VPM_FIX_Y           = 2, 
00055   VPM_RAILDIRS        = 3, 
00056   VPM_X_AND_Y         = 4, 
00057   VPM_X_AND_Y_LIMITED = 5, 
00058   VPM_SIGNALDIRS      = 6, 
00059 };
00060 
00063 enum ViewportDragDropSelectionProcess {
00064   DDSP_DEMOLISH_AREA,
00065   DDSP_RAISE_AND_LEVEL_AREA,
00066   DDSP_LOWER_AND_LEVEL_AREA,
00067   DDSP_LEVEL_AREA,
00068   DDSP_CREATE_DESERT,
00069   DDSP_CREATE_ROCKS,
00070   DDSP_CREATE_WATER,
00071   DDSP_CREATE_RIVER,
00072   DDSP_PLANT_TREES,
00073   DDSP_BUILD_BRIDGE,
00074 
00075   /* Rail specific actions */
00076   DDSP_PLACE_RAIL_NE,
00077   DDSP_PLACE_RAIL_NW,
00078   DDSP_PLACE_AUTORAIL,
00079   DDSP_BUILD_SIGNALS,
00080   DDSP_BUILD_STATION,
00081   DDSP_REMOVE_STATION,
00082   DDSP_CONVERT_RAIL,
00083 
00084   /* Road specific actions */
00085   DDSP_PLACE_ROAD_X_DIR,
00086   DDSP_PLACE_ROAD_Y_DIR,
00087   DDSP_PLACE_AUTOROAD,
00088 };
00089 
00090 #endif /* VIEWPORT_TYPE_H */

Generated on Tue Dec 1 00:06:21 2009 for OpenTTD by  doxygen 1.5.6