Represents the javascript window object.
Public Member Functions | |
Window () | |
Creates a new window object. More... | |
void | postMessage (object message, string targetOrigin) |
Posts a message to this document. More... | |
Css.ComputedStyle | getComputedStyle (HtmlElement element) |
Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain. More... | |
Css.ComputedStyle | getComputedStyle (HtmlElement element, string pseudo) |
Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain. More... | |
string | escapeHTML (string html) |
Escapes the given string, essentially making any HTML it contains literal. More... | |
void | alert (object value) |
Alerts the given message. More... | |
bool | confirm (object request) |
Asks the user to confirm something. More... | |
string | prompt (object request) |
Asks the user for some textual information. More... | |
string | atob (string a) |
Converts a string to base64. More... | |
string | btoa (string b) |
Converts base64 to a string. More... | |
void | clearInterval (UITimer timer) |
Clears intervals. More... | |
UITimer | setInterval (Nitro.DynamicMethod< Nitro.Void > method, int ms) |
Sets an interval. More... | |
UITimer | setTimeout (Nitro.DynamicMethod< Nitro.Void > method, int ms) |
Sets a timeout. More... | |
Selection | getSelection () |
Creates a range. More... | |
MediaQueryList | matchMedia (string mediaQuery) |
Matches the given CSS media string. More... | |
Public Attributes | |
Window | top |
The very top window for this UI. More... | |
Window | self |
Represents 'this' object. Provided for javascript compatability. More... | |
UIEvent | Event |
The latest event to have occured. More... | |
Window | parent |
The parent window of this one. More... | |
HtmlElement | iframe |
The iframe element that this window is in. More... | |
Package Functions | |
void | SetDocument (HtmlDocument doc) |
Sets the given document to this window. More... | |
void | Ready () |
Called when the document is ready. Triggers the various loaded events. More... | |
Package Attributes | |
System.Threading.Thread | BlockableThread |
The thread that can be blocked in this window. It's the main JS thread. More... | |
BlockingDialogue | BlockingDialogue |
The currently open blocking dialogue in this window. More... | |
Selection | CurrentSelection |
The current selection. Use the standard getSelection() method instead. More... | |
Properties | |
HtmlDocument | document [get] |
The document for the given window. More... | |
string | status [get, set] |
The status text. More... | |
bool | isClosed [get] |
Is this window closed? More... | |
Location | location [get, set] |
The location of the contained document. More... | |
string | name [get, set] |
This windows name. More... | |
Window | opener [get] |
The window that opened this one. More... | |
HtmlElement | frameElement [get] |
The frame element that this window is in. More... | |
float | devicePixelRatio [get] |
The device's DPI / ScreenInfo.CssPixelDPI. More... | |
int | innerWidth [get] |
Screen width. More... | |
int | innerHeight [get] |
Screen height. More... | |
int | pageXOffset [get] |
The scroll amount on X. More... | |
int | pageYOffset [get] |
The scroll amount on Y. More... | |
int | scrollMaxX [get] |
The max scroll amount on X. More... | |
int | scrollMaxY [get] |
The max scroll amount on Y. More... | |
int | scrollX [get] |
The scroll amount on X. More... | |
int | scrollY [get] |
The scroll amount on Y. More... | |
int | screenX [get] |
Screen x offset (closest we can get in Unity!) More... | |
int | screenY [get] |
Screen y offset (closest we can get in Unity!) More... | |
int | outerWidth [get] |
Screen width (closest we can get in Unity!) More... | |
int | outerHeight [get] |
Screen height (closest we can get in Unity!) More... | |
PopStateEventDelegate | onpopstate [get, set] |
History pop event. More... | |
FocusEventDelegate | onblur [get, set] |
Called when an element is no longer focused. More... | |
FocusEventDelegate | onfocusin [get, set] |
Called just before this element is focused. More... | |
FocusEventDelegate | onfocusout [get, set] |
Called just before this element is blurred. More... | |
FocusEventDelegate | onfocus [get, set] |
Called when an element is focused. More... | |
MouseEventDelegate | onclick [get, set] |
Called when an element is clicked. More... | |
MouseEventDelegate | onmousedown [get, set] |
Called when an element is clicked (mouse down). More... | |
MouseEventDelegate | onmouseup [get, set] |
Called when an element is clicked (mouse up). More... | |
UIEventDelegate | onload [get, set] |
Called when the document is now loaded. More... | |
BeforeUnloadEventDelegate | onbeforeunload [get, set] |
Called when the document is about to be unloaded. More... | |
HashChangeEventDelegate | onhashchange [get, set] |
Called when the hash changes. More... | |
DomEventDelegate | onlanguagechange [get, set] |
Called when the language changes. More... | |
DomEventDelegate | onreadystatechange [get, set] |
Called when the document ready state changes. More... | |
FormEventDelegate | onreset [get, set] |
Called when a form is reset. More... | |
FormEventDelegate | onsubmit [get, set] |
Called when a form is submitted. More... | |
History | history [get] |
The window.history API. Read only. More... | |
Navigator | navigator [get] |
Information about the navigator. More... | |
Private Attributes | |
string | name_ ="" |
This windows name. More... | |
string | status_ ="" |
This windows status. More... | |
HtmlDocument | document_ |
The document for the given window. More... | |
History | history_ |
Instance of the history API for this window. Note that this is never null. More... | |
Navigator | navigator_ |
|
inline |
Creates a new window object.
|
inline |
Alerts the given message.
|
inline |
Converts a string to base64.
|
inline |
Converts base64 to a string.
|
inline |
Clears intervals.
|
inline |
Asks the user to confirm something.
|
inline |
Escapes the given string, essentially making any HTML it contains literal.
|
inline |
Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain.
element | The element to compute the style for. |
|
inline |
Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain.
element | The element to compute the style for. |
pseudo | The optional pseudo selector to use. |
|
inline |
Creates a range.
|
inline |
Matches the given CSS media string.
|
inline |
Posts a message to this document.
|
inline |
Asks the user for some textual information.
|
inlinepackage |
Called when the document is ready. Triggers the various loaded events.
|
inlinepackage |
Sets the given document to this window.
|
inline |
Sets an interval.
|
inline |
Sets a timeout.
|
package |
The thread that can be blocked in this window. It's the main JS thread.
|
package |
The currently open blocking dialogue in this window.
|
package |
The current selection. Use the standard getSelection() method instead.
|
private |
The document for the given window.
UIEvent PowerUI.Window.Event |
The latest event to have occured.
|
private |
Instance of the history API for this window. Note that this is never null.
HtmlElement PowerUI.Window.iframe |
The iframe element that this window is in.
|
private |
This windows name.
|
private |
Window PowerUI.Window.parent |
The parent window of this one.
Window PowerUI.Window.self |
Represents 'this' object. Provided for javascript compatability.
|
private |
This windows status.
|
get |
The device's DPI / ScreenInfo.CssPixelDPI.
|
get |
The document for the given window.
|
get |
The frame element that this window is in.
|
get |
The window.history API. Read only.
|
get |
Screen height.
|
get |
Screen width.
|
get |
Is this window closed?
|
getset |
The location of the contained document.
|
getset |
This windows name.
|
get |
Information about the navigator.
|
getset |
Called when the document is about to be unloaded.
|
getset |
Called when an element is no longer focused.
|
getset |
Called when an element is clicked.
|
getset |
Called when an element is focused.
|
getset |
Called just before this element is focused.
|
getset |
Called just before this element is blurred.
|
getset |
Called when the hash changes.
|
getset |
Called when the language changes.
|
getset |
Called when the document is now loaded.
|
getset |
Called when an element is clicked (mouse down).
|
getset |
Called when an element is clicked (mouse up).
|
getset |
History pop event.
|
getset |
Called when the document ready state changes.
|
getset |
Called when a form is reset.
|
getset |
Called when a form is submitted.
|
get |
The window that opened this one.
|
get |
Screen height (closest we can get in Unity!)
|
get |
Screen width (closest we can get in Unity!)
|
get |
The scroll amount on X.
|
get |
The scroll amount on Y.
|
get |
Screen x offset (closest we can get in Unity!)
|
get |
Screen y offset (closest we can get in Unity!)
|
get |
The max scroll amount on X.
|
get |
The max scroll amount on Y.
|
get |
The scroll amount on X.
|
get |
The scroll amount on Y.
|
getset |
The status text.