with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGAnimatedNumber_Interface is

   procedure Initialize (This : in out ISVGAnimatedNumber_Type) is
   begin
      Set_IID (This, IID_ISVGAnimatedNumber);
   end Initialize;

   function Pointer (This : ISVGAnimatedNumber_Type)
     return Pointer_To_ISVGAnimatedNumber
   is
   begin
      return To_Pointer_To_ISVGAnimatedNumber (Address (This));
   end Pointer;

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

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

   end Put_baseVal;

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

      return RetVal;
   end Get_baseVal;

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

   end Put_animVal;

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

      return RetVal;
   end Get_animVal;

end MSHTML.ISVGAnimatedNumber_Interface;

