Exemplo 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);
}
Exemplo 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);
}