Example #1
0
//构造函数
CSkinListAttribute::CSkinListAttribute() : CSkinAttribute(TEXT("CSkinListCtrl"))
{
	//初始化变量
	m_crHeadText=DEF_HEADTEXT_COLOR;

	//注册属性
	RegisterAttribute(SKIN_LIST_CRHEADTEXT,&m_crHeadText,false);
	RegisterAttribute(SKIN_LIST_STRIMAGEHEADPATH,&m_strImageHeadPath,false);
}
Example #2
0
//构造函数
CSkinButtonAttribute::CSkinButtonAttribute() : CSkinAttribute(TEXT("CSkinButton"))
{
	//初始化变量
	m_crTextColor=DEF_TEXT_COLOR;

	//注册属性
	RegisterAttribute(SKIN_BUTTON_CRTEXTCOLOR,&m_crTextColor,false);
	RegisterAttribute(SKIN_BUTTON_STRIMAGEPATH,&m_strImagePath,false);

	return;
}
Example #3
0
void Octree::RegisterObject()
{
    RegisterFactory<Octree>();
    CopyBaseAttributes<Octree, Node>();
    RegisterRefAttribute("boundingBox", &Octree::BoundingBoxAttr, &Octree::SetBoundingBoxAttr);
    RegisterAttribute("numLevels", &Octree::NumLevelsAttr, &Octree::SetNumLevelsAttr);
}
Example #4
0
//构造函数
CSkinEditAttribute::CSkinEditAttribute() : CSkinAttribute(TEXT("CSkinEdit"))
{
	//初始化变量
	m_crFocusTX=DEF_FOCUSTX_COLOR;
	m_crFocusBK=DEF_FOCUSBK_COLOR;
	m_crNoFocusTX=DEF_NOFOCUSTX_COLOR;
	m_crNoFocusBK=DEF_NOFOCUSBK_COLOR;
	m_crDisFocusTK=DEF_DISFOCUSTK_COLOR;
	m_crDisFocusBK=DEF_DISFOCUSBK_COLOR;

	//注册属性
	RegisterAttribute(SKIN_EDIT_CRFOCUSTX,&m_crFocusTX,false);
	RegisterAttribute(SKIN_EDIT_CRFOCUSBK,&m_crFocusBK,false);
	RegisterAttribute(SKIN_EDIT_CRNOFOCUSTX,&m_crNoFocusTX,false);
	RegisterAttribute(SKIN_EDIT_CRNOFOCUSBK,&m_crNoFocusBK,false);
	RegisterAttribute(SKIN_EDIT_CRDISFOCUSTX,&m_crDisFocusTK,false);
	RegisterAttribute(SKIN_EDIT_CRDISFOCUSBK,&m_crDisFocusBK,false);

	return;
}
Example #5
0
void OctreeNode::RegisterObject()
{
    CopyBaseAttributes<OctreeNode, SpatialNode>();
    RegisterAttribute("castShadows", &OctreeNode::CastShadows, &OctreeNode::SetCastShadows, false);
}