source: GTP/trunk/App/Demos/Geom/OgreStuff/include/CEGUI/CEGUISize.h @ 1092

Revision 1092, 1.8 KB checked in by gumbau, 18 years ago (diff)

LodStrips? and LODTrees demos

Line 
1/************************************************************************
2        filename:       CEGUISize.h
3        created:        14/3/2004
4        author:         Paul D Turner
5       
6        purpose:        Defines interface for Size class
7*************************************************************************/
8/*************************************************************************
9    Crazy Eddie's GUI System (http://www.cegui.org.uk)
10    Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
11
12    This library is free software; you can redistribute it and/or
13    modify it under the terms of the GNU Lesser General Public
14    License as published by the Free Software Foundation; either
15    version 2.1 of the License, or (at your option) any later version.
16
17    This library is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20    Lesser General Public License for more details.
21
22    You should have received a copy of the GNU Lesser General Public
23    License along with this library; if not, write to the Free Software
24    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25*************************************************************************/
26#ifndef _CEGUISize_h_
27#define _CEGUISize_h_
28
29#include "CEGUIBase.h"
30
31// Start of CEGUI namespace section
32namespace CEGUI
33{
34
35/*!
36\brief
37        Class that holds the size (width & height) of something.
38*/
39class CEGUIEXPORT Size
40{
41public:
42        Size(void) {}
43        Size(float width, float height) : d_width(width), d_height(height) {}
44
45        bool operator==(const Size& other) const;
46        bool operator!=(const Size& other) const;
47
48        float d_width, d_height;
49};
50
51} // End of  CEGUI namespace section
52
53
54#endif  // end of guard _CEGUISize_h_
Note: See TracBrowser for help on using the repository browser.