with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGUseElement_Interface is

   procedure Initialize (This : in out ISVGUseElement_Type) is
   begin
      Set_IID (This, IID_ISVGUseElement);
   end Initialize;

   function Pointer (This : ISVGUseElement_Type)
     return Pointer_To_ISVGUseElement
   is
   begin
      return To_Pointer_To_ISVGUseElement (Address (This));
   end Pointer;

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

   procedure PutRef_x
     (This : ISVGUseElement_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 : ISVGUseElement_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 : ISVGUseElement_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 : ISVGUseElement_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 : ISVGUseElement_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 : ISVGUseElement_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 : ISVGUseElement_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 : ISVGUseElement_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_instanceRoot
     (This : ISVGUseElement_Type;
      p    : Pointer_To_ISVGElementInstance)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_instanceRoot
         (Pointer (This),
          p));

   end PutRef_instanceRoot;

   function Get_instanceRoot
     (This : ISVGUseElement_Type)
     return Pointer_To_ISVGElementInstance
   is
       RetVal : aliased Pointer_To_ISVGElementInstance;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_instanceRoot
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_instanceRoot;

   procedure PutRef_animatedInstanceRoot
     (This : ISVGUseElement_Type;
      p    : Pointer_To_ISVGElementInstance)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_animatedInstanceRoot
         (Pointer (This),
          p));

   end PutRef_animatedInstanceRoot;

   function Get_animatedInstanceRoot
     (This : ISVGUseElement_Type)
     return Pointer_To_ISVGElementInstance
   is
       RetVal : aliased Pointer_To_ISVGElementInstance;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_animatedInstanceRoot
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_animatedInstanceRoot;

end MSHTML.ISVGUseElement_Interface;

