Esempio n. 1
0
/*virtual*/ void SkProgressBarView::onInflate(const SkDOM& dom, const SkDOM::Node* node)
{
    this->INHERITED::onInflate(dom, node);
    int32_t temp;
    if (dom.findS32(node, "max", &temp))
        this->setMax(temp);
    if (dom.findS32(node, "progress", &temp))
        this->setProgress(temp);
}
Esempio n. 2
0
/* virtual */ void SkScrollBarView::onInflate(const SkDOM& dom, const SkDOM::Node* node)
{
	this->INHERITED::onInflate(dom, node);
	
	int32_t value;
	if (dom.findS32(node, "total", &value))
		this->setTotal(value);
	if (dom.findS32(node, "shown", &value))
		this->setShown(value);
}