with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGPatternElement_Interface is

   procedure Initialize (This : in out ISVGPatternElement_Type) is
   begin
      Set_IID (This, IID_ISVGPatternElement);
   end Initialize;

   function Pointer (This : ISVGPatternElement_Type)
     return Pointer_To_ISVGPatternElement
   is
   begin
      return To_Pointer_To_ISVGPatternElement (Address (This));
   end Pointer;

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

   procedure PutRef_patternUnits
     (This : ISVGPatternElement_Type;
      p    : Pointer_To_ISVGAnimatedEnumeration)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_patternUnits
         (Pointer (This),
          p));

   end PutRef_patternUnits;

   function Get_patternUnits
     (This : ISVGPatternElement_Type)
     return Pointer_To_ISVGAnimatedEnumeration
   is
       RetVal : aliased Pointer_To_ISVGAnimatedEnumeration;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_patternUnits
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_patternUnits;

   procedure PutRef_patternContentUnits
     (This : ISVGPatternElement_Type;
      p    : Pointer_To_ISVGAnimatedEnumeration)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_patternContentUnits
         (Pointer (This),
          p));

   end PutRef_patternContentUnits;

   function Get_patternContentUnits
     (This : ISVGPatternElement_Type)
     return Pointer_To_ISVGAnimatedEnumeration
   is
       RetVal : aliased Pointer_To_ISVGAnimatedEnumeration;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_patternContentUnits
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_patternContentUnits;

   procedure PutRef_patternTransform
     (This : ISVGPatternElement_Type;
      p    : Pointer_To_ISVGAnimatedTransformList)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_patternTransform
         (Pointer (This),
          p));

   end PutRef_patternTransform;

   function Get_patternTransform
     (This : ISVGPatternElement_Type)
     return Pointer_To_ISVGAnimatedTransformList
   is
       RetVal : aliased Pointer_To_ISVGAnimatedTransformList;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_patternTransform
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_patternTransform;

   procedure PutRef_x
     (This : ISVGPatternElement_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 : ISVGPatternElement_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 : ISVGPatternElement_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 : ISVGPatternElement_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 : ISVGPatternElement_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 : ISVGPatternElement_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 : ISVGPatternElement_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 : ISVGPatternElement_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;

end MSHTML.ISVGPatternElement_Interface;

