Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_color.h>
Public Member Functions | |
CPDF_Color () | |
CPDF_Color (const CPDF_Color &that) | |
~CPDF_Color () | |
CPDF_Color & | operator= (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_Pattern > | GetPattern () const |
Protected Member Functions | |
bool | IsPatternInternal () const |
Protected Attributes | |
std::vector< float > | m_Buffer |
std::unique_ptr< PatternValue > | m_pValue |
RetainPtr< CPDF_ColorSpace > | m_pCS |
Definition at line 22 of file cpdf_color.h.
|
default |
CPDF_Color::CPDF_Color | ( | const CPDF_Color & | that | ) |
Definition at line 16 of file cpdf_color.cpp.
References operator=().
|
default |
uint32_t CPDF_Color::CountComponents | ( | ) | const |
Definition at line 71 of file cpdf_color.cpp.
RetainPtr< CPDF_Pattern > CPDF_Color::GetPattern | ( | ) | const |
Definition at line 103 of file cpdf_color.cpp.
bool CPDF_Color::GetRGB | ( | int * | R, |
int * | G, | ||
int * | B ) const |
Definition at line 80 of file cpdf_color.cpp.
References IsPatternInternal().
bool CPDF_Color::IsColorSpaceRGB | ( | ) | const |
Definition at line 75 of file cpdf_color.cpp.
|
inline |
Definition at line 31 of file cpdf_color.h.
Referenced by CPDF_RenderStatus::CloneObjStates(), CPDF_ColorState::HasFillColor(), and CPDF_ColorState::HasStrokeColor().
bool CPDF_Color::IsPattern | ( | ) | const |
Definition at line 22 of file cpdf_color.cpp.
Referenced by SetValueForPattern().
|
protected |
Definition at line 26 of file cpdf_color.cpp.
Referenced by GetRGB(), and SetColorSpace().
CPDF_Color & CPDF_Color::operator= | ( | const CPDF_Color & | that | ) |
Definition at line 60 of file cpdf_color.cpp.
Referenced by CPDF_Color().
void CPDF_Color::SetColorSpace | ( | RetainPtr< CPDF_ColorSpace > | colorspace | ) |
Definition at line 30 of file cpdf_color.cpp.
References IsPatternInternal().
Referenced by SetValueForPattern().
void CPDF_Color::SetValueForNonPattern | ( | std::vector< float > | values | ) |
Definition at line 41 of file cpdf_color.cpp.
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().
|
protected |
Definition at line 48 of file cpdf_color.h.
|
protected |
Definition at line 50 of file cpdf_color.h.
|
protected |
Definition at line 49 of file cpdf_color.h.