with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLMSImgElement_Interface is

   procedure Initialize (This : in out IHTMLMSImgElement_Type) is
   begin
      Set_IID (This, IID_IHTMLMSImgElement);
   end Initialize;

   function Pointer (This : IHTMLMSImgElement_Type)
     return Pointer_To_IHTMLMSImgElement
   is
   begin
      return To_Pointer_To_IHTMLMSImgElement (Address (This));
   end Pointer;

   procedure Attach (This    : in out IHTMLMSImgElement_Type;
                     Pointer : in     Pointer_To_IHTMLMSImgElement)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   procedure Put_msPlayToDisabled
     (This : IHTMLMSImgElement_Type;
      p    : GNATCOM.Types.VARIANT_BOOL)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_msPlayToDisabled
         (Pointer (This),
          p));

   end Put_msPlayToDisabled;

   function Get_msPlayToDisabled
     (This : IHTMLMSImgElement_Type)
     return GNATCOM.Types.VARIANT_BOOL
   is
       RetVal : aliased GNATCOM.Types.VARIANT_BOOL;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_msPlayToDisabled
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_msPlayToDisabled;

   procedure Put_msPlayToPrimary
     (This : IHTMLMSImgElement_Type;
      p    : GNATCOM.Types.VARIANT_BOOL)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_msPlayToPrimary
         (Pointer (This),
          p));

   end Put_msPlayToPrimary;

   function Get_msPlayToPrimary
     (This : IHTMLMSImgElement_Type)
     return GNATCOM.Types.VARIANT_BOOL
   is
       RetVal : aliased GNATCOM.Types.VARIANT_BOOL;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_msPlayToPrimary
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_msPlayToPrimary;

end MSHTML.IHTMLMSImgElement_Interface;

