コード例 #1
0
InfoLine* InfoPage::createLine(String text) {
	InfoLine* el =  new InfoLine(text, 1);
	el->setParent(this);
	el->setDisplay(&*display);
	addElemenet(el);
	return el;
}
コード例 #2
0
void InfoPage::print() {
	display->clearDisplay();
	display->setCursor(0,0);
	for(int i=0; i< mChildren.size(); i++){
		InfoLine* child = mChildren.get(i);
		child->print();
	}
}
コード例 #3
0
Vector<paramStruct*> InfoPage::getAllParamsForId(String id) {
	Vector<paramStruct*> ret;
	for (int i = 0; i < mChildren.size(); ++i) {
		InfoLine* l = mChildren.elementAt(i);
		paramStruct* p = l->getParamById(id);
		if ( p != NULL) {
			ret.add(p);
		}
	}

	return ret;
}
コード例 #4
0
ファイル: InfoScreens.cpp プロジェクト: alon24/InfoScreens
void InfoPage::print() {
	display->clearDisplay();
//		debugf("print,3.2 ");
	display->setCursor(0,0);
	for(int i=0; i< mChildren.size(); i++){
//			debugf("print,3.3 - %i ", i);
		InfoLine* child = mChildren.get(i);
		child->print();
//			debugf("print,3.4 - %i ", i);
	}
//		debugf("print,3.6 ");
}