#include <txtattr.h>
Inheritance diagram for TxtBaseLineAttribute:
Public Member Functions | |
TxtBaseLineAttribute () | |
Default Constuctor for TxtBaseLineAttribute The function sets the Tracking value to 0. | |
TxtBaseLineAttribute (MILLIPOINT value) | |
TxtBaseLineAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtBaseLineAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtBaseLineAttribute 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 TxtBaseLineAttribute & | operator= (TxtBaseLineAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtBaseLineAttribute &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 | Value |
Definition at line 517 of file txtattr.h.
|
Default Constuctor for TxtBaseLineAttribute The function sets the Tracking value to 0.
Definition at line 2193 of file txtattr.cpp. 02194 { 02195 Value = 0; 02196 }
|
|
TxtBaseLineAttribute constructor.
Definition at line 2214 of file txtattr.cpp. 02215 { 02216 Value = value; 02217 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 2350 of file txtattr.cpp. 02351 { 02352 TxtBaseLineAttribute *pAttr = new TxtBaseLineAttribute; 02353 if (pAttr==NULL) 02354 // error message has already been set by new 02355 return FALSE; 02356 02357 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 02358 pAttr); 02359 02360 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtBaseLineAttribute"); 02361 02362 return TRUE; 02363 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 2327 of file txtattr.cpp. 02328 { 02329 // This must be at least a FillGeometryAttribute... 02330 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtBaseLineAttribute)), 02331 "Different attribute types in TxtBaseLineAttribute::IsDifferent()"); 02332 02333 // Check they are NOT the same. 02334 return ( !(*((TxtBaseLineAttribute *)pAttr) == *this) ); 02335 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 2378 of file txtattr.cpp. 02379 { 02380 // Create new attribute node 02381 AttrTxtBaseLine* pAttr = new AttrTxtBaseLine(); 02382 if (pAttr==NULL) 02383 // error message has already been set by new 02384 return NULL; 02385 02386 // Copy attribute value into the new node. 02387 pAttr->Value.SimpleCopy(this); 02388 02389 // Return the new node 02390 return pAttr; 02391 }
|
|
Make the Attribute the same as the other.
Definition at line 2270 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 2290 of file txtattr.cpp.
|
|
Sets the TxtBaseLineAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 2233 of file txtattr.cpp. 02234 { 02235 pRegion->SetTxtBaseLine(this, Temp); 02236 }
|
|
Restores the TxtBaseLineAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 2252 of file txtattr.cpp. 02253 { 02254 pRegion->RestoreTxtBaseLine(this, Temp); 02255 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 2306 of file txtattr.cpp. 02307 { 02308 ERROR3IF(!IS_A(pValue, TxtBaseLineAttribute), 02309 "Invalid Attribute value passed to TxtBaseLineAttribute::SimpleCopy"); 02310 // We may as well just use our assignment operator. 02311 *this = *((TxtBaseLineAttribute*)pValue); 02312 }
|
|
|