/***************************************************************************
 *                          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 IHitTestEventHandler
 *--------------------------------------------------------------------------
 * @created: Sunday, January 19, 2003 21:16:33
 */

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


namespace core
{
  namespace events
  {
    
    class IHitTestEventHandler : public core::events::IEventHandler
    {
    public:
      virtual ZRESULT onHitTest(ZPoint& pt, DWORD nFlags, long& nHitCode, DWORD& nRetFlags)=0;
      virtual ZRESULT onButton(ZPoint& pt, DWORD nPress, DWORD nRelease, DWORD& nRetFlags)=0;
    
    };//class IHitTestEventHandler
    
    //
    // collection template
    //
    class CHitTestEventHandlerCol : public ZUnknown,
        public ZIntrCollection<IHitTestEventHandler>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CHitTestEventHandlerCol)
    };//class CHitTestEventHandlerCol
  };//events
};//core

#endif
