Crazy Eddies GUI System  0.7.9
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CEGUIScrolledContainerProperties.h
1 /***********************************************************************
2  filename: CEGUIScrolledContainerProperties.h
3  created: 3/3/2005
4  author: Paul D Turner
5 *************************************************************************/
6 /***************************************************************************
7  * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
8  *
9  * Permission is hereby granted, free of charge, to any person obtaining
10  * a copy of this software and associated documentation files (the
11  * "Software"), to deal in the Software without restriction, including
12  * without limitation the rights to use, copy, modify, merge, publish,
13  * distribute, sublicense, and/or sell copies of the Software, and to
14  * permit persons to whom the Software is furnished to do so, subject to
15  * the following conditions:
16  *
17  * The above copyright notice and this permission notice shall be
18  * included in all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26  * OTHER DEALINGS IN THE SOFTWARE.
27  ***************************************************************************/
28 #ifndef _CEGUIScrolledContainerProperties_h_
29 #define _CEGUIScrolledContainerProperties_h_
30 
31 #include "../CEGUIProperty.h"
32 
33 // Start of CEGUI namespace section
34 namespace CEGUI
35 {
36 // Start of ScrolledContainerProperties namespace section
41 namespace ScrolledContainerProperties
42 {
57  {
58  public:
60  "ContentPaneAutoSized",
61  "Property to get/set the setting which controls whether the content pane will auto-size itself. Value is either \"True\" or \"False\".",
62  "True")
63  {}
64 
65  String get(const PropertyReceiver* receiver) const;
66  void set(PropertyReceiver* receiver, const String& value);
67  };
68 
83  class ContentArea : public Property
84  {
85  public:
87  "ContentArea",
88  "Property to get/set the current content area rectangle of the content pane. Value is \"l:[float] t:[float] r:[float] b:[float]\" (where l is left, t is top, r is right, and b is bottom).",
89  "l:0.000000 t:0.000000 r:0.000000 b:0.000000")
90  {}
91 
92  String get(const PropertyReceiver* receiver) const;
93  void set(PropertyReceiver* receiver, const String& value);
94  };
95 
110  class ChildExtentsArea : public Property
111  {
112  public:
114  "ChildExtentsArea",
115  "Property to get the current content extents rectangle. Value is \"l:[float] t:[float] r:[float] b:[float]\" (where l is left, t is top, r is right, and b is bottom).",
116  "l:0.000000 t:0.000000 r:0.000000 b:0.000000")
117  {}
118 
119  String get(const PropertyReceiver* receiver) const;
120  void set(PropertyReceiver* receiver, const String& value);
121  };
122 
123 } // End of ScrolledContainerProperties namespace section
124 } // End of CEGUI namespace section
125 
126 
127 #endif // end of guard _CEGUIScrolledContainerProperties_h_
void set(PropertyReceiver *receiver, const String &value)
Sets the value of the property.
Property to access the current content pane area rectangle (as window relative pixels).
Definition: CEGUIScrolledContainerProperties.h:83
Property offering read-only access to the current content extents rectangle (as window relative pixel...
Definition: CEGUIScrolledContainerProperties.h:110
Dummy base class to ensure correct casting of receivers.
Definition: CEGUIProperty.h:46
Property to access the setting which controls whether the content pane is automatically resized accor...
Definition: CEGUIScrolledContainerProperties.h:56
An abstract class that defines the interface to access object properties by name. ...
Definition: CEGUIProperty.h:61
Property(const String &name, const String &help, const String &defaultValue="", bool writesXML=true)
Creates a new Property object.
Definition: CEGUIProperty.h:81
void set(PropertyReceiver *receiver, const String &value)
Sets the value of the property.
void set(PropertyReceiver *receiver, const String &value)
Sets the value of the property.
String class used within the GUI system.
Definition: CEGUIString.h:57