class Window
package flixel.system.debug
extends Sprite › DisplayObjectContainer › InteractiveObject › DisplayObject › EventDispatcher
extended by Console, Interaction, BitmapLog, Log, Stats, WatchBase
A generic, Flash-based window class, created for use in FlxDebugger.
Static variables
Constructor
new(title:String, ?icon:BitmapData, width:Float = 0.0, height:Float = 0.0, resizable:Bool = true, ?bounds: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. |