#include "core/fpdfapi/page/cpdf_generalstate.h"
#include <utility>
#include "core/fpdfapi/page/cpdf_transferfunc.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_object.h"
namespace {
int RI_StringToId(const ByteString& ri) { … }
BlendMode GetBlendTypeInternal(const ByteString& mode) { … }
}
CPDF_GeneralState::CPDF_GeneralState() = default;
CPDF_GeneralState::CPDF_GeneralState(const CPDF_GeneralState& that) = default;
CPDF_GeneralState::~CPDF_GeneralState() = default;
void CPDF_GeneralState::SetRenderIntent(const ByteString& ri) { … }
ByteString CPDF_GeneralState::GetBlendMode() const { … }
BlendMode CPDF_GeneralState::GetBlendType() const { … }
void CPDF_GeneralState::SetBlendType(BlendMode type) { … }
float CPDF_GeneralState::GetFillAlpha() const { … }
void CPDF_GeneralState::SetFillAlpha(float alpha) { … }
float CPDF_GeneralState::GetStrokeAlpha() const { … }
void CPDF_GeneralState::SetStrokeAlpha(float alpha) { … }
RetainPtr<const CPDF_Dictionary> CPDF_GeneralState::GetSoftMask() const { … }
RetainPtr<CPDF_Dictionary> CPDF_GeneralState::GetMutableSoftMask() { … }
void CPDF_GeneralState::SetSoftMask(RetainPtr<CPDF_Dictionary> pDict) { … }
RetainPtr<const CPDF_Object> CPDF_GeneralState::GetTR() const { … }
void CPDF_GeneralState::SetTR(RetainPtr<const CPDF_Object> pObject) { … }
RetainPtr<CPDF_TransferFunc> CPDF_GeneralState::GetTransferFunc() const { … }
void CPDF_GeneralState::SetTransferFunc(RetainPtr<CPDF_TransferFunc> pFunc) { … }
void CPDF_GeneralState::SetBlendMode(const ByteString& mode) { … }
const CFX_Matrix* CPDF_GeneralState::GetSMaskMatrix() const { … }
void CPDF_GeneralState::SetSMaskMatrix(const CFX_Matrix& matrix) { … }
bool CPDF_GeneralState::GetFillOP() const { … }
void CPDF_GeneralState::SetFillOP(bool op) { … }
void CPDF_GeneralState::SetStrokeOP(bool op) { … }
bool CPDF_GeneralState::GetStrokeOP() const { … }
int CPDF_GeneralState::GetOPMode() const { … }
void CPDF_GeneralState::SetOPMode(int mode) { … }
void CPDF_GeneralState::SetBG(RetainPtr<const CPDF_Object> pObject) { … }
void CPDF_GeneralState::SetUCR(RetainPtr<const CPDF_Object> pObject) { … }
void CPDF_GeneralState::SetHT(RetainPtr<const CPDF_Object> pObject) { … }
void CPDF_GeneralState::SetFlatness(float flatness) { … }
void CPDF_GeneralState::SetSmoothness(float smoothness) { … }
bool CPDF_GeneralState::GetStrokeAdjust() const { … }
void CPDF_GeneralState::SetStrokeAdjust(bool adjust) { … }
void CPDF_GeneralState::SetAlphaSource(bool source) { … }
void CPDF_GeneralState::SetTextKnockout(bool knockout) { … }
void CPDF_GeneralState::SetGraphicsResourceNames(
std::vector<ByteString> names) { … }
void CPDF_GeneralState::AppendGraphicsResourceName(ByteString name) { … }
pdfium::span<const ByteString> CPDF_GeneralState::GetGraphicsResourceNames()
const { … }
CPDF_GeneralState::StateData::StateData() = default;
CPDF_GeneralState::StateData::StateData(const StateData& that)
: … { … }
CPDF_GeneralState::StateData::~StateData() = default;
RetainPtr<CPDF_GeneralState::StateData> CPDF_GeneralState::StateData::Clone()
const { … }