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
CJS_Color Class Referencefinal

#include <cjs_color.h>

+ Inheritance diagram for CJS_Color:
+ Collaboration diagram for CJS_Color:

Public Member Functions

 CJS_Color (v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
 
 ~CJS_Color () override
 
- Public Member Functions inherited from CJS_Object
 CJS_Object (v8::Local< v8::Object > pObject, CJS_Runtime *pRuntime)
 
virtual ~CJS_Object ()
 
v8::Local< v8::Object > ToV8Object ()
 
CJS_RuntimeGetRuntime () const
 

Static Public Member Functions

static uint32_t GetObjDefnID ()
 
static void DefineJSObjects (CFXJS_Engine *pEngine)
 
static v8::Local< v8::Array > ConvertPWLColorToArray (CJS_Runtime *pRuntime, const CFX_Color &color)
 
static CFX_Color ConvertArrayToPWLColor (CJS_Runtime *pRuntime, v8::Local< v8::Array > array)
 
- Static Public Member Functions inherited from CJS_Object
static void DefineConsts (CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSConstSpec > consts)
 
static void DefineProps (CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSPropertySpec > consts)
 
static void DefineMethods (CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSMethodSpec > consts)
 

Detailed Description

Definition at line 17 of file cjs_color.h.

Constructor & Destructor Documentation

◆ CJS_Color()

CJS_Color::CJS_Color ( v8::Local< v8::Object > pObject,
CJS_Runtime * pRuntime )

Definition at line 131 of file cjs_color.cpp.

References CFX_Color::CFX_Color(), CFX_Color::kCMYK, CFX_Color::kGray, CFX_Color::kRGB, and CFX_Color::kTransparent.

+ Here is the call graph for this function:

◆ ~CJS_Color()

CJS_Color::~CJS_Color ( )
overridedefault

Member Function Documentation

◆ ConvertArrayToPWLColor()

CFX_Color CJS_Color::ConvertArrayToPWLColor ( CJS_Runtime * pRuntime,
v8::Local< v8::Array > array )
static

Definition at line 88 of file cjs_color.cpp.

References CFX_Color::CFX_Color(), fxcrt::WideString::EqualsASCII(), CFX_Color::kCMYK, CFX_Color::kGray, CFX_Color::kRGB, and CFX_Color::kTransparent.

+ Here is the call graph for this function:

◆ ConvertPWLColorToArray()

v8::Local< v8::Array > CJS_Color::ConvertPWLColorToArray ( CJS_Runtime * pRuntime,
const CFX_Color & color )
static

Definition at line 55 of file cjs_color.cpp.

References CFX_Color::nColorType.

◆ DefineJSObjects()

void CJS_Color::DefineJSObjects ( CFXJS_Engine * pEngine)
static

Definition at line 47 of file cjs_color.cpp.

References CJS_Object::DefineMethods(), CJS_Object::DefineProps(), and FXJSOBJTYPE_STATIC.

+ Here is the call graph for this function:

◆ GetObjDefnID()

uint32_t CJS_Color::GetObjDefnID ( )
static

Definition at line 42 of file cjs_color.cpp.


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