with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGRectElement_Interface is

   procedure Initialize (This : in out ISVGRectElement_Type) is
   begin
      Set_IID (This, IID_ISVGRectElement);
   end Initialize;

   function Pointer (This : ISVGRectElement_Type)
     return Pointer_To_ISVGRectElement
   is
   begin
      return To_Pointer_To_ISVGRectElement (Address (This));
   end Pointer;

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

   procedure PutRef_x
     (This : ISVGRectElement_Type;
      p    : Pointer_To_ISVGAnimatedLength)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_x
         (Pointer (This),
          p));

   end PutRef_x;

   function Get_x
     (This : ISVGRectElement_Type)
     return Pointer_To_ISVGAnimatedLength
   is
       RetVal : aliased Pointer_To_ISVGAnimatedLength;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_x
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_x;

   procedure PutRef_y
     (This : ISVGRectElement_Type;
      p    : Pointer_To_ISVGAnimatedLength)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_y
         (Pointer (This),
          p));

   end PutRef_y;

   function Get_y
     (This : ISVGRectElement_Type)
     return Pointer_To_ISVGAnimatedLength
   is
       RetVal : aliased Pointer_To_ISVGAnimatedLength;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_y
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_y;

   procedure PutRef_width
     (This : ISVGRectElement_Type;
      p    : Pointer_To_ISVGAnimatedLength)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_width
         (Pointer (This),
          p));

   end PutRef_width;

   function Get_width
     (This : ISVGRectElement_Type)
     return Pointer_To_ISVGAnimatedLength
   is
       RetVal : aliased Pointer_To_ISVGAnimatedLength;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_width
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_width;

   procedure PutRef_height
     (This : ISVGRectElement_Type;
      p    : Pointer_To_ISVGAnimatedLength)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_height
         (Pointer (This),
          p));

   end PutRef_height;

   function Get_height
     (This : ISVGRectElement_Type)
     return Pointer_To_ISVGAnimatedLength
   is
       RetVal : aliased Pointer_To_ISVGAnimatedLength;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_height
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_height;

   procedure PutRef_rx
     (This : ISVGRectElement_Type;
      p    : Pointer_To_ISVGAnimatedLength)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_rx
         (Pointer (This),
          p));

   end PutRef_rx;

   function Get_rx
     (This : ISVGRectElement_Type)
     return Pointer_To_ISVGAnimatedLength
   is
       RetVal : aliased Pointer_To_ISVGAnimatedLength;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_rx
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_rx;

   procedure PutRef_ry
     (This : ISVGRectElement_Type;
      p    : Pointer_To_ISVGAnimatedLength)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_ry
         (Pointer (This),
          p));

   end PutRef_ry;

   function Get_ry
     (This : ISVGRectElement_Type)
     return Pointer_To_ISVGAnimatedLength
   is
       RetVal : aliased Pointer_To_ISVGAnimatedLength;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_ry
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_ry;

end MSHTML.ISVGRectElement_Interface;

