Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CPDF_Color Class Reference

#include <cpdf_color.h>

+ Collaboration diagram for CPDF_Color:

Public Member Functions

 CPDF_Color ()
 
 CPDF_Color (const CPDF_Color &that)
 
 ~CPDF_Color ()
 
CPDF_Coloroperator= (const CPDF_Color &that)
 
bool IsNull () const
 
bool IsPattern () const
 
void SetColorSpace (RetainPtr< CPDF_ColorSpace > colorspace)
 
void SetValueForNonPattern (std::vector< float > values)
 
void SetValueForPattern (RetainPtr< CPDF_Pattern > pattern, pdfium::span< float > values)
 
uint32_t CountComponents () const
 
bool IsColorSpaceRGB () const
 
bool GetRGB (int *R, int *G, int *B) const
 
RetainPtr< CPDF_PatternGetPattern () const
 

Protected Member Functions

bool IsPatternInternal () const
 

Protected Attributes

std::vector< float > m_Buffer
 
std::unique_ptr< PatternValuem_pValue
 
RetainPtr< CPDF_ColorSpacem_pCS
 

Detailed Description

Definition at line 22 of file cpdf_color.h.

Constructor & Destructor Documentation

◆ CPDF_Color() [1/2]

CPDF_Color::CPDF_Color ( )
default

◆ CPDF_Color() [2/2]

CPDF_Color::CPDF_Color ( const CPDF_Color & that)

Definition at line 16 of file cpdf_color.cpp.

References operator=().

+ Here is the call graph for this function:

◆ ~CPDF_Color()

CPDF_Color::~CPDF_Color ( )
default

Member Function Documentation

◆ CountComponents()

uint32_t CPDF_Color::CountComponents ( ) const

Definition at line 71 of file cpdf_color.cpp.

◆ GetPattern()

RetainPtr< CPDF_Pattern > CPDF_Color::GetPattern ( ) const

Definition at line 103 of file cpdf_color.cpp.

◆ GetRGB()

bool CPDF_Color::GetRGB ( int * R,
int * G,
int * B ) const

Definition at line 80 of file cpdf_color.cpp.

References IsPatternInternal().

+ Here is the call graph for this function:

◆ IsColorSpaceRGB()

bool CPDF_Color::IsColorSpaceRGB ( ) const

Definition at line 75 of file cpdf_color.cpp.

◆ IsNull()

bool CPDF_Color::IsNull ( ) const
inline

Definition at line 31 of file cpdf_color.h.

Referenced by CPDF_RenderStatus::CloneObjStates(), CPDF_ColorState::HasFillColor(), and CPDF_ColorState::HasStrokeColor().

+ Here is the caller graph for this function:

◆ IsPattern()

bool CPDF_Color::IsPattern ( ) const

Definition at line 22 of file cpdf_color.cpp.

Referenced by SetValueForPattern().

+ Here is the caller graph for this function:

◆ IsPatternInternal()

bool CPDF_Color::IsPatternInternal ( ) const
protected

Definition at line 26 of file cpdf_color.cpp.

Referenced by GetRGB(), and SetColorSpace().

+ Here is the caller graph for this function:

◆ operator=()

CPDF_Color & CPDF_Color::operator= ( const CPDF_Color & that)

Definition at line 60 of file cpdf_color.cpp.

Referenced by CPDF_Color().

+ Here is the caller graph for this function:

◆ SetColorSpace()

void CPDF_Color::SetColorSpace ( RetainPtr< CPDF_ColorSpace > colorspace)

Definition at line 30 of file cpdf_color.cpp.

References IsPatternInternal().

Referenced by SetValueForPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetValueForNonPattern()

void CPDF_Color::SetValueForNonPattern ( std::vector< float > values)

Definition at line 41 of file cpdf_color.cpp.

◆ SetValueForPattern()

void CPDF_Color::SetValueForPattern ( RetainPtr< CPDF_Pattern > pattern,
pdfium::span< float > values )

Definition at line 47 of file cpdf_color.cpp.

References CPDF_ColorSpace::GetStockCS(), IsPattern(), CPDF_ColorSpace::kPattern, and SetColorSpace().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_Buffer

std::vector<float> CPDF_Color::m_Buffer
protected

Definition at line 48 of file cpdf_color.h.

◆ m_pCS

RetainPtr<CPDF_ColorSpace> CPDF_Color::m_pCS
protected

Definition at line 50 of file cpdf_color.h.

◆ m_pValue

std::unique_ptr<PatternValue> CPDF_Color::m_pValue
protected

Definition at line 49 of file cpdf_color.h.


The documentation for this class was generated from the following files: