X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fipdf.h;h=5a4f35c3b9d8bc5f4014385caa8c3fa365e87e0e;hp=79d25a894dddb086f5bfe3010ae97db188fc3bb1;hb=f8ef964f021d1d6da6ea46bbb1fe8f0250a5be8c;hpb=5e19040b00e135ead52e535165e079ee72059727 diff --git a/src/ipdf.h b/src/ipdf.h index 79d25a8..5a4f35c 100644 --- a/src/ipdf.h +++ b/src/ipdf.h @@ -17,13 +17,22 @@ namespace IPDF } typedef unsigned ObjectID; - typedef enum {RECT_FILLED, RECT_OUTLINE} ObjectType; + /** Type of object + * NOTE: Extra entry in the enum so we can use this as an array index + */ + typedef enum + { + RECT_FILLED = 0, + RECT_OUTLINE, + CIRCLE_FILLED, + NUMBER_OF_OBJECT_TYPES + } ObjectType; enum DocChunkTypes { CT_NUMOBJS, CT_OBJTYPES, - CT_OBJBOUNDS + CT_OBJBOUNDS, }; struct Rect