Available on cs, flash
SwitchCore
@:value({ def : -1 })new(objects:Array<T>, def:Int = -1)
active:Int
read onlyonClose:Signal2<T, UInt>
read onlyonOpen:Signal2<T, UInt>
inlinecloseActive():Void
inlineinit():Void
inlineopen(obj:T):Void
set_active(id:Int):Int