WebAssembly
Overview
Helper class to access the webassembly runtime.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.System
- Platforms: WebAssembly
constructor protected
Default constructor.
constructor
WebAssembly()
init()
WebAssembly()
AjaxRequest
Do an AJAX request to the given url and return the result as string.
Parameters:
- url:
AjaxRequestBinary
Do an AJAX request to the given url and return the result as binary.
Parameters:
- url:
ClearInterval
Stops an interval timer.
class method ClearInterval(aVal: Int32)
static void ClearInterval(Int32 aVal)
static func ClearInterval(_ aVal: Int32)
static void ClearInterval(Int32 aVal)
Parameters:
- aVal:
CreateArray
Create a new array.
class method CreateArray: dynamic
static dynamic CreateArray()
static func CreateArray() -> dynamic
static dynamic CreateArray()
CreateElement
Create a new html element by name.
class method CreateElement(aName: String): dynamic
static dynamic CreateElement(String aName)
static func CreateElement(_ aName: String) -> dynamic
static dynamic CreateElement(String aName)
Parameters:
- aName:
CreateHandle
Creates a handle for a given object.
Parameters:
- aVal:
- StringAsObject:
CreateObject
Create a new empty javascript object.
class method CreateObject: dynamic
static dynamic CreateObject()
static func CreateObject() -> dynamic
static dynamic CreateObject()
CreateProxy
Create a proxy for a given type.
class method CreateProxy(o: Object): EcmaScriptObject
static EcmaScriptObject CreateProxy(Object o)
static func CreateProxy(_ o: Object) -> EcmaScriptObject
static EcmaScriptObject CreateProxy(Object o)
Parameters:
- o:
CreateTextNode
Create an html text node.
class method CreateTextNode(aName: String): dynamic
static dynamic CreateTextNode(String aName)
static func CreateTextNode(_ aName: String) -> dynamic
static dynamic CreateTextNode(String aName)
Parameters:
- aName:
Equals virtual (declared in Object)
Returns true if the target object matches this one, by default compares the reference.
Parameters:
- obj: the reference to compare this with.
Eval
Does a javascript eval and returns the result.
class method Eval(s: String): dynamic
static dynamic Eval(String s)
static func Eval(_ s: String) -> dynamic
static dynamic Eval(String s)
Parameters:
- s:
Finalize protected virtual (declared in Object)
Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.
method Finalize
void Finalize()
func Finalize()
void Finalize()
GetElementById
Returns an element by id value.
class method GetElementById(id: String): dynamic
static dynamic GetElementById(String id)
static func GetElementById(_ id: String) -> dynamic
static dynamic GetElementById(String id)
Parameters:
- id:
GetElementByName
Returns an element by name.
class method GetElementByName(id: String): dynamic
static dynamic GetElementByName(String id)
static func GetElementByName(_ id: String) -> dynamic
static dynamic GetElementByName(String id)
Parameters:
- id:
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
GetObjectForHandle
Returns the object value given a handle.
Parameters:
- aHandle:
GetStringFromHandle
Returns a string, given a handle.
Parameters:
- handle:
- aFree:
GetType (declared in Object)
Returns the actual type of this class
GetWindowObject
Returns the Window object.
class method GetWindowObject: dynamic
static dynamic GetWindowObject()
static func GetWindowObject() -> dynamic
static dynamic GetWindowObject()
Global
Returns the Global object.
class property Global: dynamic read write;
class dynamic Global { get; set; }
static var Global: dynamic { get{} set{} }
class dynamic Global { __get; __set; }
InvokeMethod
Helper invoke a method with a given set of parameters.
Parameters:
- aPtr:
- args:
NewWebSocket
class method NewWebSocket(s: String): dynamic
static dynamic NewWebSocket(String s)
static func NewWebSocket(_ s: String) -> dynamic
static dynamic NewWebSocket(String s)
Parameters:
- s:
NewXMLHttpRequest
class method NewXMLHttpRequest: dynamic
static dynamic NewXMLHttpRequest()
static func NewXMLHttpRequest() -> dynamic
static dynamic NewXMLHttpRequest()
Object
Returns the javascript Object type /function.
class property Object: dynamic read write;
class dynamic Object { get; set; }
static var Object: dynamic { get{} set{} }
class dynamic Object { __get; __set; }
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ReleaseProxy
Release a proxy.
class method ReleaseProxy(o: EcmaScriptObject)
static void ReleaseProxy(EcmaScriptObject o)
static func ReleaseProxy(_ o: EcmaScriptObject)
static void ReleaseProxy(EcmaScriptObject o)
Parameters:
- o:
SetInterval
Creates a new javascript interval (triggers the delegate every aTimeout msec).
Parameters:
- aFN:
- aTimeOut:
SetTimeout
Creates a new javascript timeout (triggers the delegate once at aTimeout msec).
Parameters:
- aFN:
- aTimeOut:
ToString virtual (declared in Object)
Gets the string representation of this method.
Unwrap
Internal api.
Parameters:
- o:
UnwrapCall
Internal api.
Parameters:
- aType:
- aVal:
Wrap
Internal api.
Parameters:
- o:
Global
Returns the Global object.
class property Global: dynamic read write;
class dynamic Global { get; set; }
static var Global: dynamic { get{} set{} }
class dynamic Global { __get; __set; }
Object
Returns the javascript Object type /function.
class property Object: dynamic read write;
class dynamic Object { get; set; }
static var Object: dynamic { get{} set{} }
class dynamic Object { __get; __set; }
AjaxRequest
Do an AJAX request to the given url and return the result as string.
Parameters:
- url:
AjaxRequestBinary
Do an AJAX request to the given url and return the result as binary.
Parameters:
- url:
ClearInterval
Stops an interval timer.
class method ClearInterval(aVal: Int32)
static void ClearInterval(Int32 aVal)
static func ClearInterval(_ aVal: Int32)
static void ClearInterval(Int32 aVal)
Parameters:
- aVal:
CreateArray
Create a new array.
class method CreateArray: dynamic
static dynamic CreateArray()
static func CreateArray() -> dynamic
static dynamic CreateArray()
CreateElement
Create a new html element by name.
class method CreateElement(aName: String): dynamic
static dynamic CreateElement(String aName)
static func CreateElement(_ aName: String) -> dynamic
static dynamic CreateElement(String aName)
Parameters:
- aName:
CreateHandle
Creates a handle for a given object.
Parameters:
- aVal:
- StringAsObject:
CreateObject
Create a new empty javascript object.
class method CreateObject: dynamic
static dynamic CreateObject()
static func CreateObject() -> dynamic
static dynamic CreateObject()
CreateProxy
Create a proxy for a given type.
class method CreateProxy(o: Object): EcmaScriptObject
static EcmaScriptObject CreateProxy(Object o)
static func CreateProxy(_ o: Object) -> EcmaScriptObject
static EcmaScriptObject CreateProxy(Object o)
Parameters:
- o:
CreateTextNode
Create an html text node.
class method CreateTextNode(aName: String): dynamic
static dynamic CreateTextNode(String aName)
static func CreateTextNode(_ aName: String) -> dynamic
static dynamic CreateTextNode(String aName)
Parameters:
- aName:
Eval
Does a javascript eval and returns the result.
class method Eval(s: String): dynamic
static dynamic Eval(String s)
static func Eval(_ s: String) -> dynamic
static dynamic Eval(String s)
Parameters:
- s:
GetElementById
Returns an element by id value.
class method GetElementById(id: String): dynamic
static dynamic GetElementById(String id)
static func GetElementById(_ id: String) -> dynamic
static dynamic GetElementById(String id)
Parameters:
- id:
GetElementByName
Returns an element by name.
class method GetElementByName(id: String): dynamic
static dynamic GetElementByName(String id)
static func GetElementByName(_ id: String) -> dynamic
static dynamic GetElementByName(String id)
Parameters:
- id:
GetObjectForHandle
Returns the object value given a handle.
Parameters:
- aHandle:
GetStringFromHandle
Returns a string, given a handle.
Parameters:
- handle:
- aFree:
GetWindowObject
Returns the Window object.
class method GetWindowObject: dynamic
static dynamic GetWindowObject()
static func GetWindowObject() -> dynamic
static dynamic GetWindowObject()
InvokeMethod
Helper invoke a method with a given set of parameters.
Parameters:
- aPtr:
- args:
NewWebSocket
class method NewWebSocket(s: String): dynamic
static dynamic NewWebSocket(String s)
static func NewWebSocket(_ s: String) -> dynamic
static dynamic NewWebSocket(String s)
Parameters:
- s:
NewXMLHttpRequest
class method NewXMLHttpRequest: dynamic
static dynamic NewXMLHttpRequest()
static func NewXMLHttpRequest() -> dynamic
static dynamic NewXMLHttpRequest()
ReferenceEquals (declared in Object)
Compares two references for equivalence (even if they have an equals operator)
Parameters:
- a: left value
- b: right value
ReleaseProxy
Release a proxy.
class method ReleaseProxy(o: EcmaScriptObject)
static void ReleaseProxy(EcmaScriptObject o)
static func ReleaseProxy(_ o: EcmaScriptObject)
static void ReleaseProxy(EcmaScriptObject o)
Parameters:
- o:
SetInterval
Creates a new javascript interval (triggers the delegate every aTimeout msec).
Parameters:
- aFN:
- aTimeOut:
SetTimeout
Creates a new javascript timeout (triggers the delegate once at aTimeout msec).
Parameters:
- aFN:
- aTimeOut:
Unwrap
Internal api.
Parameters:
- o:
UnwrapCall
Internal api.
Parameters:
- aType:
- aVal:
Wrap
Internal api.
Parameters:
- o:
constructor protected
Default constructor.
constructor
WebAssembly()
init()
WebAssembly()
Equals virtual (declared in Object)
Returns true if the target object matches this one, by default compares the reference.
Parameters:
- obj: the reference to compare this with.
Finalize protected virtual (declared in Object)
Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.
method Finalize
void Finalize()
func Finalize()
void Finalize()
GetHashCode virtual (declared in Object)
Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.
GetType (declared in Object)
Returns the actual type of this class
ToString virtual (declared in Object)
Gets the string representation of this method.