/************************************************************************ filename: CEGUIFrameWindowProperties.h created: 10/7/2004 author: Paul D Turner purpose: Interface to properties for FrameWIndow class *************************************************************************/ /************************************************************************* 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 _CEGUIFrameWindowProperties_h_ #define _CEGUIFrameWindowProperties_h_ #include "CEGUIProperty.h" // Start of CEGUI namespace section namespace CEGUI { // Start of FrameWindowProperties namespace section /*! \brief Namespace containing all classes that make up the properties interface for the FrameWindow class */ namespace FrameWindowProperties { /*! \brief Property to access the state of the sizable setting for the FrameWindow. \par Usage: - Name: SizingEnabled - Format: "[text]". \par Where [Text] is: - "True" to indicate the window will be user re-sizable. - "False" to indicate the window will not be re-sizable by the user. */ class SizingEnabled : public Property { public: SizingEnabled() : Property( "SizingEnabled", "Property to get/set the state of the sizable setting for the FrameWindow. Value is either \"True\" or \"False\".", "True") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the setting for whether the window frame will be displayed. \par Usage: - Name: FrameEnabled - Format: "[text]". \par Where [Text] is: - "True" to indicate the windows frame should be displayed. - "False" to indicate the windows frame should not be displayed. */ class FrameEnabled : public Property { public: FrameEnabled() : Property( "FrameEnabled", "Property to get/set the setting for whether the window frame will be displayed. Value is either \"True\" or \"False\".", "True") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the setting for whether the window title-bar will be enabled (or displayed depending upon choice of final widget type). \par Usage: - Name: TitlebarEnabled - Format: "[text]". \par Where [Text] is: - "True" to indicate the windows title bar should be enabled (and/or visible) - "False" to indicate the windows title bar should be disabled (and/or hidden) */ class TitlebarEnabled : public Property { public: TitlebarEnabled() : Property( "TitlebarEnabled", "Property to get/set the setting for whether the window title-bar will be enabled (or displayed depending upon choice of final widget type). Value is either \"True\" or \"False\".", "") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the setting for whether the window close button will be enabled (or displayed depending upon choice of final widget type). \par Usage: - Name: CloseButtonEnabled - Format: "[text]". \par Where [Text] is: - "True" to indicate the windows close button should be enabled (and/or visible) - "False" to indicate the windows close button should be disabled (and/or hidden) */ class CloseButtonEnabled : public Property { public: CloseButtonEnabled() : Property( "CloseButtonEnabled", "Property to get/set the setting for whether the window close button will be enabled (or displayed depending upon choice of final widget type). Value is either \"True\" or \"False\".", "True") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the setting for whether the user is able to roll-up / shade the window. \par Usage: - Name: RollUpEnabled - Format: "[text]". \par Where [Text] is: - "True" to indicate the user can roll-up / shade the window. - "False" to indicate the user can not roll-up / shade the window. */ class RollUpEnabled : public Property { public: RollUpEnabled() : Property( "RollUpEnabled", "Property to get/set the setting for whether the user is able to roll-up / shade the window. Value is either \"True\" or \"False\".", "True") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the roll-up / shade state of the window. \par Usage: - Name: RollUpState - Format: "[text]". \par Where [Text] is: - "True" to indicate the window is / should be rolled-up. - "False" to indicate the window is not / should not be rolled up */ class RollUpState : public Property { public: RollUpState() : Property( "RollUpState", "Property to get/set the roll-up / shade state of the window. Value is either \"True\" or \"False\".", "False") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the setting for whether the user may drag the window around by its title bar. \par Usage: - Name: DragMovingEnabled - Format: "[text]". \par Where [Text] is: - "True" to indicate the window may be repositioned by the user via dragging. - "False" to indicate the window may not be repositioned by the user. */ class DragMovingEnabled : public Property { public: DragMovingEnabled() : Property( "DragMovingEnabled", "Property to get/set the setting for whether the user may drag the window around by its title bar. Value is either \"True\" or \"False\".", "True") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the setting for the sizing border thickness. \par Usage: - Name: SizingBorderThickness - Format: "[float]". \par Where: - [float] is the size of the invisible sizing border in screen pixels. */ class SizingBorderThickness : public Property { public: SizingBorderThickness() : Property( "SizingBorderThickness", "Property to get/set the setting for the sizing border thickness. Value is a float specifying the border thickness in pixels.", "8.000000") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to access the Font set for the windows title bar. \par Usage: - Name: TitlebarFont - Format: "[text]". \par Where: - [text] is the name of the Font to assign for this windows title bar. The Font specified must already be loaded. */ class TitlebarFont : public Property { public: TitlebarFont() : Property( "TitlebarFont", "Property to get/set the Font set for the windows title bar. Value is the name of the font to use (must be loaded already).", "") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; /*! \brief Property to colour used for rendering the caption text. \par Usage: - Name: CaptionColour - Format: "aarrggbb". \par Where: - aarrggbb is the ARGB colour value to be used. */ class CaptionColour : public Property { public: CaptionColour() : Property( "CaptionColour", "Property to get/set the colour used for rendering the caption text. Value is \"aarrggbb\" (hex).", "FF000000") {} String get(const PropertyReceiver* receiver) const; void set(PropertyReceiver* receiver, const String& value); }; } // End of FrameWindowProperties namespace section } // End of CEGUI namespace section #endif // end of guard _CEGUIFrameWindowProperties_h_