with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLImgElement4_Interface is

   procedure Initialize (This : in out IHTMLImgElement4_Type) is
   begin
      Set_IID (This, IID_IHTMLImgElement4);
   end Initialize;

   function Pointer (This : IHTMLImgElement4_Type)
     return Pointer_To_IHTMLImgElement4
   is
   begin
      return To_Pointer_To_IHTMLImgElement4 (Address (This));
   end Pointer;

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

   function Get_naturalWidth
     (This : IHTMLImgElement4_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_naturalWidth
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_naturalWidth;

   function Get_naturalHeight
     (This : IHTMLImgElement4_Type)
     return Interfaces.C.long
   is
       RetVal : aliased Interfaces.C.long;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_naturalHeight
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_naturalHeight;

end MSHTML.IHTMLImgElement4_Interface;

