with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGPathSegLinetoRel_Interface is

   procedure Initialize (This : in out ISVGPathSegLinetoRel_Type) is
   begin
      Set_IID (This, IID_ISVGPathSegLinetoRel);
   end Initialize;

   function Pointer (This : ISVGPathSegLinetoRel_Type)
     return Pointer_To_ISVGPathSegLinetoRel
   is
   begin
      return To_Pointer_To_ISVGPathSegLinetoRel (Address (This));
   end Pointer;

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

   procedure Put_x
     (This : ISVGPathSegLinetoRel_Type;
      p    : Interfaces.C.C_float)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_x
         (Pointer (This),
          p));

   end Put_x;

   function Get_x
     (This : ISVGPathSegLinetoRel_Type)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_x
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_x;

   procedure Put_y
     (This : ISVGPathSegLinetoRel_Type;
      p    : Interfaces.C.C_float)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_y
         (Pointer (This),
          p));

   end Put_y;

   function Get_y
     (This : ISVGPathSegLinetoRel_Type)
     return Interfaces.C.C_float
   is
       RetVal : aliased Interfaces.C.C_float;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_y
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_y;

end MSHTML.ISVGPathSegLinetoRel_Interface;

