/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IMouseEventHandler
 *   Mouse actions events handler
 *--------------------------------------------------------------------------
 * @created: Sunday, October 13, 2002 21:39:55
 */

#if !defined(IMouseEventHandler_h_included)
#define IMouseEventHandler_h_included
//forward declaration of this class might require
namespace core
{ namespace events
  { class IMouseEventHandler; class CMouseEventHandlerCol; }; };
#include <zmodeler.h>
#include <core/events/eventsTypes.h>
#include <core/events/IEventHandler.h>


namespace core
{
  namespace events
  {
    
    class IMouseEventHandler : public core::events::IEventHandler
    {
    public:
      virtual ZRESULT onLButtonDown(DWORD nFlags, ZPoint& loc, DWORD& nRetFlags)=0;
      virtual ZRESULT onLButtonUp(DWORD nFlags, ZPoint& loc, DWORD& nRetFlags)=0;
      virtual ZRESULT onMouseMove(DWORD nFlags, ZPoint& loc, ZPoint& offset, DWORD& nRetFlags)=0;
      virtual ZRESULT onMButtonDown(DWORD nFlags, ZPoint& loc, DWORD& nRetFlags)=0;
      virtual ZRESULT onMButtonUp(DWORD nFlags, ZPoint& loc, DWORD& nRetFlags)=0;
      virtual ZRESULT onRButtonDown(DWORD nFlags, ZPoint& loc, DWORD& nRetFlags)=0;
      virtual ZRESULT onRButtonUp(DWORD nFlags, ZPoint& loc, DWORD& nRetFlags)=0;
      virtual ZRESULT onMouseWheel(DWORD nFlags, ZPoint& loc, short zDelta, DWORD& nRetFlags)=0;
    
    };//class IMouseEventHandler
    
    //
    // collection template
    //
    class CMouseEventHandlerCol : public ZUnknown,
        public ZIntrCollection<IMouseEventHandler>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CMouseEventHandlerCol)
    };//class CMouseEventHandlerCol
  };//events
};//core

#endif
