PowerUI.JSScreen Class Reference

Detailed Description

The JS DOM 'screen' object.

Inheritance diagram for PowerUI.JSScreen:
Dom.EventTarget Dom.IEventTarget

Public Member Functions

bool lockOrientation (string orientation)
 Locks the orientation. More...
 
void unlockOrientation ()
 Unlocks the orientation. More...
 
- Public Member Functions inherited from Dom.EventTarget
void ClearEvents ()
 Clears all events on this document. More...
 
bool dispatchEvent (Event e)
 Runs an event of the given name. More...
 
void addEventListener (string name, EventListener listener)
 Adds an event listener to this document. More...
 
void addEventListener (string name, EventListener listener, bool useCapture)
 Adds an event listener to this document. More...
 
void removeEventListener (string name, object evtHandlerInternal)
 Removes an event listener from this document. More...
 
void addEventListener (string name, AnimationEventDelegate method)
 
void addEventListener (string name, AudioProcessingEventDelegate method)
 
void addEventListener (string name, BeforeInputEventDelegate method)
 
void addEventListener (string name, BeforeUnloadEventDelegate method)
 
void addEventListener (string name, BlobEventDelegate method)
 
void addEventListener (string name, ClipboardEventDelegate method)
 
void addEventListener (string name, CloseEventDelegate method)
 
void addEventListener (string name, CompositionEventDelegate method)
 
void addEventListener (string name, CustomEventDelegate method)
 
void addEventListener (string name, CSSFontFaceLoadEventDelegate method)
 
void addEventListener (string name, DeviceLightEventDelegate method)
 
void addEventListener (string name, DeviceMotionEventDelegate method)
 
void addEventListener (string name, DeviceOrientationEventDelegate method)
 
void addEventListener (string name, DeviceProximityEventDelegate method)
 
void addEventListener (string name, DomEventDelegate method)
 
void addEventListener (string name, DOMTransactionEventDelegate method)
 
void addEventListener (string name, DragEventDelegate method)
 
void addEventListener (string name, EditingBeforeInputEventDelegate method)
 
void addEventListener (string name, ErrorEventDelegate method)
 
void addEventListener (string name, FetchEventDelegate method)
 
void addEventListener (string name, FocusEventDelegate method)
 
void addEventListener (string name, GamepadEventDelegate method)
 
void addEventListener (string name, HashChangeEventDelegate method)
 
void addEventListener (string name, IDBVersionChangeEventDelegate method)
 
void addEventListener (string name, InputEventDelegate method)
 
void addEventListener (string name, KeyboardEventDelegate method)
 
void addEventListener (string name, MediaStreamEventDelegate method)
 
void addEventListener (string name, MessageEventDelegate method)
 
void addEventListener (string name, MouseEventDelegate method)
 
void addEventListener (string name, MutationEventDelegate method)
 
void addEventListener (string name, OfflineAudioCompletionEventDelegate method)
 
void addEventListener (string name, PageTransitionEventDelegate method)
 
void addEventListener (string name, PointerEventDelegate method)
 
void addEventListener (string name, PopStateEventDelegate method)
 
void addEventListener (string name, ProgressEventDelegate method)
 
void addEventListener (string name, RelatedEventDelegate method)
 
void addEventListener (string name, RTCDataChannelEventDelegate method)
 
void addEventListener (string name, RTCIdentityErrorEventDelegate method)
 
void addEventListener (string name, RTCIdentityEventDelegate method)
 
void addEventListener (string name, RTCPeerConnectionIceEventDelegate method)
 
void addEventListener (string name, SensorEventDelegate method)
 
void addEventListener (string name, StorageEventDelegate method)
 
void addEventListener (string name, TextEventDelegate method)
 
void addEventListener (string name, TimeEventDelegate method)
 
void addEventListener (string name, TouchEventDelegate method)
 
void addEventListener (string name, TrackEventDelegate method)
 
void addEventListener (string name, TransitionEventDelegate method)
 
void addEventListener (string name, UIEventDelegate method)
 
void addEventListener (string name, UserProximityEventDelegate method)
 
void addEventListener (string name, WebGLContextEventDelegate method)
 
void addEventListener (string name, WheelEventDelegate method)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener, bool capture)
 
void addEventListener (string name, ContextEventDelegate method)
 
void addEventListener (string name, SlideEventDelegate method)
 
void addEventListener (string name, PowerUI.SpriteEventDelegate method)
 
void addEventListener (string name, SVGEventDelegate method)
 Adds an event listener to this document. More...
 
void addEventListener (string name, SVGZoomEventDelegate method)
 

Properties

DeviceOrientationEventDelegate onorientationchange [get, set]
 Called when the ready state changes. More...
 
int availTop [get]
 Available top (can't be diffferent here in Unity). More...
 
int availLeft [get]
 Available left (can't be diffferent here in Unity). More...
 
int top [get]
 top. More...
 
JSScreenOrientation orientation [get]
 Current screen orientation. More...
 
int left [get]
 left. More...
 
int pixelDepth [get]
 Pixel depth. Always 24 per CSSOM. More...
 
int dpi [get]
 Screen DPI. More...
 
int width [get]
 Screen width. More...
 
int height [get]
 Screen height. More...
 
int availWidth [get]
 Available screen width (can't be diffferent here in Unity). More...
 
int availHeight [get]
 Available screen height (can't be diffferent here in Unity). More...
 
- Properties inherited from Dom.EventTarget
static DispatchStack dispatchStackRef [get]
 The active dispatch stack. Use event.deepPath to access it (available during dispatch only). More...
 
virtual EventTarget eventTargetParentNode [get]
 The parent node as used by EventTarget during capture. Can be null. More...
 
virtual NodeList eventTargetChildren [get]
 The childNode set as used by EventTarget during capture. Can be null. More...
 

Additional Inherited Members

- Public Attributes inherited from Dom.EventTarget
EventsSet Events
 A set of events for this document. See addEventListener. More...
 
- Protected Member Functions inherited from Dom.EventTarget
GetFirstDelegate< T > (string name)
 Gets the first delegate event handler for the given event name. More...
 
virtual bool HandleLocalEvent (Event e, bool bubblePhase)
 Handles triggering event handlers here. Elements can (and in PowerUI's case, do) override this. PowerUI overrides it to handle e.g. onclick="" attributes too. More...
 
- Static Package Attributes inherited from Dom.EventTarget
static DispatchStack PooledStack
 The current head of the pooled dispatched stacks. More...
 

Member Function Documentation

bool PowerUI.JSScreen.lockOrientation ( string  orientation)
inline

Locks the orientation.

void PowerUI.JSScreen.unlockOrientation ( )
inline

Unlocks the orientation.

Property Documentation

int PowerUI.JSScreen.availHeight
get

Available screen height (can't be diffferent here in Unity).

int PowerUI.JSScreen.availLeft
get

Available left (can't be diffferent here in Unity).

int PowerUI.JSScreen.availTop
get

Available top (can't be diffferent here in Unity).

int PowerUI.JSScreen.availWidth
get

Available screen width (can't be diffferent here in Unity).

int PowerUI.JSScreen.dpi
get

Screen DPI.

int PowerUI.JSScreen.height
get

Screen height.

int PowerUI.JSScreen.left
get

left.

DeviceOrientationEventDelegate PowerUI.JSScreen.onorientationchange
getset

Called when the ready state changes.

JSScreenOrientation PowerUI.JSScreen.orientation
get

Current screen orientation.

int PowerUI.JSScreen.pixelDepth
get

Pixel depth. Always 24 per CSSOM.

int PowerUI.JSScreen.top
get

top.

int PowerUI.JSScreen.width
get

Screen width.