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
CFX_Color Struct Reference

#include <cfx_color.h>

+ Collaboration diagram for CFX_Color:

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_Coloroperator= (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
 

Detailed Description

Definition at line 12 of file cfx_color.h.

Member Enumeration Documentation

◆ Type

enum class CFX_Color::Type
strong
Enumerator
kTransparent 
kGray 
kRGB 
kCMYK 

Definition at line 14 of file cfx_color.h.

Constructor & Destructor Documentation

◆ CFX_Color() [1/4]

CFX_Color::CFX_Color ( FX_COLORREF ref)
inlineexplicitconstexpr

Definition at line 24 of file cfx_color.h.

References CFX_Color().

+ Here is the call graph for this function:

◆ CFX_Color() [2/4]

CFX_Color::CFX_Color ( Type type = CFX_Color::Type::kTransparent,
float color1 = 0.0f,
float color2 = 0.0f,
float color3 = 0.0f,
float color4 = 0.0f )
inlineconstexpr

◆ CFX_Color() [3/4]

CFX_Color::CFX_Color ( int32_t r,
int32_t g,
int32_t b )
inlineconstexpr

Definition at line 38 of file cfx_color.h.

References fColor1, fColor2, fColor3, fColor4, kRGB, and nColorType.

Referenced by CFX_Color().

+ Here is the caller graph for this function:

◆ CFX_Color() [4/4]

CFX_Color::CFX_Color ( const CFX_Color & that)
default

Member Function Documentation

◆ ConvertColorType()

CFX_Color CFX_Color::ConvertColorType ( Type nConvertColorType) const

Definition at line 75 of file cfx_color.cpp.

References fColor1, fColor2, fColor3, fColor4, kCMYK, kGray, kRGB, kTransparent, nColorType, and operator=().

+ Here is the call graph for this function:

◆ 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().

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

◆ operator/()

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().

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

◆ operator=()

CFX_Color & CFX_Color::operator= ( const CFX_Color & that)
default

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().

+ Here is the caller graph for this function:

◆ 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().

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

Member Data Documentation

◆ fColor1

◆ fColor2

◆ fColor3

◆ fColor4

◆ nColorType


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