#include <txtattr.h>
Inheritance diagram for TxtUnderlineAttribute:
Public Member Functions | |
TxtUnderlineAttribute () | |
Default Constuctor for TxtUnderlineAttribute The default Underline state is FALSE. | |
TxtUnderlineAttribute (BOOL underlined) | |
TxtUnderlineAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtUnderlineAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtUnderlineAttribute attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrTxtUnderline node, see base class. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
See base class version. | |
virtual TxtUnderlineAttribute & | operator= (TxtUnderlineAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtUnderlineAttribute &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 | Underlined |
Definition at line 333 of file txtattr.h.
|
Default Constuctor for TxtUnderlineAttribute The default Underline state is FALSE.
Definition at line 1101 of file txtattr.cpp. 01102 { 01103 Underlined = FALSE; 01104 }
|
|
TxtUnderlineAttribute constructor.
Definition at line 1122 of file txtattr.cpp. 01123 { 01124 Underlined = underlined; 01125 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 1258 of file txtattr.cpp. 01259 { 01260 TxtUnderlineAttribute *pAttr = new TxtUnderlineAttribute; 01261 if (pAttr==NULL) 01262 // error message has already been set by new 01263 return FALSE; 01264 01265 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 01266 pAttr); 01267 01268 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtUnderlineAttribute"); 01269 01270 return TRUE; 01271 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 1235 of file txtattr.cpp. 01236 { 01237 // This must be at least a FillGeometryAttribute... 01238 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtUnderlineAttribute)), 01239 "Different attribute types in TxtUnderlineAttribute::IsDifferent()"); 01240 01241 // Check they are NOT the same. 01242 return ( !(*((TxtUnderlineAttribute *)pAttr) == *this) ); 01243 }
|
|
Make a AttrTxtUnderline node, see base class.
Reimplemented from AttributeValue. Definition at line 1286 of file txtattr.cpp. 01287 { 01288 // Create new attribute node 01289 AttrTxtUnderline* pAttr = new AttrTxtUnderline(); 01290 if (pAttr==NULL) 01291 // error message has already been set by new 01292 return NULL; 01293 01294 // Copy attribute value into the new node. 01295 pAttr->Value.SimpleCopy(this); 01296 01297 // Return the new node 01298 return pAttr; 01299 }
|
|
Make the Attribute the same as the other.
Definition at line 1178 of file txtattr.cpp. 01179 { 01180 Underlined = Attrib.Underlined; 01181 return *this; 01182 }
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 1198 of file txtattr.cpp. 01199 { 01200 return (Attrib.Underlined == Underlined); 01201 }
|
|
Sets the TxtUnderlineAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 1141 of file txtattr.cpp. 01142 { 01143 pRegion->SetTxtUnderline(this, Temp); 01144 }
|
|
Restores the TxtUnderlineAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 1160 of file txtattr.cpp. 01161 { 01162 pRegion->RestoreTxtUnderline(this, Temp); 01163 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 1214 of file txtattr.cpp. 01215 { 01216 ERROR3IF(!IS_A(pValue, TxtUnderlineAttribute), 01217 "Invalid Attribute value passed to TxtUnderlineAttribute::SimpleCopy"); 01218 // We may as well just use our assignment operator. 01219 *this = *((TxtUnderlineAttribute*)pValue); 01220 }
|
|
|