#include <fillval.h>
Inheritance diagram for FillEffectAttribute:
Public Member Functions | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute. | |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
Sets the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
virtual BOOL | IsDifferent (AttributeValue *) |
See AttributeValue::IsDifferent. | |
virtual FillEffectAttribute & | operator= (FillEffectAttribute &Attrib) |
Make this effect the same as another. | |
virtual INT32 | operator== (const FillEffectAttribute &Attrib) |
See if two effects are the same. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers fill effect attribute, and provides a default attribute to give standard RGB fade between two colours. |
Definition at line 1695 of file fillval.h.
|
Registers fill effect attribute, and provides a default attribute to give standard RGB fade between two colours.
Reimplemented from SimpleCCObject. Definition at line 8131 of file fillval.cpp. 08132 { 08133 // Default to simple RGB fade effect (ignored for flat fills, obviously) 08134 FillEffectAttribute *pAttr = new FillEffectFadeAttribute; 08135 if (pAttr==NULL) 08136 // error message has already been set by new 08137 return FALSE; 08138 08139 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 08140 pAttr); 08141 08142 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising FillEffectAttribute"); 08143 ERROR2IF(ID != ATTR_FILLEFFECT, FALSE, "Incorrect ID for FillEffectAttribute"); 08144 08145 return TRUE; 08146 }
|
|
See AttributeValue::IsDifferent.
Reimplemented from AttributeValue. Definition at line 8216 of file fillval.cpp. 08217 { 08218 return (pVal->GetRuntimeClass() != GetRuntimeClass()); 08219 }
|
|
Make this effect the same as another.
Definition at line 8232 of file fillval.cpp.
|
|
See if two effects are the same.
Definition at line 8248 of file fillval.cpp. 08249 { 08250 return (Attrib.GetRuntimeClass() == GetRuntimeClass()); 08251 }
|
|
Sets the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute.
Implements AttributeValue. Definition at line 8163 of file fillval.cpp. 08164 { 08165 pRegion->SetFillEffect(this, Temp); 08166 }
|
|
Restores the fill type attribute for the given render region. i.e. all paths filled will now be filled with this fill attribute.
Implements AttributeValue. Definition at line 8185 of file fillval.cpp. 08186 { 08187 pRegion->RestoreFillEffect(this, Temp); 08188 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 8201 of file fillval.cpp.
|