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

#include <cpdf_iconfit.h>

+ Collaboration diagram for CPDF_IconFit:

Public Types

enum class  ScaleMethod { kAlways = 0 , kBigger , kSmaller , kNever }
 

Public Member Functions

 CPDF_IconFit (RetainPtr< const CPDF_Dictionary > pDict)
 
 CPDF_IconFit (const CPDF_IconFit &that)
 
 ~CPDF_IconFit ()
 
ScaleMethod GetScaleMethod () const
 
bool IsProportionalScale () const
 
bool GetFittingBounds () const
 
CFX_PointF GetIconBottomLeftPosition () const
 
CFX_VectorF GetScale (const CFX_SizeF &image_size, const CFX_FloatRect &rcPlate) const
 
CFX_VectorF GetImageOffset (const CFX_SizeF &image_size, const CFX_VectorF &scale, const CFX_FloatRect &rcPlate) const
 

Detailed Description

Definition at line 15 of file cpdf_iconfit.h.

Member Enumeration Documentation

◆ ScaleMethod

enum class CPDF_IconFit::ScaleMethod
strong
Enumerator
kAlways 
kBigger 
kSmaller 
kNever 

Definition at line 17 of file cpdf_iconfit.h.

Constructor & Destructor Documentation

◆ CPDF_IconFit() [1/2]

CPDF_IconFit::CPDF_IconFit ( RetainPtr< const CPDF_Dictionary > pDict)
explicit

Definition at line 22 of file cpdf_iconfit.cpp.

References CPDF_IconFit().

Referenced by CPDF_IconFit().

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

◆ CPDF_IconFit() [2/2]

CPDF_IconFit::CPDF_IconFit ( const CPDF_IconFit & that)
default

◆ ~CPDF_IconFit()

CPDF_IconFit::~CPDF_IconFit ( )
default

Member Function Documentation

◆ GetFittingBounds()

bool CPDF_IconFit::GetFittingBounds ( ) const

Definition at line 65 of file cpdf_iconfit.cpp.

Referenced by CPDFSDK_AppStream::SetAsPushButton().

+ Here is the caller graph for this function:

◆ GetIconBottomLeftPosition()

CFX_PointF CPDF_IconFit::GetIconBottomLeftPosition ( ) const

Definition at line 47 of file cpdf_iconfit.cpp.

◆ GetImageOffset()

CFX_VectorF CPDF_IconFit::GetImageOffset ( const CFX_SizeF & image_size,
const CFX_VectorF & scale,
const CFX_FloatRect & rcPlate ) const

Definition at line 119 of file cpdf_iconfit.cpp.

References CFX_FloatRect::Height(), and CFX_FloatRect::Width().

+ Here is the call graph for this function:

◆ GetScale()

CFX_VectorF CPDF_IconFit::GetScale ( const CFX_SizeF & image_size,
const CFX_FloatRect & rcPlate ) const

Definition at line 82 of file cpdf_iconfit.cpp.

References GetScaleMethod(), CFX_FloatRect::Height(), IsProportionalScale(), kAlways, kBigger, kNever, kSmaller, and CFX_FloatRect::Width().

+ Here is the call graph for this function:

◆ GetScaleMethod()

CPDF_IconFit::ScaleMethod CPDF_IconFit::GetScaleMethod ( ) const

Definition at line 29 of file cpdf_iconfit.cpp.

References kAlways, kBigger, kNever, kSmaller, and fxcrt::ByteString::operator==().

Referenced by GetScale().

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

◆ IsProportionalScale()

bool CPDF_IconFit::IsProportionalScale ( ) const

Definition at line 43 of file cpdf_iconfit.cpp.

Referenced by GetScale().

+ Here is the caller graph for this function:

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