with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGFitToViewBox_Interface is

   procedure Initialize (This : in out ISVGFitToViewBox_Type) is
   begin
      Set_IID (This, IID_ISVGFitToViewBox);
   end Initialize;

   function Pointer (This : ISVGFitToViewBox_Type)
     return Pointer_To_ISVGFitToViewBox
   is
   begin
      return To_Pointer_To_ISVGFitToViewBox (Address (This));
   end Pointer;

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

   function Get_viewBox
     (This : ISVGFitToViewBox_Type)
     return Pointer_To_ISVGAnimatedRect
   is
       RetVal : aliased Pointer_To_ISVGAnimatedRect;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_viewBox
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_viewBox;

   procedure PutRef_preserveAspectRatio
     (This : ISVGFitToViewBox_Type;
      p    : Pointer_To_ISVGAnimatedPreserveAspectRatio)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.PutRef_preserveAspectRatio
         (Pointer (This),
          p));

   end PutRef_preserveAspectRatio;

   function Get_preserveAspectRatio
     (This : ISVGFitToViewBox_Type)
     return Pointer_To_ISVGAnimatedPreserveAspectRatio
   is
       RetVal : aliased Pointer_To_ISVGAnimatedPreserveAspectRatio;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_preserveAspectRatio
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_preserveAspectRatio;

end MSHTML.ISVGFitToViewBox_Interface;

