class Window
package flixel.system.debug
extends Sprite › DisplayObjectContainer › InteractiveObject › DisplayObject › EventDispatcher
extended by Console, Interaction, BitmapLog, Log, Stats, Watch
A generic, Flash-based window class, created for use in FlxDebugger.
Static variables
Constructor
new(Title:String, ?Icon:BitmapData, Width:Float = 0, Height:Float = 0, Resizable:Bool = true, ?Bounds:Null<Rectangle>, Closable:Bool = false, AlwaysOnTop:Bool = true)
Creates a new window object. This Flash-based class is mainly (only?) used by FlxDebugger.
Parameters:
Title | The name of the window, displayed in the header bar. |
---|---|
Icon | The icon to use for the window header. |
Width | The initial width of the window. |
Height | The initial height of the window. |
Resizable | Whether you can change the size of the window with a drag handle. |
Bounds | A rectangle indicating the valid screen area for the window. |
Closable | Whether this window has a close button that removes the window. |
AlwaysOnTop | Whether this window should be forcibly put in front of any other window when clicked. |
Variables
Methods
reposition(X:Float, Y:Float):Void
Change the position of the window. Subject to pre-specified bounding rectangles.
Parameters:
X | Desired X position of top left corner of the window. |
---|---|
Y | Desired Y position of top left corner of the window. |