with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGPathSeg_Interface is

   procedure Initialize (This : in out ISVGPathSeg_Type) is
   begin
      Set_IID (This, IID_ISVGPathSeg);
   end Initialize;

   function Pointer (This : ISVGPathSeg_Type)
     return Pointer_To_ISVGPathSeg
   is
   begin
      return To_Pointer_To_ISVGPathSeg (Address (This));
   end Pointer;

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

   procedure Put_pathSegType
     (This : ISVGPathSeg_Type;
      p    : Interfaces.C.short)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_pathSegType
         (Pointer (This),
          p));

   end Put_pathSegType;

   function Get_pathSegType
     (This : ISVGPathSeg_Type)
     return Interfaces.C.short
   is
       RetVal : aliased Interfaces.C.short;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_pathSegType
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_pathSegType;

   function Get_pathSegTypeAsLetter
     (This : ISVGPathSeg_Type)
     return GNATCOM.Types.BSTR
   is
       RetVal : aliased GNATCOM.Types.BSTR;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_pathSegTypeAsLetter
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_pathSegTypeAsLetter;

end MSHTML.ISVGPathSeg_Interface;

