#include <txtattr.h>
Inheritance diagram for TxtBoldAttribute:
Public Member Functions | |
TxtBoldAttribute () | |
Default Constuctor for TxtBoldAttribute The Bold state is set to FALSE. | |
TxtBoldAttribute (BOOL boldOn) | |
TxtBoldAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtBoldAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtBoldAttribute attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrTextFontTypeface node, see base class. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
See base class version. | |
virtual TxtBoldAttribute & | operator= (TxtBoldAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtBoldAttribute &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 | |
BOOL | BoldOn |
Definition at line 258 of file txtattr.h.
|
Default Constuctor for TxtBoldAttribute The Bold state is set to FALSE.
Definition at line 667 of file txtattr.cpp.
|
|
TxtBoldAttribute constructor.
Definition at line 688 of file txtattr.cpp. 00689 { 00690 BoldOn = boldOn; 00691 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 824 of file txtattr.cpp. 00825 { 00826 TxtBoldAttribute *pAttr = new TxtBoldAttribute; 00827 if (pAttr==NULL) 00828 // error message has already been set by new 00829 return FALSE; 00830 00831 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 00832 pAttr); 00833 00834 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtBoldAttribute"); 00835 00836 return TRUE; 00837 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 801 of file txtattr.cpp. 00802 { 00803 // This must be at least a FillGeometryAttribute... 00804 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtBoldAttribute)), 00805 "Different attribute types in TxtBoldAttribute::IsDifferent()"); 00806 00807 // Check they are NOT the same. 00808 return ( !(*((TxtBoldAttribute *)pAttr) == *this) ); 00809 }
|
|
Make a AttrTextFontTypeface node, see base class.
Reimplemented from AttributeValue. Definition at line 852 of file txtattr.cpp. 00853 { 00854 // Create new attribute node 00855 AttrTxtBold* pAttr = new AttrTxtBold(); 00856 if (pAttr==NULL) 00857 // error message has already been set by new 00858 return NULL; 00859 00860 // Copy attribute value into the new node. 00861 pAttr->Value.SimpleCopy(this); 00862 00863 // Return the new node 00864 return pAttr; 00865 }
|
|
Make the Attribute the same as the other.
Definition at line 744 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 764 of file txtattr.cpp.
|
|
Sets the TxtBoldAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 707 of file txtattr.cpp. 00708 { 00709 pRegion->SetTxtBold(this, Temp); 00710 }
|
|
Restores the TxtBoldAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 726 of file txtattr.cpp. 00727 { 00728 pRegion->RestoreTxtBold(this, Temp); 00729 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 780 of file txtattr.cpp. 00781 { 00782 ERROR3IF(!IS_A(pValue, TxtBoldAttribute), 00783 "Invalid Attribute value passed to TxtBoldAttribute::SimpleCopy"); 00784 // We may as well just use our assignment operator. 00785 *this = *((TxtBoldAttribute*)pValue); 00786 }
|
|
|