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

Method onGuiDropdownEvent

example-TimeGraph/src/ofApp.cpp:63–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ofApp::onGuiDropdownEvent(ofxDatGuiDropdownEvent e)
64{
65 switch (e.child) {
66 case (int)ofxDatGuiGraph::LINES :
67 m1->setDrawMode(ofxDatGuiGraph::LINES);
68 p1->setDrawMode(ofxDatGuiGraph::LINES);
69 dd->setLabel("drawing mode : lines");
70 break;
71 case (int)ofxDatGuiGraph::FILLED :
72 m1->setDrawMode(ofxDatGuiGraph::FILLED);
73 p1->setDrawMode(ofxDatGuiGraph::FILLED);
74 dd->setLabel("drawing mode : filled");
75 break;
76 case (int)ofxDatGuiGraph::POINTS :
77 m1->setDrawMode(ofxDatGuiGraph::POINTS);
78 p1->setDrawMode(ofxDatGuiGraph::POINTS);
79 dd->setLabel("drawing mode : points");
80 break;
81 case (int)ofxDatGuiGraph::OUTLINE :
82 m1->setDrawMode(ofxDatGuiGraph::OUTLINE);
83 p1->setDrawMode(ofxDatGuiGraph::OUTLINE);
84 dd->setLabel("drawing mode : outline");
85 break;
86 }
87}
88
89void ofApp::update()
90{

Callers

nothing calls this directly

Calls 2

setDrawModeMethod · 0.80
setLabelMethod · 0.80

Tested by

no test coverage detected