summaryrefslogtreecommitdiff
path: root/public/fpdf_edit.h
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-15 07:49:03 +0200
committerChromium commit bot <commit-bot@chromium.org>2017-09-15 06:03:35 +0000
commit12abfd04a42a1166f7d1496beb63515bc47ec360 (patch)
tree573057f4cf24780bdf17d2ac113e48eec0897780 /public/fpdf_edit.h
parent69fe7110e6af83ca82d71275a70ae4983daddd6f (diff)
downloadpdfium-12abfd04a42a1166f7d1496beb63515bc47ec360.tar.xz
Add public method FPDFPath_CountPoint to get # of points of a path object.
It was already possible to get the fill color, this exposes the number of points. Naming attempts to be consistent with existing FPDFPage_CountObject(). Change-Id: I79e8dd9f0c077de84ce9017a01d239e48e58174a Reviewed-on: https://pdfium-review.googlesource.com/13592 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'public/fpdf_edit.h')
-rw-r--r--public/fpdf_edit.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index 22582674ea..9ee11cb5ec 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -552,6 +552,16 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFPath_GetFillColor(FPDF_PAGEOBJECT path,
unsigned int* B,
unsigned int* A);
+// Get number of point objects inside |path|.
+//
+// path - handle to a path.
+//
+// A point object is a command, created by e.g. FPDFPath_MoveTo() or
+// FPDFPath_LineTo().
+//
+// Returns the number of objects in |path| or -1 on failure.
+FPDF_EXPORT int FPDF_CALLCONV FPDFPath_CountPoint(FPDF_PAGEOBJECT path);
+
// Move a path's current point.
//
// path - the handle to the path object.