uFormat Framework  alpha
Classes | Functions
uFText.h File Reference

Define uFText component and it's operation. More...

#include <CoconutXML/CoconutXML.h>

Go to the source code of this file.

Classes

struct  uFText
 Plain text component. More...

Functions

struct uFTextuFAllocateText (struct CNString *text, struct CNResource *resource)
 Allocate uFText component.
static void uFRetainText (struct uFText *dst)
 Retain the uFText component.
static void uFReleaseText (struct uFText *dst)
 Release the uFText component.
static struct CNXMLObject * uFCastTextToXMLObject (struct uFText *src)
 Cast uFText to XML object.
CNBoolean uFIsTextXMLNode (xmlNodePtr src)
 Check the XML node can be encoded into uFText component.
static xmlNodePtr uFEncodeText (const struct uFText *src)
 Encode uFText into XML node.
static struct CNString * uFContextInText (const struct uFText *src)
 Get context of the uFText component.

Detailed Description

Define uFText component and it's operation.

Copyright
Copyright (C) 2012 Steel Wheels Project

Function Documentation

struct uFText* uFAllocateText ( struct CNString *  text,
struct CNResource *  resource 
) [read]

Allocate uFText component.

Return values:
textAllocated uFText component
NULLFailed to allocate the component
Parameters:
textContext for this component
resourceResource to allocate the new component
static void uFRetainText ( struct uFText dst) [inline, static]

Retain the uFText component.

Parameters:
dstDestination component

References uFText::superClass.

static void uFReleaseText ( struct uFText dst) [inline, static]

Release the uFText component.

Parameters:
dstDestination component

References uFText::superClass.

static struct CNXMLObject* uFCastTextToXMLObject ( struct uFText src) [static, read]

Cast uFText to XML object.

Returns:
XML Object
Parameters:
srcSource text

References uFText::superClass.

CNBoolean uFIsTextXMLNode ( xmlNodePtr  src)

Check the XML node can be encoded into uFText component.

Return values:
TRUECan be encoded
FALSECan NOT be encoded
Parameters:
srcSource XML node
static xmlNodePtr uFEncodeText ( const struct uFText src) [inline, static]

Encode uFText into XML node.

Return values:
nodeEncoded XML node
NULLFailed to encode
Parameters:
srcSource uFText component

References uFText::superClass.

static struct CNString* uFContextInText ( const struct uFText src) [static, read]

Get context of the uFText component.

Returns:
Context string
Parameters:
srcSource component

References uFText::text.