summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_page.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_page.h')
-rw-r--r--core/fpdfapi/page/cpdf_page.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/fpdfapi/page/cpdf_page.h b/core/fpdfapi/page/cpdf_page.h
index 39c1b72c27..d199ea41db 100644
--- a/core/fpdfapi/page/cpdf_page.h
+++ b/core/fpdfapi/page/cpdf_page.h
@@ -33,6 +33,18 @@ class CPDF_Page : public CPDF_PageObjectHolder {
void ParseContent();
+ void DeviceToPage(const FX_RECT& rect,
+ int rotate,
+ const CFX_PointF& device_point,
+ double* page_x,
+ double* page_y) const;
+ void PageToDevice(const FX_RECT& rect,
+ int rotate,
+ double page_x,
+ double page_y,
+ int* device_x,
+ int* device_y) const;
+
CFX_Matrix GetDisplayMatrix(const FX_RECT& rect, int iRotate) const;
float GetPageWidth() const { return m_PageSize.width; }