with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGZoomEvent_Interface is

   procedure Initialize (This : in out ISVGZoomEvent_Type) is
   begin
      Set_IID (This, IID_ISVGZoomEvent);
   end Initialize;

   function Pointer (This : ISVGZoomEvent_Type)
     return Pointer_To_ISVGZoomEvent
   is
   begin
      return To_Pointer_To_ISVGZoomEvent (Address (This));
   end Pointer;

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

   function Get_zoomRectScreen
     (This : ISVGZoomEvent_Type)
     return Pointer_To_ISVGRect
   is
       RetVal : aliased Pointer_To_ISVGRect;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_zoomRectScreen
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_zoomRectScreen;

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

      return RetVal;
   end Get_previousScale;

   function Get_previousTranslate
     (This : ISVGZoomEvent_Type)
     return Pointer_To_ISVGPoint
   is
       RetVal : aliased Pointer_To_ISVGPoint;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_previousTranslate
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_previousTranslate;

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

      return RetVal;
   end Get_newScale;

   function Get_newTranslate
     (This : ISVGZoomEvent_Type)
     return Pointer_To_ISVGPoint
   is
       RetVal : aliased Pointer_To_ISVGPoint;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_newTranslate
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_newTranslate;

end MSHTML.ISVGZoomEvent_Interface;

