| Package | com.hippohx |
| Class | public class Window |
| Inheritance | Window HaxeBackendListener flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
|
Window()
Do NOT call this constructor, please use getInstance method instead.
| Window | ||
![]() |
getHaxeBackendId():String
Returns HAXE_BACKEND API identifier.
| HaxeBackendListener | |
|
getHeight():int
Returns window's height.
| Window | ||
|
[static]
Use this method to retrieve an instance of the class, do NOT call the constructor directly.
| Window | ||
|
getLeft():int
Returns window's left position.
| Window | ||
|
getTop():int
Returns window's top position.
| Window | ||
|
getWidth():int
Returns window's width.
| Window | ||
|
maximize():void
Maximizes the window.
| Window | ||
|
minimize():void
Minimizes the window.
| Window | ||
|
setPosition(left:int, top:int):void
Sets window's position from the top-left corner.
| Window | ||
|
setSize(width:uint, height:uint):void
Set the size of the window.
| Window | ||
|
setWindowTitle(title:String):void
Sets window's title.
| Window | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Subscribe to this event if you want to get notified when a user drags and drops files to your application. | Window | |||
| Subscribe to this event if you want to get notified when a user right clicks on you application. | Window | |||
| Constant | Defined by | ||
|---|---|---|---|
| ONFILESDROPPED : String = "onFilesDropped" [static]
This constant defines the
type of the com.hippohx.events.evOnFilesDropped object, use it subscribe to that event. | Window | ||
| ONRIGHTCLICK : String = "onRightClick" [static]
This constant defines the
type of the com.hippohx.events.evOnRightClick object, use it subscribe to that event. | Window | ||
| Window | () | constructor |
public function Window()Do NOT call this constructor, please use getInstance method instead.
See also
| getHeight | () | method |
public function getHeight():intReturns window's height.
Returnsint |
| getInstance | () | method |
public static function getInstance():WindowUse this method to retrieve an instance of the class, do NOT call the constructor directly. Note that you don't need to store the instance to access its methods, you can simply do this:
Window.getInstance().minimize();
Window |
| getLeft | () | method |
public function getLeft():intReturns window's left position.
Returnsint |
| getTop | () | method |
public function getTop():intReturns window's top position.
Returnsint |
| getWidth | () | method |
public function getWidth():intReturns window's width.
Returnsint |
| maximize | () | method |
public function maximize():voidMaximizes the window.
| minimize | () | method |
public function minimize():voidMinimizes the window.
| setPosition | () | method |
public function setPosition(left:int, top:int):voidSets window's position from the top-left corner.
Parametersleft:int |
|
top:int |
| setSize | () | method |
public function setSize(width:uint, height:uint):voidSet the size of the window.
Parameterswidth:uint — New window width.
|
|
height:uint — New window height.
|
| setWindowTitle | () | method |
public function setWindowTitle(title:String):voidSets window's title.
Parameterstitle:String |
| onFilesDropped | event |
com.hippohx.events.evOnFilesDropped
com.hippohx.Window.ONFILESDROPPED
Subscribe to this event if you want to get notified when a user drags and drops files to your application.
This constant defines the type of the com.hippohx.events.evOnFilesDropped object, use it subscribe to that event.
| onRightClick | event |
com.hippohx.events.evOnRightClick
com.hippohx.Window.ONRIGHTCLICK
Subscribe to this event if you want to get notified when a user right clicks on you application.
This constant defines the type of the com.hippohx.events.evOnRightClick object, use it subscribe to that event.
| ONFILESDROPPED | constant |
public static const ONFILESDROPPED:String = "onFilesDropped"
This constant defines the type of the com.hippohx.events.evOnFilesDropped object, use it subscribe to that event.
See also
| ONRIGHTCLICK | constant |
public static const ONRIGHTCLICK:String = "onRightClick"
This constant defines the type of the com.hippohx.events.evOnRightClick object, use it subscribe to that event.
See also