with GNATCOM.Dispinterface;

package MSHTML.IDOMEvent_Interface is

   type IDOMEvent_Type is
     new GNATCOM.Dispinterface.Dispinterface_Type with null record;

   procedure Initialize (This : in out IDOMEvent_Type);

   function Pointer (This : IDOMEvent_Type)
     return Pointer_To_IDOMEvent;

   procedure Attach (This    : in out IDOMEvent_Type;
                     Pointer : in     Pointer_To_IDOMEvent);

   function Get_bubbles
     (This : IDOMEvent_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function Get_cancelable
     (This : IDOMEvent_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function Get_currentTarget
     (This : IDOMEvent_Type)
     return Pointer_To_IEventTarget;

   function Get_defaultPrevented
     (This : IDOMEvent_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function Get_eventPhase
     (This : IDOMEvent_Type)
     return Interfaces.C.unsigned_short;

   function Get_target
     (This : IDOMEvent_Type)
     return Pointer_To_IEventTarget;

   function Get_timeStamp
     (This : IDOMEvent_Type)
     return GNATCOM.Types.DWORDLONG;

   function Get_type
     (This : IDOMEvent_Type)
     return GNATCOM.Types.BSTR;

   procedure initEvent
     (This       : IDOMEvent_Type;
      eventType  : GNATCOM.Types.BSTR;
      canBubble  : GNATCOM.Types.VARIANT_BOOL;
      cancelable : GNATCOM.Types.VARIANT_BOOL;
      Free       : Boolean := True);

   procedure preventDefault
     (This : IDOMEvent_Type);

   procedure stopPropagation
     (This : IDOMEvent_Type);

   procedure stopImmediatePropagation
     (This : IDOMEvent_Type);

   function Get_isTrusted
     (This : IDOMEvent_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   procedure Put_cancelBubble
     (This : IDOMEvent_Type;
      p    : GNATCOM.Types.VARIANT_BOOL);

   function Get_cancelBubble
     (This : IDOMEvent_Type)
     return GNATCOM.Types.VARIANT_BOOL;

   function Get_srcElement
     (This : IDOMEvent_Type)
     return Pointer_To_IHTMLElement;

end MSHTML.IDOMEvent_Interface;

