Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_iconfit.h>
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 |
Definition at line 15 of file cpdf_iconfit.h.
|
strong |
Enumerator | |
---|---|
kAlways | |
kBigger | |
kSmaller | |
kNever |
Definition at line 17 of file cpdf_iconfit.h.
|
explicit |
Definition at line 22 of file cpdf_iconfit.cpp.
References CPDF_IconFit().
Referenced by CPDF_IconFit().
|
default |
|
default |
bool CPDF_IconFit::GetFittingBounds | ( | ) | const |
Definition at line 65 of file cpdf_iconfit.cpp.
Referenced by CPDFSDK_AppStream::SetAsPushButton().
CFX_PointF CPDF_IconFit::GetIconBottomLeftPosition | ( | ) | const |
Definition at line 47 of file cpdf_iconfit.cpp.
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().
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().
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().
bool CPDF_IconFit::IsProportionalScale | ( | ) | const |
Definition at line 43 of file cpdf_iconfit.cpp.
Referenced by GetScale().