with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGPathSegCurvetoCubicRel_Interface is

   procedure Initialize (This : in out ISVGPathSegCurvetoCubicRel_Type) is
   begin
      Set_IID (This, IID_ISVGPathSegCurvetoCubicRel);
   end Initialize;

   function Pointer (This : ISVGPathSegCurvetoCubicRel_Type)
     return Pointer_To_ISVGPathSegCurvetoCubicRel
   is
   begin
      return To_Pointer_To_ISVGPathSegCurvetoCubicRel (Address (This));
   end Pointer;

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

   procedure Put_x
     (This : ISVGPathSegCurvetoCubicRel_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 : ISVGPathSegCurvetoCubicRel_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 : ISVGPathSegCurvetoCubicRel_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 : ISVGPathSegCurvetoCubicRel_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;

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

   end Put_x1;

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

      return RetVal;
   end Get_x1;

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

   end Put_y1;

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

      return RetVal;
   end Get_y1;

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

   end Put_x2;

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

      return RetVal;
   end Get_x2;

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

   end Put_y2;

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

      return RetVal;
   end Get_y2;

end MSHTML.ISVGPathSegCurvetoCubicRel_Interface;

