• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2016 The PDFium Authors
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 #include "xfa/fgas/graphics/cfgas_gecolor.h"
8 
CFGAS_GEColor(const FX_ARGB argb)9 CFGAS_GEColor::CFGAS_GEColor(const FX_ARGB argb)
10     : m_type(Solid), m_argb(argb) {}
11 
CFGAS_GEColor(CFGAS_GEPattern * pattern,const FX_ARGB argb)12 CFGAS_GEColor::CFGAS_GEColor(CFGAS_GEPattern* pattern, const FX_ARGB argb)
13     : m_type(Pattern), m_argb(argb), m_pPattern(pattern) {}
14 
CFGAS_GEColor(CFGAS_GEShading * shading)15 CFGAS_GEColor::CFGAS_GEColor(CFGAS_GEShading* shading)
16     : m_type(Shading), m_pShading(shading) {}
17 
18 CFGAS_GEColor::CFGAS_GEColor(const CFGAS_GEColor& that) = default;
19 
20 CFGAS_GEColor::~CFGAS_GEColor() = default;
21 
22 CFGAS_GEColor& CFGAS_GEColor::operator=(const CFGAS_GEColor& that) = default;
23