void MkWindowThemedNode::SaveObject(MkDataNode& node) const { MkVisualPatternNode::SaveObject(node); // theme name node.SetDataEx(ObjKey_ThemeName, m_ThemeName, 0); // component if ((m_ComponentType > MkWindowThemeData::eCT_None) && (m_ComponentType < MkWindowThemeData::eCT_RegularMax)) { node.SetDataEx(ObjKey_ComponentType, MkWindowThemeData::ComponentTypeName[m_ComponentType], 0); } else if (m_ComponentType == MkWindowThemeData::eCT_CustomForm) { node.SetDataEx(ObjKey_CustomFormName, m_CustomFormName, 0); } // use shadow node.SetData(ObjKey_UseShadow, m_UseShadow, 0); // client size node.SetDataEx(ObjKey_ClientSize, m_ClientRect.size, 0); // frame type if ((m_FrameType > MkWindowThemeData::eFT_None) && (m_FrameType < MkWindowThemeData::eFT_Max)) { node.SetDataEx(ObjKey_FrameType, MkWindowThemeData::FrameTypeName[m_FrameType], 0); } }
void MkLineShape::SaveObject(MkDataNode& node) const { // attribute node.SetData(ObjKey_Attribute, m_Attribute.m_Field, 0); // local vertices node.SetDataEx(ObjKey_LocalVertices, m_LocalVertices); // local depth node.SetData(ObjKey_LocalDepth, m_LocalDepth, 0); // indice node.SetData(ObjKey_Indice, m_Indices); // color node.SetData(ObjKey_Color, m_Color.ConvertToD3DCOLOR(), 0); }