#include <txtattr.h>
Inheritance diagram for TxtItalicAttribute:
Public Member Functions | |
TxtItalicAttribute () | |
Default Constuctor for TxtItalicAttribute The default Italic state is FALSE. | |
TxtItalicAttribute (BOOL italicOn) | |
TextFontTypefaceAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtItalicAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtFontTypeface attribute for the given render region. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrTxtItalic node, see base class. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
See base class version. | |
virtual TxtItalicAttribute & | operator= (TxtItalicAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtItalicAttribute &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 | ItalicOn |
Definition at line 295 of file txtattr.h.
|
Default Constuctor for TxtItalicAttribute The default Italic state is FALSE.
Definition at line 884 of file txtattr.cpp.
|
|
TextFontTypefaceAttribute constructor.
Definition at line 905 of file txtattr.cpp. 00906 { 00907 ItalicOn = italicOn; 00908 }
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 1041 of file txtattr.cpp. 01042 { 01043 TxtItalicAttribute *pAttr = new TxtItalicAttribute; 01044 if (pAttr==NULL) 01045 // error message has already been set by new 01046 return FALSE; 01047 01048 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 01049 pAttr); 01050 01051 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtItalicAttribute"); 01052 01053 return TRUE; 01054 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 1018 of file txtattr.cpp. 01019 { 01020 // This must be at least a FillGeometryAttribute... 01021 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtItalicAttribute)), 01022 "Different attribute types in TxtItalicAttribute::IsDifferent()"); 01023 01024 // Check they are NOT the same. 01025 return ( !(*((TxtItalicAttribute *)pAttr) == *this) ); 01026 }
|
|
Make a AttrTxtItalic node, see base class.
Reimplemented from AttributeValue. Definition at line 1069 of file txtattr.cpp. 01070 { 01071 // Create new attribute node 01072 AttrTxtItalic* pAttr = new AttrTxtItalic(); 01073 if (pAttr==NULL) 01074 // error message has already been set by new 01075 return NULL; 01076 01077 // Copy attribute value into the new node. 01078 pAttr->Value.SimpleCopy(this); 01079 01080 // Return the new node 01081 return pAttr; 01082 }
|
|
Make the Attribute the same as the other.
Definition at line 961 of file txtattr.cpp.
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 981 of file txtattr.cpp.
|
|
Sets the TxtFontTypeface attribute for the given render region.
Implements AttributeValue. Definition at line 924 of file txtattr.cpp. 00925 { 00926 pRegion->SetTxtItalic(this, Temp); 00927 }
|
|
Restores the TxtItalicAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 943 of file txtattr.cpp. 00944 { 00945 pRegion->RestoreTxtItalic(this, Temp); 00946 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 997 of file txtattr.cpp. 00998 { 00999 ERROR3IF(!IS_A(pValue, TxtItalicAttribute), 01000 "Invalid Attribute value passed to TxtItalicAttribute::SimpleCopy"); 01001 // We may as well just use our assignment operator. 01002 *this = *((TxtItalicAttribute*)pValue); 01003 }
|
|
|