class flixel.system.debug.Window extends Sprite

Available on all platforms

A generic, Flash-based window class, created for use in FlxDebugger.

Class Fields

static var BG_COLOR:Int

The background color of the window.

static var HEADER_ALPHA:Float

static var HEADER_COLOR:Int

static var HEADER_HEIGHT:Int

Instance Fields

function new(Title:String, ?Icon:BitmapData = null, ?Width:Float = 0, ?Height:Float = 0, ?Resizable:Bool = true, ?Bounds:Rectangle = null, ?Closable:Bool = false):Void

Creates a new window object. This Flash-based class is mainly (only?) used by FlxDebugger. * *

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.

function bound():Void

Keep the window within the pre-specified bounding rectangle.

function close():Void

function destroy():Void

Clean up memory.

function reposition(X:Float, Y:Float):Void

Change the position of the window. Subject to pre-specified bounding rectangles. * *

X

Desired X position of top left corner of the window. *

Y

Desired Y position of top left corner of the window.

function resize(Width:Float, Height:Float):Void

Resize the window. Subject to pre-specified minimums, maximums, and bounding rectangles. * *

Width

How wide to make the window. *

Height

How tall to make the window.

function update():Void

function updateBounds(Bounds:Rectangle):Void