#include <txtattr.h>
Inheritance diagram for TxtTrackingAttribute:
Public Member Functions | |
TxtTrackingAttribute () | |
Default Constuctor for TxtTrackingAttribute The function sets the Tracking value to 0. | |
TxtTrackingAttribute (MILLIPOINT tracking) | |
TxtTrackingAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtTrackingAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtTrackingAttribute 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 TxtTrackingAttribute & | operator= (TxtTrackingAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtTrackingAttribute &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 | |
MILLIPOINT | Tracking |
Definition at line 407 of file txtattr.h.
|
Default Constuctor for TxtTrackingAttribute The function sets the Tracking value to 0.
Definition at line 1754 of file txtattr.cpp. 01755 { 01756 Tracking = 0; 01757 }
|
|
TxtTrackingAttribute constructor.
Definition at line 1775 of file txtattr.cpp. 01776 { 01777 Tracking = tracking; 01778 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 1911 of file txtattr.cpp. 01912 { 01913 TxtTrackingAttribute *pAttr = new TxtTrackingAttribute; 01914 if (pAttr==NULL) 01915 // error message has already been set by new 01916 return FALSE; 01917 01918 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 01919 pAttr); 01920 01921 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtTrackingAttribute"); 01922 01923 return TRUE; 01924 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 1888 of file txtattr.cpp. 01889 { 01890 // This must be at least a FillGeometryAttribute... 01891 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtTrackingAttribute)), 01892 "Different attribute types in TxtTrackingAttribute::IsDifferent()"); 01893 01894 // Check they are NOT the same. 01895 return ( !(*((TxtTrackingAttribute *)pAttr) == *this) ); 01896 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 1939 of file txtattr.cpp. 01940 { 01941 // Create new attribute node 01942 AttrTxtTracking* pAttr = new AttrTxtTracking(); 01943 if (pAttr==NULL) 01944 // error message has already been set by new 01945 return NULL; 01946 01947 // Copy attribute value into the new node. 01948 pAttr->Value.SimpleCopy(this); 01949 01950 // Return the new node 01951 return pAttr; 01952 }
|
|
Make the Attribute the same as the other.
Definition at line 1831 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 1851 of file txtattr.cpp.
|
|
Sets the TxtTrackingAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 1794 of file txtattr.cpp. 01795 { 01796 pRegion->SetTxtTracking(this, Temp); 01797 }
|
|
Restores the TxtTrackingAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 1813 of file txtattr.cpp. 01814 { 01815 pRegion->RestoreTxtTracking(this, Temp); 01816 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 1867 of file txtattr.cpp. 01868 { 01869 ERROR3IF(!IS_A(pValue, TxtTrackingAttribute), 01870 "Invalid Attribute value passed to TxtTrackingAttribute::SimpleCopy"); 01871 // We may as well just use our assignment operator. 01872 *this = *((TxtTrackingAttribute*)pValue); 01873 }
|
|
|