with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGMaskElement_Interface is

   procedure Initialize (This : in out ISVGMaskElement_Type) is
   begin
      Set_IID (This, IID_ISVGMaskElement);
   end Initialize;

   function Pointer (This : ISVGMaskElement_Type)
     return Pointer_To_ISVGMaskElement
   is
   begin
      return To_Pointer_To_ISVGMaskElement (Address (This));
   end Pointer;

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

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

   end PutRef_maskUnits;

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

      return RetVal;
   end Get_maskUnits;

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

   end PutRef_maskContentUnits;

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

      return RetVal;
   end Get_maskContentUnits;

   procedure PutRef_x
     (This : ISVGMaskElement_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 : ISVGMaskElement_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 : ISVGMaskElement_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 : ISVGMaskElement_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 : ISVGMaskElement_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 : ISVGMaskElement_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 : ISVGMaskElement_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 : ISVGMaskElement_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.ISVGMaskElement_Interface;

