#include <fillval.h>
Inheritance diagram for StrokeColourAttribute:
Public Member Functions | |
StrokeColourAttribute () | |
StrokeColourAttribute (DocColour &NewColour) | |
Sets the line colour for this attribute. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrStrokeColour node from this fill colour attribute. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour. | |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
Sets the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers line colour attribute, and provides a default attribute to give black lines. |
Definition at line 1861 of file fillval.h.
|
Definition at line 1865 of file fillval.h.
|
|
Sets the line colour for this attribute.
Definition at line 8583 of file fillval.cpp. 08584 { 08585 SetStartColour(&NewCol); 08586 }
|
|
Registers line colour attribute, and provides a default attribute to give black lines.
Reimplemented from ColourFillAttribute. Definition at line 8688 of file fillval.cpp. 08689 { 08690 // Default to black lines 08691 StrokeColourAttribute *pAttr = new StrokeColourAttribute; 08692 if (pAttr == NULL) 08693 return FALSE; 08694 08695 AttributeManager::FindDefaultColour( ColourManager::GetCurrentColourList(), 08696 _R(IDS_BLACKNAME), &pAttr->Colour ); 08697 08698 // pAttr->Colour = AttributeManager::DefaultBlack; 08699 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 08700 pAttr); 08701 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising StrokeColourAttribute"); 08702 ERROR2IF(ID != ATTR_STROKECOLOUR, FALSE, "Incorrect ID for StrokeColourAttribute"); 08703 08704 return TRUE; 08705 }
|
|
Make a AttrStrokeColour node from this fill colour attribute.
Reimplemented from AttributeValue. Definition at line 8643 of file fillval.cpp. 08644 { 08645 // Create new attribute node 08646 AttrStrokeColour *pAttr = new AttrStrokeColour(); 08647 08648 // Copy attribute value into the new node. 08649 pAttr->Value.SimpleCopy(this); 08650 08651 // Return the new node 08652 return pAttr; 08653 }
|
|
Sets the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour.
Reimplemented from ColourFillAttribute. Definition at line 8603 of file fillval.cpp. 08604 { 08605 pRegion->SetLineColour(this, Temp); 08606 }
|
|
Restores the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour.
Reimplemented from ColourFillAttribute. Definition at line 8625 of file fillval.cpp. 08626 { 08627 pRegion->RestoreLineColour(this, Temp); 08628 }
|
|
See AttributeValue::SimpleCopy.
Reimplemented from FillGeometryAttribute. Definition at line 8669 of file fillval.cpp. 08670 { 08671 Colour = ((StrokeColourAttribute *) pValue)->Colour; 08672 }
|