rezaali / ofxUI

[DEPRECATED] UI Addon for openFrameworks
http://www.syedrezaali.com/#/ofxui-project-showcase/
518 stars 202 forks source link

Outline for each widget #254

Open nkint opened 9 years ago

nkint commented 9 years ago

Hi! I'm facing with a situation where I have to manually set properties of each widget added to the main canvas gui:

    w= gui->addSlider("BACKGROUND",0.0,255.0,100.0);
    w->setDrawOutline(true);
    w->setColorOutline(ofColor(255));

    w = gui->addToggle("FULLSCREEN", false);
    w->setDrawOutline(true);
    w->setColorOutline(ofColor(255));

Because gui->setDrawOutline(true); set only the outline of the canvas. It is a lot of repeating code.. any hints on how doing it automatically?