| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_FXGE_INCLUDE_FX_GE_H_ | 7 #ifndef CORE_FXGE_INCLUDE_FX_GE_H_ |
| 8 #define CORE_FXGE_INCLUDE_FX_GE_H_ | 8 #define CORE_FXGE_INCLUDE_FX_GE_H_ |
| 9 | 9 |
| 10 #include "core/fxge/include/fx_dib.h" | 10 #include "core/fxge/include/fx_dib.h" |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 public: | 245 public: |
| 246 CFX_RenderDevice(); | 246 CFX_RenderDevice(); |
| 247 virtual ~CFX_RenderDevice(); | 247 virtual ~CFX_RenderDevice(); |
| 248 | 248 |
| 249 void SetDeviceDriver(IFX_RenderDeviceDriver* pDriver); | 249 void SetDeviceDriver(IFX_RenderDeviceDriver* pDriver); |
| 250 IFX_RenderDeviceDriver* GetDeviceDriver() const { return m_pDeviceDriver; } | 250 IFX_RenderDeviceDriver* GetDeviceDriver() const { return m_pDeviceDriver; } |
| 251 | 251 |
| 252 FX_BOOL StartRendering(); | 252 FX_BOOL StartRendering(); |
| 253 void EndRendering(); | 253 void EndRendering(); |
| 254 void SaveState(); | 254 void SaveState(); |
| 255 void RestoreState(FX_BOOL bKeepSaved = FALSE); | 255 void RestoreState(bool bKeepSaved); |
| 256 | 256 |
| 257 int GetWidth() const { return m_Width; } | 257 int GetWidth() const { return m_Width; } |
| 258 int GetHeight() const { return m_Height; } | 258 int GetHeight() const { return m_Height; } |
| 259 int GetDeviceClass() const { return m_DeviceClass; } | 259 int GetDeviceClass() const { return m_DeviceClass; } |
| 260 int GetBPP() const { return m_bpp; } | 260 int GetBPP() const { return m_bpp; } |
| 261 int GetRenderCaps() const { return m_RenderCaps; } | 261 int GetRenderCaps() const { return m_RenderCaps; } |
| 262 int GetDeviceCaps(int id) const; | 262 int GetDeviceCaps(int id) const; |
| 263 CFX_Matrix GetCTM() const; | 263 CFX_Matrix GetCTM() const; |
| 264 | 264 |
| 265 CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } | 265 CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 virtual CFX_Matrix GetCTM() const { return CFX_Matrix(); } | 460 virtual CFX_Matrix GetCTM() const { return CFX_Matrix(); } |
| 461 | 461 |
| 462 virtual FX_BOOL IsPSPrintDriver() { return FALSE; } | 462 virtual FX_BOOL IsPSPrintDriver() { return FALSE; } |
| 463 | 463 |
| 464 virtual FX_BOOL StartRendering() { return TRUE; } | 464 virtual FX_BOOL StartRendering() { return TRUE; } |
| 465 | 465 |
| 466 virtual void EndRendering() {} | 466 virtual void EndRendering() {} |
| 467 | 467 |
| 468 virtual void SaveState() = 0; | 468 virtual void SaveState() = 0; |
| 469 | 469 |
| 470 virtual void RestoreState(FX_BOOL bKeepSaved = FALSE) = 0; | 470 virtual void RestoreState(bool bKeepSaved) = 0; |
| 471 | 471 |
| 472 virtual FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, | 472 virtual FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, |
| 473 const CFX_Matrix* pObject2Device, | 473 const CFX_Matrix* pObject2Device, |
| 474 int fill_mode) = 0; | 474 int fill_mode) = 0; |
| 475 | 475 |
| 476 virtual FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, | 476 virtual FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, |
| 477 const CFX_Matrix* pObject2Device, | 477 const CFX_Matrix* pObject2Device, |
| 478 const CFX_GraphStateData* pGraphState) { | 478 const CFX_GraphStateData* pGraphState) { |
| 479 return FALSE; | 479 return FALSE; |
| 480 } | 480 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 void Init(IFX_PSOutput* pOutput, | 608 void Init(IFX_PSOutput* pOutput, |
| 609 int ps_level, | 609 int ps_level, |
| 610 int width, | 610 int width, |
| 611 int height, | 611 int height, |
| 612 FX_BOOL bCmykOutput); | 612 FX_BOOL bCmykOutput); |
| 613 FX_BOOL StartRendering(); | 613 FX_BOOL StartRendering(); |
| 614 void EndRendering(); | 614 void EndRendering(); |
| 615 | 615 |
| 616 void SaveState(); | 616 void SaveState(); |
| 617 | 617 |
| 618 void RestoreState(FX_BOOL bKeepSaved = FALSE); | 618 void RestoreState(bool bKeepSaved); |
| 619 | 619 |
| 620 void SetClip_PathFill(const CFX_PathData* pPathData, | 620 void SetClip_PathFill(const CFX_PathData* pPathData, |
| 621 const CFX_Matrix* pObject2Device, | 621 const CFX_Matrix* pObject2Device, |
| 622 int fill_mode); | 622 int fill_mode); |
| 623 | 623 |
| 624 void SetClip_PathStroke(const CFX_PathData* pPathData, | 624 void SetClip_PathStroke(const CFX_PathData* pPathData, |
| 625 const CFX_Matrix* pObject2Device, | 625 const CFX_Matrix* pObject2Device, |
| 626 const CFX_GraphStateData* pGraphState); | 626 const CFX_GraphStateData* pGraphState); |
| 627 | 627 |
| 628 FX_RECT GetClipBox() { return m_ClipBox; } | 628 FX_RECT GetClipBox() { return m_ClipBox; } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, | 702 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, |
| 703 CFX_Font* pFont, | 703 CFX_Font* pFont, |
| 704 const FXTEXT_CHARPOS& charpos, | 704 const FXTEXT_CHARPOS& charpos, |
| 705 int& ps_fontnum, | 705 int& ps_fontnum, |
| 706 int& ps_glyphindex); | 706 int& ps_glyphindex); |
| 707 | 707 |
| 708 void WritePSBinary(const uint8_t* data, int len); | 708 void WritePSBinary(const uint8_t* data, int len); |
| 709 }; | 709 }; |
| 710 | 710 |
| 711 #endif // CORE_FXGE_INCLUDE_FX_GE_H_ | 711 #endif // CORE_FXGE_INCLUDE_FX_GE_H_ |
| OLD | NEW |