8 #ifndef CNTEXTELEMENT_H
9 #define CNTEXTELEMENT_H
100 (*(methods->
printFunc))(outfp, level, src) ;
CNTextElementKind elementKind
Definition: CNTextElement.h:28
static void CNPrintTextElement(FILE *outfp, unsigned int level, const struct CNTextElement *src)
Print text element.
Definition: CNTextElement.h:96
void(* printFunc)(FILE *outfp, unsigned int level, const struct CNTextElement *src)
Definition: CNTextElement.h:37
static struct CNTextElement * CNAllocateTextElement(CNTextElementKind kind, size_t objsize, const struct CNTextElementMethods *methods, struct CNResource *resource)
Allocate text element.
Definition: CNTextElement.h:49
Element of CNText.
Definition: CNTextElement.h:23
struct CNObjectMethods superClass
Definition: CNTextElement.h:35
Root object.
Definition: CNObject.h:38
Definition: CNTextElement.h:32
struct CNObject superClass
Definition: CNTextElement.h:26
Define CNObject data structure.
Methods for CNObject.
Definition: CNObject.h:29
void CNReleaseObject(struct CNObject *dst)
Release the object.
static void CNReleaseTextElement(struct CNTextElement *dst)
Release the reference count.
Definition: CNTextElement.h:84
static struct CNObject * CNObjectOfTextElement(struct CNTextElement *src)
Get super class of text element.
Definition: CNTextElement.h:64
static void CNRetainObject(struct CNObject *dst)
Retain the object.
Definition: CNObject.h:75
static void CNRetainTextElement(struct CNTextElement *dst)
Retain the reference count.
Definition: CNTextElement.h:74
static struct CNObject * CNAllocateObject(size_t size, const struct CNObjectMethods *methods, struct CNResource *resource)
Allocate object.
Definition: CNObject.h:59
static struct CNObjectMethods * CNMethodsOfObject(const struct CNObject *src)
Get methods for the object.
Definition: CNObject.h:106
CNTextElementKind
Type of element of text.
Definition: CNTextElement.h:15