void ofxUITextArea::init(string _name, string _textstring, float w, float h, float x, float y, int _size) { initRect(x,y,w,h); setName(_name); setKind(OFX_UI_WIDGET_TEXTAREA); textstring = _textstring; setDrawFill(true); setDrawBack(false); drawShadow = false; drawLabel = false; label = new ofxUILabel(padding*2.0,0,(name+" LABEL"), _size); addEmbeddedWidget(label); label->setVisible(drawLabel); if(h == 0) { autoSize = true; } else { autoSize = false; } }
ofxUICanvas::ofxUICanvas(ofxUICanvas *sharedResources) { float w = ofGetWidth(); float h = ofGetHeight(); rect = new ofxUIRectangle(0,0,w,h); init(w,h, sharedResources); setDrawBack(false); }
ofxUICanvas::ofxUICanvas() { float w = ofGetWidth(); float h = ofGetHeight(); rect = new ofxUIRectangle(0,0,w,h); init(w,h); setDrawBack(false); }
//------------------------------------------------------------------------------ // setSlotDrawBack() - sets our draw background flag //------------------------------------------------------------------------------ bool SpdLines::setSlotDrawBack(const Basic::Number* const newDB) { bool ok = false; if (newDB != 0) ok = setDrawBack(newDB->getBoolean()); return ok; }