예제 #1
0
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;
    }
}
예제 #2
0
ofxUICanvas::ofxUICanvas(ofxUICanvas *sharedResources) 
{
    float w = ofGetWidth(); 
    float h = ofGetHeight(); 
    rect = new ofxUIRectangle(0,0,w,h); 
    init(w,h, sharedResources);
    setDrawBack(false); 
}
예제 #3
0
ofxUICanvas::ofxUICanvas() 
{
    float w = ofGetWidth(); 
    float h = ofGetHeight(); 
    rect = new ofxUIRectangle(0,0,w,h); 
    init(w,h);
    setDrawBack(false); 
}
예제 #4
0
//------------------------------------------------------------------------------
// 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;
}