Home | History | Annotate | Download | only in fxfa
      1 // Copyright 2014 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef XFA_FXFA_CXFA_RENDERCONTEXT_H_
      8 #define XFA_FXFA_CXFA_RENDERCONTEXT_H_
      9 
     10 #include <memory>
     11 
     12 #include "xfa/fxfa/fxfa.h"
     13 
     14 class CXFA_Graphics;
     15 
     16 class CXFA_RenderContext {
     17  public:
     18   CXFA_RenderContext(CXFA_FFPageView* pPageView,
     19                      const CFX_RectF& clipRect,
     20                      const CFX_Matrix& matrix);
     21   ~CXFA_RenderContext();
     22 
     23   void DoRender(CXFA_Graphics* gs);
     24 
     25  private:
     26   std::unique_ptr<IXFA_WidgetIterator> m_pWidgetIterator;
     27   CXFA_FFWidget* m_pWidget;
     28   CFX_Matrix m_matrix;
     29   CFX_RectF m_rtClipRect;
     30 };
     31 
     32 #endif  // XFA_FXFA_CXFA_RENDERCONTEXT_H_
     33