source: OGRE/trunk/ogre_dependencies/Dependencies/include/CEGUI/falagard/CEGUIFalPropertyDefinition.h @ 692

Revision 692, 2.5 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1/************************************************************************
2    filename:   CEGUIFalPropertyDefinition.h
3    created:    Sun Jun 26 2005
4    author:     Paul D Turner <paul@cegui.org.uk>
5*************************************************************************/
6/*************************************************************************
7    Crazy Eddie's GUI System (http://www.cegui.org.uk)
8    Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
9 
10    This library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Lesser General Public
12    License as published by the Free Software Foundation; either
13    version 2.1 of the License, or (at your option) any later version.
14 
15    This library is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Lesser General Public License for more details.
19 
20    You should have received a copy of the GNU Lesser General Public
21    License along with this library; if not, write to the Free Software
22    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23*************************************************************************/
24#ifndef _CEGUIFalPropertyDefinition_h_
25#define _CEGUIFalPropertyDefinition_h_
26
27#include "CEGUIProperty.h"
28
29// Start of CEGUI namespace section
30namespace CEGUI
31{
32    /*!
33    \brief
34        class representing a new property to be available on all widgets that use the WidgetLook
35        that this PropertyDefinition is defiend for.
36    */
37    class CEGUIEXPORT PropertyDefinition : public Property
38    {
39    public:
40        PropertyDefinition(const String& name, const String& initialValue, bool redrawOnWrite, bool layoutOnWrite);
41
42        // abstract members from Property
43        String get(const PropertyReceiver* receiver) const;
44        void set(PropertyReceiver* receiver, const String& value);
45
46        /*!
47        \brief
48            Writes an xml representation of this PropertyDefinition  to \a out_stream.
49
50        \param out_stream
51            Stream where xml data should be output.
52
53        \return
54            Nothing.
55        */
56        void writeXMLToStream(OutStream& out_stream) const;
57
58    protected:
59        String d_userStringName;
60        bool d_writeCausesRedraw;
61        bool d_writeCausesLayout;
62    };
63
64} // End of  CEGUI namespace section
65
66
67#endif  // end of guard _CEGUIFalPropertyDefinition_h_
Note: See TracBrowser for help on using the repository browser.