SHARE
TWEET

Untitled

a guest Sep 18th, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @:generic
  2.     public function showWindow<@:const T:Constructible<Void->Void>>():Void {
  3.         for (index in 0...numChildren) {
  4.             var child = getChildAt(index);
  5.             if (Std.is(child, T)) {
  6.                 selectWindow(cast(child, Window));
  7.                 return;
  8.             }
  9.         }
  10.  
  11.         cast(new T(), Window).show();
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top