/***********************************************************************
    created:    Sat Jan 14 2006
    author:     Tomas Lindquist Olsen <tomas@famolsen.dk>
*************************************************************************/
/***************************************************************************
 *   Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
 *
 *   Permission is hereby granted, free of charge, to any person obtaining
 *   a copy of this software and associated documentation files (the
 *   "Software"), to deal in the Software without restriction, including
 *   without limitation the rights to use, copy, modify, merge, publish,
 *   distribute, sublicense, and/or sell copies of the Software, and to
 *   permit persons to whom the Software is furnished to do so, subject to
 *   the following conditions:
 *
 *   The above copyright notice and this permission notice shall be
 *   included in all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *   OTHER DEALINGS IN THE SOFTWARE.
 ***************************************************************************/
#ifndef _FalToggleButton_h_
#define _FalToggleButton_h_

#include "CEGUI/WindowRendererSets/Core/Module.h"
#include "CEGUI/WindowRendererSets/Core/Button.h"

// Start of CEGUI namespace section
namespace CEGUI
{
    /*!
    \brief
        ToggleButton class for the FalagardBase module.

        This class requires LookNFeel to be assigned.  The LookNFeel should provide the following:

        States (missing states will default to 'Normal' or 'SelectedNormal' if selected)
            - Normal            - Rendering for when the togglebutton is neither pushed or has the cursor hovering over it.
            - Hover             - Rendering for when the togglebutton has the cursor hovering over it.
            - Focused           - Rendering for when the togglebutton is focused.
            - Pushed            - Rendering for when the togglebutton is not selected, is pushed and has the cursor over it.
            - PushedOff         - Rendering for when the togglebutton is not selected, is pushed and the cursor is not over it.
            - Disabled          - Rendering for when the togglebutton is not selected and is disabled.
            - SelectedNormal    - Rendering for when the togglebutton is selected and is neither pushed or has the cursor hovering over it.
            - SelectedHover     - Rendering for then the togglebutton is selected and has the cursor hovering over it.
            - SelectedFocused   - Rendering for then the togglebutton is selected and it is focused.
            - SelectedPushed    - Rendering for when the togglebutton is selected, is pushed and has the cursor over it.
            - SelectedPushedOff - Rendering for when the togglebutton is selected, is pushed and the cursor is not over it.
            - SelectedDisabled  - Rendering for when the togglebutton is selected and is disabled.
    */
    class COREWRSET_API FalagardToggleButton : public FalagardButton
    {
    public:
        static const String TypeName;       //!< type name for this widget.

        /*!
        \brief
            Constructor
        */
        FalagardToggleButton(const String& type);

    protected:
        String actualStateName(const String& s) const override;
    };

} // End of  CEGUI namespace section


#endif  // end of guard _FalToggleButton_h_
