#include <txtattr.h>
Inheritance diagram for TxtScriptAttribute:
Public Member Functions | |
TxtScriptAttribute () | |
Default Constuctor for TxtScriptAttribute The function sets the Offset to 0, and the Size to 1. | |
TxtScriptAttribute (FIXED16 offset, FIXED16 size) | |
TxtScriptAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtScriptAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtScriptAttribute attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrTxtTracking node, see base class. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
See base class version. | |
virtual TxtScriptAttribute & | operator= (TxtScriptAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtScriptAttribute &Attrib) |
Comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers default attribute. | |
Public Attributes | |
FIXED16 | Offset |
FIXED16 | Size |
Definition at line 480 of file txtattr.h.
|
Default Constuctor for TxtScriptAttribute The function sets the Offset to 0, and the Size to 1.
Definition at line 1972 of file txtattr.cpp.
|
|
TxtScriptAttribute constructor.
Definition at line 1995 of file txtattr.cpp.
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 2133 of file txtattr.cpp. 02134 { 02135 TxtScriptAttribute *pAttr = new TxtScriptAttribute; 02136 if (pAttr==NULL) 02137 // error message has already been set by new 02138 return FALSE; 02139 02140 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 02141 pAttr); 02142 02143 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtScriptAttribute"); 02144 02145 return TRUE; 02146 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 2110 of file txtattr.cpp. 02111 { 02112 // This must be at least a FillGeometryAttribute... 02113 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtScriptAttribute)), 02114 "Different attribute types in TxtScriptAttribute::IsDifferent()"); 02115 02116 // Check they are NOT the same. 02117 return ( !(*((TxtScriptAttribute *)pAttr) == *this) ); 02118 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 2161 of file txtattr.cpp. 02162 { 02163 // Create new attribute node 02164 AttrTxtScript* pAttr = new AttrTxtScript(); 02165 if (pAttr==NULL) 02166 // error message has already been set by new 02167 return NULL; 02168 02169 // Copy attribute value into the new node. 02170 pAttr->Value.SimpleCopy(this); 02171 02172 // Return the new node 02173 return pAttr; 02174 }
|
|
Make the Attribute the same as the other.
Definition at line 2052 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 2073 of file txtattr.cpp.
|
|
Sets the TxtScriptAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 2015 of file txtattr.cpp. 02016 { 02017 pRegion->SetTxtScript(this, Temp); 02018 }
|
|
Restores the TxtScriptAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 2034 of file txtattr.cpp. 02035 { 02036 pRegion->RestoreTxtScript(this, Temp); 02037 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 2089 of file txtattr.cpp. 02090 { 02091 ERROR3IF(!IS_A(pValue, TxtScriptAttribute), 02092 "Invalid Attribute value passed to TxtScriptAttribute::SimpleCopy"); 02093 // We may as well just use our assignment operator. 02094 *this = *((TxtScriptAttribute*)pValue); 02095 }
|
|
|
|
|