with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.IHTMLTimeRanges_Interface is

   procedure Initialize (This : in out IHTMLTimeRanges_Type) is
   begin
      Set_IID (This, IID_IHTMLTimeRanges);
   end Initialize;

   function Pointer (This : IHTMLTimeRanges_Type)
     return Pointer_To_IHTMLTimeRanges
   is
   begin
      return To_Pointer_To_IHTMLTimeRanges (Address (This));
   end Pointer;

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

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

      return RetVal;
   end Get_length;

   function start
     (This      : IHTMLTimeRanges_Type;
      index     : Interfaces.C.long)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.start
         (Pointer (This),
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end start;

   function uend
     (This    : IHTMLTimeRanges_Type;
      index   : Interfaces.C.long)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.uend
         (Pointer (This),
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end uend;

end MSHTML.IHTMLTimeRanges_Interface;

