Added idle event to framework
Fixed warning (float vs int)
Added a static cast method to each widget type.
Typically used to statically downcast widget search result