with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGElementInstanceList_Interface is

   procedure Initialize (This : in out ISVGElementInstanceList_Type) is
   begin
      Set_IID (This, IID_ISVGElementInstanceList);
   end Initialize;

   function Pointer (This : ISVGElementInstanceList_Type)
     return Pointer_To_ISVGElementInstanceList
   is
   begin
      return To_Pointer_To_ISVGElementInstanceList (Address (This));
   end Pointer;

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

   function Get_length
     (This : ISVGElementInstanceList_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 item
     (This     : ISVGElementInstanceList_Type;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGElementInstance
   is
       RetVal : aliased Pointer_To_ISVGElementInstance;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.item
         (Pointer (This),
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end item;

end MSHTML.ISVGElementInstanceList_Interface;

