Browse Source

Add public selected variable

master
Krisjanis Rijnieks 11 years ago
parent
commit
2b83c5a3a7
  1. 1
      src/ofxBaseJoint.cpp
  2. 3
      src/ofxBaseJoint.h

1
src/ofxBaseJoint.cpp

@ -56,6 +56,7 @@ void ofxBaseJoint::setDefaultProperties()
position = ofVec2f(20.0f, 20.0f); position = ofVec2f(20.0f, 20.0f);
clickDistance = ofVec2f(0.0f, 0.0f); clickDistance = ofVec2f(0.0f, 0.0f);
dragging = false; dragging = false;
selected = false;
} }
void ofxBaseJoint::registerAppEvents() void ofxBaseJoint::registerAppEvents()

3
src/ofxBaseJoint.h

@ -8,8 +8,10 @@ public:
ofxBaseJoint(); ofxBaseJoint();
~ofxBaseJoint(); ~ofxBaseJoint();
ofVec2f position;
bool enabled; bool enabled;
bool visible; bool visible;
bool selected;
void mousePressed(ofMouseEventArgs& args); void mousePressed(ofMouseEventArgs& args);
void mouseReleased(ofMouseEventArgs& args); void mouseReleased(ofMouseEventArgs& args);
@ -24,7 +26,6 @@ public:
protected: protected:
ofColor fillColor; ofColor fillColor;
ofColor strokeColor; ofColor strokeColor;
ofVec2f position;
ofVec2f clickDistance; ofVec2f clickDistance;
bool dragging; bool dragging;

Loading…
Cancel
Save