summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwileyrya <wileyrr@gmail.com>2017-05-31 19:13:37 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-06-01 01:27:24 +0000
commit5be0b291bce26e1a12c9a7becb7c9a9e7857a456 (patch)
tree6e22c399a67146c4a87739b2817f475f32e07dac
parent9c6b37c469e3f03abc7828d44b99d1d0b4a3259b (diff)
downloadpdfium-5be0b291bce26e1a12c9a7becb7c9a9e7857a456.tar.xz
Add public #defines for line cap and line join values.
Change-Id: I7a26e288410b4bce0be1779b1d4cec7eb1243945 Reviewed-on: https://pdfium-review.googlesource.com/6171 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
-rw-r--r--public/fpdf_edit.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/public/fpdf_edit.h b/public/fpdf_edit.h
index 2014e6faf4..aceca351cd 100644
--- a/public/fpdf_edit.h
+++ b/public/fpdf_edit.h
@@ -34,6 +34,14 @@
#define FPDF_FONT_TYPE1 1
#define FPDF_FONT_TRUETYPE 2
+#define FPDF_LINECAP_BUTT 0
+#define FPDF_LINECAP_ROUND 1
+#define FPDF_LINECAP_PROJECTING_SQUARE 2
+
+#define FPDF_LINEJOIN_MITER 0
+#define FPDF_LINEJOIN_ROUND 1
+#define FPDF_LINEJOIN_BEVEL 2
+
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
@@ -350,7 +358,8 @@ DLLEXPORT FPDF_BOOL FPDFPath_SetStrokeWidth(FPDF_PAGEOBJECT path, float width);
// pageObject - handle to a page object.
// line_join - line join
//
-// Line join can be one of following: Miter (0), Round (1), Bevel (2)
+// Line join can be one of following: FPDF_LINEJOIN_MITER, FPDF_LINEJOIN_ROUND,
+// FPDF_LINEJOIN_BEVEL
DLLEXPORT void STDCALL FPDFPath_SetLineJoin(FPDF_PAGEOBJECT page,
int line_join);
@@ -359,7 +368,8 @@ DLLEXPORT void STDCALL FPDFPath_SetLineJoin(FPDF_PAGEOBJECT page,
// pageObject - handle to a page object.
// line_cap - line cap
//
-// Line cap can be one of following: Butt (0), Round (1), Projecting square (2)
+// Line cap can be one of following: FPDF_LINECAP_BUTT, FPDF_LINECAP_ROUND,
+// FPDF_LINECAP_PROJECTING_SQUARE
DLLEXPORT void STDCALL FPDFPath_SetLineCap(FPDF_PAGEOBJECT page, int line_cap);
// Set the fill RGBA of a path. Range of values: 0 - 255.