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