1 // Copyright 2016 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 CORE_FPDFAPI_PAGE_CPDF_GRAPHICSTATES_H_ 8 #define CORE_FPDFAPI_PAGE_CPDF_GRAPHICSTATES_H_ 9 10 #include "core/fpdfapi/page/cpdf_clippath.h" 11 #include "core/fpdfapi/page/cpdf_colorstate.h" 12 #include "core/fpdfapi/page/cpdf_generalstate.h" 13 #include "core/fpdfapi/page/cpdf_textstate.h" 14 #include "core/fxge/cfx_graphstate.h" 15 16 class CPDF_GraphicStates { 17 public: 18 CPDF_GraphicStates(); 19 virtual ~CPDF_GraphicStates(); 20 21 void CopyStates(const CPDF_GraphicStates& src); 22 void DefaultStates(); 23 24 CPDF_ClipPath m_ClipPath; 25 CFX_GraphState m_GraphState; 26 CPDF_ColorState m_ColorState; 27 CPDF_TextState m_TextState; 28 CPDF_GeneralState m_GeneralState; 29 }; 30 31 #endif // CORE_FPDFAPI_PAGE_CPDF_GRAPHICSTATES_H_ 32