summaryrefslogtreecommitdiff
path: root/public/fpdf_text.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-11 14:34:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-11 14:34:06 +0000
commit241752f3c188ed992a26618361e55b1d7f2be7cc (patch)
tree68cc3709bb5e5f83a8f357b64385c07a90c2f076 /public/fpdf_text.h
parent96d6b4df3a96976bb3d9ba068a88bf655f3da856 (diff)
downloadpdfium-241752f3c188ed992a26618361e55b1d7f2be7cc.tar.xz
Change FPDFText_GetCharBox() to return a boolean.
BUG=pdfium:858 Change-Id: Id8b6c032d60894eaf14ae0ba52098a60b2485fca Reviewed-on: https://pdfium-review.googlesource.com/22731 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'public/fpdf_text.h')
-rw-r--r--public/fpdf_text.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/public/fpdf_text.h b/public/fpdf_text.h
index 90ccaf76ae..043dc169c9 100644
--- a/public/fpdf_text.h
+++ b/public/fpdf_text.h
@@ -102,16 +102,18 @@ FPDF_EXPORT double FPDF_CALLCONV FPDFText_GetFontSize(FPDF_TEXTPAGE text_page,
// top - Pointer to a double number receiving top position of
// the character box.
// Return Value:
-// None.
+// On success, return TRUE and fill in |left|, |right|, |bottom|, and
+// |top|. If |text_page| is invalid, or if |index| is out of bounds,
+// then return FALSE, and the out parameters remain unmodified.
// Comments:
// All positions are measured in PDF "user space".
//
-FPDF_EXPORT void FPDF_CALLCONV FPDFText_GetCharBox(FPDF_TEXTPAGE text_page,
- int index,
- double* left,
- double* right,
- double* bottom,
- double* top);
+FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFText_GetCharBox(FPDF_TEXTPAGE text_page,
+ int index,
+ double* left,
+ double* right,
+ double* bottom,
+ double* top);
// Function: FPDFText_GetCharOrigin
// Get origin of a particular character.