![]() |
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 | ComponentCount () const |
bool | IsColorSpaceRGB () const |
bool | IsColorSpaceGray () const |
std::optional< FX_COLORREF > | GetColorRef () const |
std::optional< FX_RGB_STRUCT< float > > | GetRGB () const |
RetainPtr< CPDF_Pattern > | GetPattern () const |
Protected Member Functions | |
bool | IsPatternInternal () const |
Protected Attributes | |
absl::variant< absl::monostate, std::vector< float >, std::unique_ptr< PatternValue > > | color_data_ |
RetainPtr< CPDF_ColorSpace > | cs_ |
Definition at line 25 of file cpdf_color.h.
|
default |
CPDF_Color::CPDF_Color | ( | const CPDF_Color & | that | ) |
Definition at line 18 of file cpdf_color.cpp.
References operator=().
|
default |
uint32_t CPDF_Color::ComponentCount | ( | ) | const |
Definition at line 88 of file cpdf_color.cpp.
std::optional< FX_COLORREF > CPDF_Color::GetColorRef | ( | ) | const |
Definition at line 102 of file cpdf_color.cpp.
References FXSYS_BGR(), and FXSYS_roundf().
RetainPtr< CPDF_Pattern > CPDF_Color::GetPattern | ( | ) | const |
Definition at line 131 of file cpdf_color.cpp.
std::optional< FX_RGB_STRUCT< float > > CPDF_Color::GetRGB | ( | ) | const |
Definition at line 115 of file cpdf_color.cpp.
References IsPatternInternal().
bool CPDF_Color::IsColorSpaceGray | ( | ) | const |
Definition at line 97 of file cpdf_color.cpp.
bool CPDF_Color::IsColorSpaceRGB | ( | ) | const |
Definition at line 92 of file cpdf_color.cpp.
bool CPDF_Color::IsNull | ( | ) | const |
Definition at line 24 of file cpdf_color.cpp.
Referenced by CPDF_RenderStatus::CloneObjStates(), CPDF_ColorState::HasFillColor(), and CPDF_ColorState::HasStrokeColor().
bool CPDF_Color::IsPattern | ( | ) | const |
Definition at line 28 of file cpdf_color.cpp.
Referenced by SetValueForPattern().
|
protected |
Definition at line 32 of file cpdf_color.cpp.
Referenced by GetRGB(), SetColorSpace(), and SetValueForNonPattern().
CPDF_Color & CPDF_Color::operator= | ( | const CPDF_Color & | that | ) |
Definition at line 67 of file cpdf_color.cpp.
Referenced by CPDF_Color().
void CPDF_Color::SetColorSpace | ( | RetainPtr< CPDF_ColorSpace > | colorspace | ) |
Definition at line 36 of file cpdf_color.cpp.
References IsPatternInternal().
Referenced by SetValueForPattern().
void CPDF_Color::SetValueForNonPattern | ( | std::vector< float > | values | ) |
Definition at line 45 of file cpdf_color.cpp.
References IsPatternInternal().
void CPDF_Color::SetValueForPattern | ( | RetainPtr< CPDF_Pattern > | pattern, |
pdfium::span< float > | values ) |
Definition at line 51 of file cpdf_color.cpp.
References CPDF_ColorSpace::GetStockCS(), IsPattern(), CPDF_ColorSpace::kPattern, and SetColorSpace().
|
protected |
Definition at line 59 of file cpdf_color.h.
|
protected |
Definition at line 60 of file cpdf_color.h.