rezaali/ofxUI — pull request #39 by camilosw (2012-08-04 18:54:57+00:00)
Title: Added addSpacer method to ofxUICanvas

Hi Reza

I started with the most simple control to show you the way I conceived the compact syntax. I will modifiy all widgets constructors, so only one of them are needed. This is necesary, because the addWatheverWidget methods that I will add to ofxUICanvas will call only one constructor for simplicity, instead of add multiple methods to ofxUICanvas per constructor. I will put all the required arguments first and next the optional arguments with default parameters. This will be more clear when I add the next widget to the compact syntax.

I'm using the code of my previous compact syntax attemp in multiple projects and this is really nice to type less code. I also liked the variable binding that you introduced, it reduced the code dramatically.