Last active
December 14, 2015 06:59
-
-
Save dackdel/5047245 to your computer and use it in GitHub Desktop.
apWidget for Map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import apwidgets.*; | |
APWidgetContainer widgetContainer; | |
APToggleButton captureButton; | |
APButton resetButton; | |
void setup(){ | |
widgetContainer = new APWidgetContainer(this); | |
captureButton = new APToggleButton(10, 10, "Capture"); | |
resetButton = new APButton(80, 80, "Reset"); | |
widgetContainer.addWidget(captureButton); | |
widgetContainer.addWidget(resetButton); | |
} | |
void draw(){ | |
background(0); | |
} | |
void onClickWidget(APWidget widget){ | |
if(widget == captureButton){ | |
} | |
else if(widget == resetButton){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment