3#include <core/SGradient.h>
24 pGradient->
SetName(xmlChild.name());
Gradient Pool Management.
bool GetKeyObject(const SStringW &key, SAutoRefPtr< IGradient > &obj) const
bool AddKeyObject(const SStringW &key, const SAutoRefPtr< IGradient > &obj)
bool HasKey(const SStringW &key) const
Gradient management class.
BOOL Init(SXmlNode xmlNode)
Initializes the gradient pool from an XML node.
IGradient * GetGradient(const SStringW &strName)
Retrieves the gradient object by its name.
void SetName(LPCWSTR pszName) OVERRIDE
Sets the object's name.
BOOL InitFromXml(IXmlNode *pXmlNode) OVERRIDE
Initializes the object from an XML node.
A class representing an ASCII string.
Class representing an XML node.
SXmlNode next_sibling() const
Gets the next sibling node in the children list of the parent node.
SXmlNode first_child() const
Gets the first child node of the node.
long Release() override
Decrements the reference count and deletes the object if the count reaches zero.