|
Coconut Framework
beta
|
Define CNTextElement class. More...
Go to the source code of this file.
Classes | |
| struct | CNTextElement |
| Element of CNText. More... | |
| struct | CNTextElementMethods |
Enumerations | |
| enum | CNTextElementKind { CNTextSectionElement, CNTextLineElement } |
| Type of element of text. | |
Functions | |
| static struct CNTextElement * | CNAllocateTextElement (CNTextElementKind kind, size_t objsize, const struct CNTextElementMethods *methods, struct CNResource *resource) |
| Allocate text element. More... | |
| static struct CNObject * | CNObjectOfTextElement (struct CNTextElement *src) |
| Get super class of text element. More... | |
| static void | CNRetainTextElement (struct CNTextElement *dst) |
| Retain the reference count. More... | |
| static void | CNReleaseTextElement (struct CNTextElement *dst) |
| Release the reference count. More... | |
| static void | CNPrintTextElement (FILE *outfp, unsigned int level, const struct CNTextElement *src) |
| Print text element. More... | |
Define CNTextElement class.
|
static |
Allocate text element.
| kind | Kind of text element |
| objsize | Size of object |
| methods | Methods for the source element |
| resource | Resource to allocate the section |
References CNAllocateObject(), CNTextElement::elementKind, and CNTextElementMethods::superClass.
|
static |
Get super class of text element.
| src | Source text element |
References CNTextElement::superClass.
Referenced by CNObjectOfTextLine(), and CNObjectOfTextSection().
|
inlinestatic |
Retain the reference count.
| dst | Destination text element |
References CNRetainObject(), and CNTextElement::superClass.
Referenced by CNRetainTextLine(), and CNRetainTextSection().
|
inlinestatic |
Release the reference count.
| dst | Destination text element |
References CNReleaseObject(), and CNTextElement::superClass.
Referenced by CNReleaseTextLine(), and CNReleaseTextSection().
|
inlinestatic |
Print text element.
| outfp | Output file stream |
| level | Indent level |
| src | Source text element |
References CNMethodsOfObject(), CNTextElementMethods::printFunc, and CNTextElement::superClass.
1.8.5