00001 /* $Id: editor_layout.hpp 23842 2008-02-16 08:47:16Z mordante $ */ 00002 /* 00003 Copyright (C) 2003 - 2008 by David White <dave@whitevine.net> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 2 00008 or at your option any later version. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 //! @file editor/editor_layout.hpp 00016 //! 00017 00018 #ifndef EDITOR_LAYOUT_H_INCLUDED 00019 #define EDITOR_LAYOUT_H_INCLUDED 00020 00021 #include "global.hpp" 00022 00023 #include "display.hpp" 00024 00025 namespace map_editor { 00026 00027 //! Size specifications for the map editor. 00028 struct size_specs { 00029 //! Initialize the values to dummie-values that will 00030 //! avoid floating point errors if calculations are made 00031 //! before the sizes are adjusted through adjust_sizes(). 00032 size_specs(); 00033 size_t terrain_size; 00034 size_t terrain_padding; 00035 size_t terrain_space; 00036 size_t terrain_width; 00037 size_t palette_x; 00038 size_t palette_y; 00039 size_t palette_h; 00040 size_t palette_w; 00041 size_t brush_x; 00042 size_t brush_y; 00043 size_t brush_padding; 00044 }; 00045 00046 //! Adjust the internal size specifications to fit the display. 00047 void adjust_sizes(const display &disp, size_specs &sizes); 00048 00049 } 00050 00051 #endif // EDITOR_LAYOUT_H_INCLUDED
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |