Coconut Framework  beta
Classes | Functions
CNTextSection.h File Reference

Define CNTextSection class. More...

#include "CNTextElement.h"
#include "CNTextString.h"
#include "CNObjectList.h"

Go to the source code of this file.

Classes

struct  CNTextSection
 

Functions

struct CNTextSectionCNAllocateTextSection (struct CNTextSection *parent, const struct CNTextString *beginstr, const struct CNTextString *endstr, struct CNResource *resource)
 Allocate text section. More...
 
static struct CNObjectCNObjectOfTextSection (struct CNTextSection *src)
 Get super class of text section. More...
 
static void CNRetainTextSection (struct CNTextSection *dst)
 Retain the reference count. More...
 
static void CNReleaseTextSection (struct CNTextSection *dst)
 Release the reference count. More...
 
void CNAppendChildSectionToSection (struct CNTextSection *parent, struct CNTextSection *child)
 Append new section as a last element of the parent section. More...
 
void CNAppendChildLineToSection (struct CNTextSection *parent, struct CNTextLine *child)
 Append new line as a last element of the parent section. More...
 

Detailed Description

Define CNTextSection class.

Copyright
Copyright (C) 2013 Steel Wheels Project

Function Documentation

struct CNTextSection* CNAllocateTextSection ( struct CNTextSection parent,
const struct CNTextString beginstr,
const struct CNTextString endstr,
struct CNResource *  resource 
)

Allocate text section.

Returns
Text section
Parameters
parentParent section of the section. This value will be NULL.
beginstrBeginning of this section
endstrEnd of this section
resourceResource to allocate the section
static struct CNObject* CNObjectOfTextSection ( struct CNTextSection src)
static

Get super class of text section.

Returns
CNObject object
Parameters
srcSource text section

References CNObjectOfTextElement(), and CNTextSection::superClass.

static void CNRetainTextSection ( struct CNTextSection dst)
inlinestatic

Retain the reference count.

Parameters
dstDestination text section

References CNRetainTextElement(), and CNTextSection::superClass.

static void CNReleaseTextSection ( struct CNTextSection dst)
inlinestatic

Release the reference count.

Parameters
dstDestination text section

References CNReleaseTextElement(), and CNTextSection::superClass.

void CNAppendChildSectionToSection ( struct CNTextSection parent,
struct CNTextSection child 
)

Append new section as a last element of the parent section.

Parameters
parentParent section
childSource section
void CNAppendChildLineToSection ( struct CNTextSection parent,
struct CNTextLine child 
)

Append new line as a last element of the parent section.

Parameters
parentParent section
childSource section