[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] decorator shortcut



Can we add these? I would like to use these in the new gui intro.



+ SCWindow {   // shortcut for FlowLayout

    addFlowLayout { |margin, gap| view.decorator_( FlowLayout(
view.bounds, margin, gap ) ); }
}


+ SCCompositeView{   // shortcut for FlowLayout

    addFlowLayout { |margin, gap| this.decorator_( FlowLayout(
this.bounds, margin, gap ) ); }
   
    nextLine{ if(this.decorator==FlowLayout){this.decorator.nextLine};}
}




jostM

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/