Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @:generic
- public function showWindow<@:const T:Constructible<Void->Void>>():Void {
- for (index in 0...numChildren) {
- var child = getChildAt(index);
- if (Std.is(child, T)) {
- selectWindow(cast(child, Window));
- return;
- }
- }
- cast(new T(), Window).show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement