with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGPointList_Interface is

   procedure Initialize (This : in out ISVGPointList_Type) is
   begin
      Set_IID (This, IID_ISVGPointList);
   end Initialize;

   function Pointer (This : ISVGPointList_Type)
     return Pointer_To_ISVGPointList
   is
   begin
      return To_Pointer_To_ISVGPointList (Address (This));
   end Pointer;

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

   procedure Put_numberOfItems
     (This : ISVGPointList_Type;
      p    : Interfaces.C.long)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_numberOfItems
         (Pointer (This),
          p));

   end Put_numberOfItems;

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

      return RetVal;
   end Get_numberOfItems;

   procedure clear
     (This : ISVGPointList_Type)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.clear
         (Pointer (This)));

   end clear;

   function initialize
     (This     : ISVGPointList_Type;
      pNewItem : Pointer_To_ISVGPoint)
     return Pointer_To_ISVGPoint
   is
       RetVal : aliased Pointer_To_ISVGPoint;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.initialize
         (Pointer (This),
          pNewItem,
          RetVal'Unchecked_Access));

      return RetVal;
   end initialize;

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

      return RetVal;
   end getItem;

   function insertItemBefore
     (This     : ISVGPointList_Type;
      pNewItem : Pointer_To_ISVGPoint;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGPoint
   is
       RetVal : aliased Pointer_To_ISVGPoint;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.insertItemBefore
         (Pointer (This),
          pNewItem,
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end insertItemBefore;

   function replaceItem
     (This     : ISVGPointList_Type;
      pNewItem : Pointer_To_ISVGPoint;
      index    : Interfaces.C.long)
     return Pointer_To_ISVGPoint
   is
       RetVal : aliased Pointer_To_ISVGPoint;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.replaceItem
         (Pointer (This),
          pNewItem,
          index,
          RetVal'Unchecked_Access));

      return RetVal;
   end replaceItem;

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

      return RetVal;
   end removeItem;

   function appendItem
     (This     : ISVGPointList_Type;
      pNewItem : Pointer_To_ISVGPoint)
     return Pointer_To_ISVGPoint
   is
       RetVal : aliased Pointer_To_ISVGPoint;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.appendItem
         (Pointer (This),
          pNewItem,
          RetVal'Unchecked_Access));

      return RetVal;
   end appendItem;

end MSHTML.ISVGPointList_Interface;

