Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfx_color.h>
Classes | |
struct | TypeAndARGB |
Public Types | |
enum class | Type { kTransparent = 0 , kGray , kRGB , kCMYK } |
Public Member Functions | |
constexpr | CFX_Color (FX_COLORREF ref) |
constexpr | CFX_Color (Type type=CFX_Color::Type::kTransparent, float color1=0.0f, float color2=0.0f, float color3=0.0f, float color4=0.0f) |
constexpr | CFX_Color (int32_t r, int32_t g, int32_t b) |
CFX_Color (const CFX_Color &that)=default | |
CFX_Color & | operator= (const CFX_Color &that)=default |
CFX_Color | operator/ (float fColorDivide) const |
CFX_Color | operator- (float fColorSub) const |
CFX_Color | ConvertColorType (Type nConvertColorType) const |
FX_COLORREF | ToFXColor (int32_t nTransparency) const |
Public Attributes | |
Type | nColorType |
float | fColor1 |
float | fColor2 |
float | fColor3 |
float | fColor4 |
Definition at line 12 of file cfx_color.h.
|
strong |
Enumerator | |
---|---|
kTransparent | |
kGray | |
kRGB | |
kCMYK |
Definition at line 14 of file cfx_color.h.
|
inlineexplicitconstexpr |
Definition at line 24 of file cfx_color.h.
References CFX_Color().
|
inlineconstexpr |
Definition at line 27 of file cfx_color.h.
References fColor1, fColor2, fColor3, fColor4, and nColorType.
Referenced by CJS_Color::CJS_Color(), fpdfdoc::CFXColorFromString(), CJS_Color::ConvertArrayToPWLColor(), CPDF_GenerateAP::GenerateFormAP(), CJS_Field::get_text_color(), CPWL_Wnd::GetBorderLeftTopColor(), CPWL_Wnd::GetBorderRightBottomColor(), CPDF_DefaultAppearance::GetColor(), CFFL_FormField::GetCreateParam(), CPDF_ApSettings::GetOriginalColor(), operator-(), operator/(), CPDFSDK_AppStream::SetAsCheckBox(), CPDFSDK_AppStream::SetAsListBox(), CPDFSDK_AppStream::SetAsPushButton(), CPDFSDK_AppStream::SetAsRadioButton(), and ToFXColor().
|
inlineconstexpr |
Definition at line 38 of file cfx_color.h.
References fColor1, fColor2, fColor3, fColor4, kRGB, and nColorType.
Referenced by CFX_Color().
|
default |
Definition at line 75 of file cfx_color.cpp.
References fColor1, fColor2, fColor3, fColor4, kCMYK, kGray, kRGB, kTransparent, nColorType, and operator=().
CFX_Color CFX_Color::operator- | ( | float | fColorSub | ) | const |
Definition at line 159 of file cfx_color.cpp.
References CFX_Color(), fColor1, fColor2, fColor3, fColor4, kCMYK, kGray, kRGB, kTransparent, and nColorType.
Referenced by CPDFSDK_AppStream::SetAsCheckBox(), CPDFSDK_AppStream::SetAsPushButton(), and CPDFSDK_AppStream::SetAsRadioButton().
CFX_Color CFX_Color::operator/ | ( | float | fColorDivide | ) | const |
Definition at line 180 of file cfx_color.cpp.
References CFX_Color(), fColor1, fColor2, fColor3, fColor4, kCMYK, kGray, kRGB, kTransparent, nColorType, and operator=().
Referenced by CPWL_Wnd::GetBorderRightBottomColor(), CPDFSDK_AppStream::SetAsCheckBox(), CPDFSDK_AppStream::SetAsPushButton(), and CPDFSDK_AppStream::SetAsRadioButton().
Referenced by fpdfdoc::CFXColorFromArray(), ConvertColorType(), CPDF_GenerateAP::GenerateFormAP(), CJS_Field::get_text_color(), CFFL_FormField::GetCreateParam(), operator/(), CPDFSDK_AppStream::SetAsCheckBox(), CPDFSDK_AppStream::SetAsPushButton(), CPDFSDK_AppStream::SetAsRadioButton(), and ToFXColor().
FX_COLORREF CFX_Color::ToFXColor | ( | int32_t | nTransparency | ) | const |
Definition at line 131 of file cfx_color.cpp.
References CFX_Color(), ArgbEncode(), fColor1, fColor2, fColor3, fColor4, kCMYK, kGray, kRGB, kTransparent, nColorType, and operator=().
Referenced by CFX_RenderDevice::DrawBorder(), CFX_RenderDevice::DrawFillRect(), and CPWL_CBButton::DrawThisAppearance().
float CFX_Color::fColor1 |
Definition at line 55 of file cfx_color.h.
Referenced by CFX_Color(), CFX_Color(), ConvertColorType(), FPDFAnnot_GetColor(), CPDF_DefaultAppearance::GetColorARGB(), operator-(), operator/(), operator==(), and ToFXColor().
float CFX_Color::fColor2 |
Definition at line 56 of file cfx_color.h.
Referenced by CFX_Color(), CFX_Color(), ConvertColorType(), FPDFAnnot_GetColor(), CPDF_DefaultAppearance::GetColorARGB(), operator-(), operator/(), operator==(), and ToFXColor().
float CFX_Color::fColor3 |
Definition at line 57 of file cfx_color.h.
Referenced by CFX_Color(), CFX_Color(), ConvertColorType(), FPDFAnnot_GetColor(), CPDF_DefaultAppearance::GetColorARGB(), operator-(), operator/(), operator==(), and ToFXColor().
float CFX_Color::fColor4 |
Definition at line 58 of file cfx_color.h.
Referenced by CFX_Color(), CFX_Color(), ConvertColorType(), FPDFAnnot_GetColor(), CPDF_DefaultAppearance::GetColorARGB(), operator-(), operator/(), operator==(), and ToFXColor().
Type CFX_Color::nColorType |
Definition at line 54 of file cfx_color.h.
Referenced by CFX_Color(), CFX_Color(), ConvertColorType(), CJS_Color::ConvertPWLColorToArray(), FPDFAnnot_GetColor(), CPDF_DefaultAppearance::GetColorARGB(), operator-(), operator/(), operator==(), and ToFXColor().