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
CPDF_RenderOptions Class Reference

#include <cpdf_renderoptions.h>

+ Collaboration diagram for CPDF_RenderOptions:

Classes

struct  ColorScheme
 
struct  Options
 

Public Types

enum  Type : uint8_t { kNormal = 0 , kGray , kAlpha , kForcedColor }
 

Public Member Functions

 CPDF_RenderOptions ()
 
 CPDF_RenderOptions (const CPDF_RenderOptions &rhs)
 
 ~CPDF_RenderOptions ()
 
FX_ARGB TranslateColor (FX_ARGB argb) const
 
FX_ARGB TranslateObjectFillColor (FX_ARGB argb, CPDF_PageObject::Type object_type) const
 
FX_ARGB TranslateObjectStrokeColor (FX_ARGB argb, CPDF_PageObject::Type object_type) const
 
void SetColorScheme (const ColorScheme &color_scheme)
 
void SetColorMode (Type mode)
 
bool ColorModeIs (Type mode) const
 
const OptionsGetOptions () const
 
OptionsGetOptions ()
 
uint32_t GetCacheSizeLimit () const
 
bool CheckOCGDictVisible (const CPDF_Dictionary *pOC) const
 
bool CheckPageObjectVisible (const CPDF_PageObject *pPageObj) const
 
void SetDrawAnnots (bool draw)
 
bool GetDrawAnnots () const
 
void SetOCContext (RetainPtr< CPDF_OCContext > context)
 

Detailed Description

Definition at line 19 of file cpdf_renderoptions.h.

Member Enumeration Documentation

◆ Type

enum CPDF_RenderOptions::Type : uint8_t
Enumerator
kNormal 
kGray 
kAlpha 
kForcedColor 

Definition at line 21 of file cpdf_renderoptions.h.

Constructor & Destructor Documentation

◆ CPDF_RenderOptions() [1/2]

CPDF_RenderOptions::CPDF_RenderOptions ( )

Definition at line 23 of file cpdf_renderoptions.cpp.

References CPDF_RenderOptions::Options::bClearType.

◆ CPDF_RenderOptions() [2/2]

CPDF_RenderOptions::CPDF_RenderOptions ( const CPDF_RenderOptions & rhs)
default

◆ ~CPDF_RenderOptions()

CPDF_RenderOptions::~CPDF_RenderOptions ( )
default

Member Function Documentation

◆ CheckOCGDictVisible()

bool CPDF_RenderOptions::CheckOCGDictVisible ( const CPDF_Dictionary * pOC) const

Definition at line 84 of file cpdf_renderoptions.cpp.

Referenced by CPDF_ImageRenderer::Start().

+ Here is the caller graph for this function:

◆ CheckPageObjectVisible()

bool CPDF_RenderOptions::CheckPageObjectVisible ( const CPDF_PageObject * pPageObj) const

Definition at line 88 of file cpdf_renderoptions.cpp.

◆ ColorModeIs()

bool CPDF_RenderOptions::ColorModeIs ( Type mode) const
inline

Definition at line 62 of file cpdf_renderoptions.h.

Referenced by CPDF_RenderShading::Draw(), CPDF_RenderTiling::Draw(), TranslateColor(), TranslateObjectFillColor(), and TranslateObjectStrokeColor().

+ Here is the caller graph for this function:

◆ GetCacheSizeLimit()

uint32_t CPDF_RenderOptions::GetCacheSizeLimit ( ) const

Definition at line 80 of file cpdf_renderoptions.cpp.

◆ GetDrawAnnots()

bool CPDF_RenderOptions::GetDrawAnnots ( ) const
inline

Definition at line 72 of file cpdf_renderoptions.h.

◆ GetOptions() [1/2]

Options & CPDF_RenderOptions::GetOptions ( )
inline

Definition at line 65 of file cpdf_renderoptions.h.

◆ GetOptions() [2/2]

const Options & CPDF_RenderOptions::GetOptions ( ) const
inline

Definition at line 64 of file cpdf_renderoptions.h.

Referenced by CPDF_RenderShading::Draw().

+ Here is the caller graph for this function:

◆ SetColorMode()

void CPDF_RenderOptions::SetColorMode ( Type mode)
inline

Definition at line 61 of file cpdf_renderoptions.h.

◆ SetColorScheme()

void CPDF_RenderOptions::SetColorScheme ( const ColorScheme & color_scheme)
inline

Definition at line 57 of file cpdf_renderoptions.h.

Referenced by SetColorFromScheme().

+ Here is the caller graph for this function:

◆ SetDrawAnnots()

void CPDF_RenderOptions::SetDrawAnnots ( bool draw)
inline

Definition at line 71 of file cpdf_renderoptions.h.

◆ SetOCContext()

void CPDF_RenderOptions::SetOCContext ( RetainPtr< CPDF_OCContext > context)
inline

Definition at line 74 of file cpdf_renderoptions.h.

◆ TranslateColor()

FX_ARGB CPDF_RenderOptions::TranslateColor ( FX_ARGB argb) const

Definition at line 33 of file cpdf_renderoptions.cpp.

References ArgbEncode(), ColorModeIs(), kAlpha, and kNormal.

Referenced by TranslateObjectFillColor(), and TranslateObjectStrokeColor().

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

◆ TranslateObjectFillColor()

FX_ARGB CPDF_RenderOptions::TranslateObjectFillColor ( FX_ARGB argb,
CPDF_PageObject::Type object_type ) const

Definition at line 48 of file cpdf_renderoptions.cpp.

References ColorModeIs(), kForcedColor, CPDF_PageObject::kPath, CPDF_PageObject::kText, CPDF_RenderOptions::ColorScheme::path_fill_color, CPDF_RenderOptions::ColorScheme::text_fill_color, and TranslateColor().

+ Here is the call graph for this function:

◆ TranslateObjectStrokeColor()

FX_ARGB CPDF_RenderOptions::TranslateObjectStrokeColor ( FX_ARGB argb,
CPDF_PageObject::Type object_type ) const

Definition at line 64 of file cpdf_renderoptions.cpp.

References ColorModeIs(), kForcedColor, CPDF_PageObject::kPath, CPDF_PageObject::kText, CPDF_RenderOptions::ColorScheme::path_stroke_color, CPDF_RenderOptions::ColorScheme::text_stroke_color, and TranslateColor().

+ Here is the call graph for this function:

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