/************************************************************************ filename: CEGUIPushButtonProperties.h created: 22/2/2005 author: Paul D Turner *************************************************************************/ /************************************************************************* Crazy Eddie's GUI System (http://www.cegui.org.uk) Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *************************************************************************/ #ifndef _CEGUIPushButtonProperties_h_ #define _CEGUIPushButtonProperties_h_ #include "CEGUIProperty.h" // Start of CEGUI namespace section namespace CEGUI { // Start of PushButtonProperties namespace section /*! \brief Namespace containing all classes that make up the properties interface for the PushButton class */ namespace PushButtonProperties { /*! \brief Property to access the normal image of the button \par Usage: - Name: NormalImage - Format: "set: image:". */ class NormalImage : public Property { public: NormalImage() : Property( "NormalImage", "Property to get/set the normal image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".", "") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the pushed image of the button \par Usage: - Name: PushedImage - Format: "set: image:". */ class PushedImage : public Property { public: PushedImage() : Property( "PushedImage", "Property to get/set the pushed image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".", "") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the hover image of the button \par Usage: - Name: HoverImage - Format: "set: image:". */ class HoverImage : public Property { public: HoverImage() : Property( "HoverImage", "Property to get/set the hover image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".", "") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the disabled image of the button \par Usage: - Name: DisabledImage - Format: "set: image:". */ class DisabledImage : public Property { public: DisabledImage() : Property( "DisabledImage", "Property to get/set the disabled image for the PushButton widget. Value should be \"set:[imageset name] image:[image name]\".", "") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access whether to use the standard images or the supplied custom ones \par Usage: - Name: UseStandardImagery - Format: "True|False". */ class UseStandardImagery : public Property { public: UseStandardImagery() : Property( "UseStandardImagery", "Property to get/set whether to use the standard imagery for the PushButton widget. Value should be \"True\" or \"False\".", "True") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access an offset that is used to shift the text in the x-direction. \par Usage: - Name: UseStandardImagery - Format: "". \par where is a float value specifying the offset relative to the button-size */ class TextXOffset : public Property { public: TextXOffset() : Property( "TextXOffset", "Property to get/set a relative x offset for the button's text", "0.000000") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; } } #endif