#include <txtattr.h>
Inheritance diagram for TxtLineSpaceAttribute:
Public Member Functions | |
TxtLineSpaceAttribute () | |
Default Constuctor for TxtLineSpaceAttribute The function sets the Value to 19.2pt - 120% of 16pt. | |
TxtLineSpaceAttribute (MILLIPOINT Value) | |
TxtLineSpaceAttribute constructor. | |
TxtLineSpaceAttribute (FIXED16 Ratio) | |
TxtLineSpaceAttribute constructor. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the TxtLineSpaceAttribute attribute for the given render region. | |
virtual void | Render (RenderRegion *pRegion, BOOL Temp=FALSE) |
Sets the TxtLineSpaceAttribute 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 TxtLineSpaceAttribute & | operator= (TxtLineSpaceAttribute &Attrib) |
Make the Attribute the same as the other. | |
INT32 | operator== (const TxtLineSpaceAttribute &Attrib) |
Comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
BOOL | IsARatio () const |
TxtLineSpaceAttribute constructor. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers default attribute. | |
Public Attributes | |
BOOL | IsRatio:1 |
MILLIPOINT | Value |
FIXED16 | Ratio |
Definition at line 553 of file txtattr.h.
|
Default Constuctor for TxtLineSpaceAttribute The function sets the Value to 19.2pt - 120% of 16pt.
Definition at line 3521 of file txtattr.cpp.
|
|
TxtLineSpaceAttribute constructor.
Definition at line 3544 of file txtattr.cpp.
|
|
TxtLineSpaceAttribute constructor.
Definition at line 3566 of file txtattr.cpp.
|
|
Registers default attribute.
Reimplemented from SimpleCCObject. Definition at line 3737 of file txtattr.cpp. 03738 { 03739 TxtLineSpaceAttribute *pAttr = new TxtLineSpaceAttribute; 03740 if (pAttr==NULL) 03741 // error message has already been set by new 03742 return FALSE; 03743 03744 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(BaseTextClass), 03745 pAttr); 03746 03747 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising TxtLineSpaceAttribute"); 03748 03749 return TRUE; 03750 }
|
|
TxtLineSpaceAttribute constructor.
Definition at line 3588 of file txtattr.cpp. 03589 { 03590 return (IsRatio); 03591 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 3714 of file txtattr.cpp. 03715 { 03716 // This must be at least a FillGeometryAttribute... 03717 ERROR3IF(!pAttr->IsKindOf(CC_RUNTIME_CLASS(TxtLineSpaceAttribute)), 03718 "Different attribute types in TxtLineSpaceAttribute::IsDifferent()"); 03719 03720 // Check they are NOT the same. 03721 return ( !(*((TxtLineSpaceAttribute *)pAttr) == *this) ); 03722 }
|
|
Make a AttrTxtTracking node, see base class.
Reimplemented from AttributeValue. Definition at line 3765 of file txtattr.cpp. 03766 { 03767 // Create new attribute node 03768 AttrTxtLineSpace* pAttr = new AttrTxtLineSpace(); 03769 if (pAttr==NULL) 03770 // error message has already been set by new 03771 return NULL; 03772 03773 // Copy attribute value into the new node. 03774 pAttr->Value.SimpleCopy(this); 03775 03776 // Return the new node 03777 return pAttr; 03778 }
|
|
Make the Attribute the same as the other.
Definition at line 3644 of file txtattr.cpp. 03645 { 03646 Value = Attrib.Value; 03647 Ratio = Attrib.Ratio; 03648 IsRatio = Attrib.IsARatio(); 03649 return *this; 03650 }
|
|
Comparison operator. See NodeAttribute::operator== for a description of why it's required.
Definition at line 3666 of file txtattr.cpp. 03667 { 03668 if (Attrib.IsARatio() == IsARatio()) 03669 { 03670 if (IsRatio) 03671 { 03672 return (Attrib.Ratio == Ratio); 03673 } 03674 else 03675 { 03676 return (Attrib.Value == Value); 03677 } 03678 } 03679 else return FALSE; 03680 }
|
|
Sets the TxtLineSpaceAttribute attribute for the given render region.
Implements AttributeValue. Definition at line 3607 of file txtattr.cpp. 03608 { 03609 pRegion->SetTxtLineSpace(this, Temp); 03610 }
|
|
Restores the TxtLineSpaceAttribute attribute for the given render region.
Implements TxtBaseClassAttribute. Definition at line 3626 of file txtattr.cpp. 03627 { 03628 pRegion->RestoreTxtLineSpace(this, Temp); 03629 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 3693 of file txtattr.cpp. 03694 { 03695 ERROR3IF(!IS_A(pValue, TxtLineSpaceAttribute), 03696 "Invalid Attribute value passed to TxtLineSpaceAttribute::SimpleCopy"); 03697 // We may as well just use our assignment operator. 03698 *this = *((TxtLineSpaceAttribute*)pValue); 03699 }
|
|
|
|
|
|
|