X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fipdf.h;h=5a4f35c3b9d8bc5f4014385caa8c3fa365e87e0e;hb=cfe7da763b5d8ef4252ddb94558abb080bbd893d;hp=79d25a894dddb086f5bfe3010ae97db188fc3bb1;hpb=5e19040b00e135ead52e535165e079ee72059727;p=ipdf%2Fcode.git 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