MCPcopy Create free account
hub / github.com/braitsch/ofxDatGui / onAddNewItemButtonClick

Method onAddNewItemButtonClick

example-ScrollView/src/ofApp.cpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void ofApp::onAddNewItemButtonClick(ofxDatGuiButtonEvent e)
58{
59 view->add("item " + ofToString(view->getNumItems() + 1));
60 addItem->setLabel("click to add item - " + ofToString(view->getNumItems()) + " items");
61}
62
63void ofApp::onClearAllButtonClick(ofxDatGuiButtonEvent e)
64{

Callers

nothing calls this directly

Calls 3

getNumItemsMethod · 0.80
setLabelMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected