#include "core/fpdfdoc/cpdf_iconfit.h"
#include <algorithm>
#include <utility>
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fxcrt/fx_string.h"
namespace {
constexpr float kDefaultPosition = …;
}
CPDF_IconFit::CPDF_IconFit(RetainPtr<const CPDF_Dictionary> pDict)
: … { … }
CPDF_IconFit::CPDF_IconFit(const CPDF_IconFit& that) = default;
CPDF_IconFit::~CPDF_IconFit() = default;
CPDF_IconFit::ScaleMethod CPDF_IconFit::GetScaleMethod() const { … }
bool CPDF_IconFit::IsProportionalScale() const { … }
CFX_PointF CPDF_IconFit::GetIconBottomLeftPosition() const { … }
bool CPDF_IconFit::GetFittingBounds() const { … }
CFX_PointF CPDF_IconFit::GetIconPosition() const { … }
CFX_VectorF CPDF_IconFit::GetScale(const CFX_SizeF& image_size,
const CFX_FloatRect& rcPlate) const { … }
CFX_VectorF CPDF_IconFit::GetImageOffset(const CFX_SizeF& image_size,
const CFX_VectorF& scale,
const CFX_FloatRect& rcPlate) const { … }