Mercurial > hg > screen-ui
diff src/Voice.h @ 22:4dcc4312b5fa
Bit of a tidy up, adding text display, added full screen toggle and window resize handler.
author | samer |
---|---|
date | Thu, 02 Feb 2012 18:17:24 +0000 |
parents | 9a414ea6880d |
children | 460c05dd74d0 |
line wrap: on
line diff
--- a/src/Voice.h Wed Feb 01 16:17:32 2012 +0000 +++ b/src/Voice.h Thu Feb 02 18:17:24 2012 +0000 @@ -9,8 +9,7 @@ #include "ofMain.h" class Voice { public: - Voice(int id, int x, int y); - Voice() {}; + Voice(int id); enum status { clear, @@ -20,6 +19,7 @@ }; bool isInVoice(int x, int y) { return (ofDist(x, y, posx, posy)<=radius); }; + void setPos(int x, int y) { posx=x; posy=y; } double louder(); double quieter(); void draw();