source: GTP/trunk/Lib/Geom/OgreStuff/include/CEGUI/elements/CEGUIPopupMenuProperties.h @ 1809

Revision 1809, 2.8 KB checked in by gumbau, 18 years ago (diff)
Line 
1/************************************************************************
2        filename:       CEGUIPopupMenuProperties.h
3        created:        5/4/2005
4        author:         Tomas Lindquist Olsen (based on code by Paul D Turner)
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 _CEGUIPopupMenuProperties_h_
25#define _CEGUIPopupMenuProperties_h_
26
27#include "CEGUIProperty.h"
28
29// Start of CEGUI namespace section
30namespace CEGUI
31{
32// Start of ItemListBaseProperties namespace section
33namespace PopupMenuProperties
34{
35
36/*!
37\brief
38        Property to access the fade in time in seconds of the menu bar.
39
40        \par Usage:
41                - Name: FadeInTime
42                - Format: "[float]".
43
44        \par Where:
45                - [float] represents the fade in time in seconds of the menu bar.
46*/
47class FadeInTime : public Property
48{
49public:
50        FadeInTime() : Property(
51                "FadeInTime",
52                "Property to get/set the fade in time in seconds of the menu bar.  Value is a float.",
53                "0.000000")
54        {}
55
56        String  get(const PropertyReceiver* receiver) const;
57        void    set(PropertyReceiver* receiver, const String& value);
58};
59
60
61/*!
62\brief
63        Property to access the fade out time in seconds of the menu bar.
64
65        \par Usage:
66                - Name: FadeOutTime
67                - Format: "[float]".
68
69        \par Where:
70                - [float] represents the fade out time in seconds of the menu bar.
71*/
72class FadeOutTime : public Property
73{
74public:
75        FadeOutTime() : Property(
76                "FadeOutTime",
77                "Property to get/set the fade out time in seconds of the menu bar.  Value is a float.",
78                "0.000000")
79        {}
80
81        String  get(const PropertyReceiver* receiver) const;
82        void    set(PropertyReceiver* receiver, const String& value);
83};
84
85} // End of  PopupMenuProperties namespace section
86} // End of  CEGUI namespace section
87
88#endif  // end of guard _CEGUIPopupMenuProperties_h_
Note: See TracBrowser for help on using the repository browser.