CEGUIPushButtonProperties.h

00001 /************************************************************************
00002         filename:       CEGUIPushButtonProperties.h
00003         created:        22/2/2005
00004         author:         Paul D Turner
00005 *************************************************************************/
00006 /*************************************************************************
00007     Crazy Eddie's GUI System (http://www.cegui.org.uk)
00008     Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
00009 
00010     This library is free software; you can redistribute it and/or
00011     modify it under the terms of the GNU Lesser General Public
00012     License as published by the Free Software Foundation; either
00013     version 2.1 of the License, or (at your option) any later version.
00014 
00015     This library is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018     Lesser General Public License for more details.
00019 
00020     You should have received a copy of the GNU Lesser General Public
00021     License along with this library; if not, write to the Free Software
00022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023 *************************************************************************/
00024 #ifndef _CEGUIPushButtonProperties_h_
00025 #define _CEGUIPushButtonProperties_h_
00026 
00027 #include "CEGUIProperty.h"
00028 
00029 
00030 // Start of CEGUI namespace section
00031 namespace CEGUI
00032 {
00033 
00034 // Start of PushButtonProperties namespace section
00040 namespace PushButtonProperties
00041 {
00042 
00052 class NormalImage : public Property
00053 {
00054 public:
00055    NormalImage() : Property(
00056            "NormalImage", 
00057            "Property to get/set the normal image for the PushButton widget.  Value should be \"set:[imageset name] image:[image name]\".",
00058            "")
00059    {}
00060 
00061    String   get(const PropertyReceiver* receiver) const;
00062    void   set(PropertyReceiver* receiver, const String& value);
00063 };
00064 
00074 class PushedImage : public Property
00075 {
00076 public:
00077    PushedImage() : Property(
00078            "PushedImage",
00079            "Property to get/set the pushed image for the PushButton widget.  Value should be \"set:[imageset name] image:[image name]\".",
00080            "")
00081    {}
00082 
00083    String   get(const PropertyReceiver* receiver) const;
00084    void   set(PropertyReceiver* receiver, const String& value);
00085 };
00086 
00096 class HoverImage : public Property
00097 {
00098 public:
00099    HoverImage() : Property(
00100            "HoverImage",
00101            "Property to get/set the hover image for the PushButton widget.  Value should be \"set:[imageset name] image:[image name]\".",
00102            "")
00103    {}
00104 
00105    String   get(const PropertyReceiver* receiver) const;
00106    void   set(PropertyReceiver* receiver, const String& value);
00107 };
00108 
00118 class DisabledImage : public Property
00119 {
00120 public:
00121    DisabledImage() : Property(
00122            "DisabledImage",
00123            "Property to get/set the disabled image for the PushButton widget.  Value should be \"set:[imageset name] image:[image name]\".",
00124            "")
00125    {}
00126 
00127    String   get(const PropertyReceiver* receiver) const;
00128    void   set(PropertyReceiver* receiver, const String& value);
00129 };
00130 
00140 class UseStandardImagery : public Property
00141 {
00142 public:
00143    UseStandardImagery() : Property(
00144            "UseStandardImagery",
00145            "Property to get/set whether to use the standard imagery for the PushButton widget.  Value should be \"True\" or \"False\".",
00146            "True")
00147    {}
00148 
00149    String   get(const PropertyReceiver* receiver) const;
00150    void   set(PropertyReceiver* receiver, const String& value);
00151 };
00152 
00165 class TextXOffset : public Property
00166 {
00167 public:
00168    TextXOffset() : Property(
00169            "TextXOffset",
00170            "Property to get/set a relative x offset for the button's text",
00171            "0.000000")
00172    {}
00173 
00174    String get(const PropertyReceiver* receiver) const;
00175    void set(PropertyReceiver* receiver, const String& value);
00176 };
00177 
00178 }
00179 
00180 }
00181 #endif

Generated on Sat Nov 26 10:09:55 2005 for Crazy Eddies GUI System by  doxygen 1.4.5