webapi: github.com/gowebapi/webapi/device/webxr Index | Files

package webxr

import "github.com/gowebapi/webapi/device/webxr"

Package webxr is for accessing virtual reality (VR) and augmented reality (AR) devices, including sensors and head-mounted displays, on the Web.

Index

Package Files

doc.go webxr.go

func GetNativeFramebufferScaleFactor Uses

func GetNativeFramebufferScaleFactor(session *XRSession) (_result float64)

type PromiseXRReferenceSpace Uses

type PromiseXRReferenceSpace struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseXRReferenceSpaceFromJS Uses

func PromiseXRReferenceSpaceFromJS(value js.Wrapper) *PromiseXRReferenceSpace

PromiseXRReferenceSpaceFromJS is casting a js.Wrapper into PromiseXRReferenceSpace.

func (*PromiseXRReferenceSpace) Catch Uses

func (_this *PromiseXRReferenceSpace) Catch(onRejected *PromiseXRReferenceSpaceOnRejected) (_result *PromiseXRReferenceSpace)

func (*PromiseXRReferenceSpace) Finally Uses

func (_this *PromiseXRReferenceSpace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseXRReferenceSpace)

func (*PromiseXRReferenceSpace) JSValue Uses

func (_this *PromiseXRReferenceSpace) JSValue() js.Value

func (*PromiseXRReferenceSpace) Then Uses

func (_this *PromiseXRReferenceSpace) Then(onFulfilled *PromiseXRReferenceSpaceOnFulfilled, onRejected *PromiseXRReferenceSpaceOnRejected) (_result *PromiseXRReferenceSpace)

type PromiseXRReferenceSpaceOnFulfilled Uses

type PromiseXRReferenceSpaceOnFulfilled js.Func

PromiseXRReferenceSpaceOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseXRReferenceSpaceOnFulfilledToJS Uses

func PromiseXRReferenceSpaceOnFulfilledToJS(callback PromiseXRReferenceSpaceOnFulfilledFunc) *PromiseXRReferenceSpaceOnFulfilled

type PromiseXRReferenceSpaceOnFulfilledFunc Uses

type PromiseXRReferenceSpaceOnFulfilledFunc func(value *XRReferenceSpace)

callback: PromiseTemplateOnFulfilled

func PromiseXRReferenceSpaceOnFulfilledFromJS Uses

func PromiseXRReferenceSpaceOnFulfilledFromJS(_value js.Value) PromiseXRReferenceSpaceOnFulfilledFunc

type PromiseXRReferenceSpaceOnRejected Uses

type PromiseXRReferenceSpaceOnRejected js.Func

PromiseXRReferenceSpaceOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseXRReferenceSpaceOnRejectedToJS Uses

func PromiseXRReferenceSpaceOnRejectedToJS(callback PromiseXRReferenceSpaceOnRejectedFunc) *PromiseXRReferenceSpaceOnRejected

type PromiseXRReferenceSpaceOnRejectedFunc Uses

type PromiseXRReferenceSpaceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseXRReferenceSpaceOnRejectedFromJS Uses

func PromiseXRReferenceSpaceOnRejectedFromJS(_value js.Value) PromiseXRReferenceSpaceOnRejectedFunc

type PromiseXRSession Uses

type PromiseXRSession struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseXRSessionFromJS Uses

func PromiseXRSessionFromJS(value js.Wrapper) *PromiseXRSession

PromiseXRSessionFromJS is casting a js.Wrapper into PromiseXRSession.

func (*PromiseXRSession) Catch Uses

func (_this *PromiseXRSession) Catch(onRejected *PromiseXRSessionOnRejected) (_result *PromiseXRSession)

func (*PromiseXRSession) Finally Uses

func (_this *PromiseXRSession) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseXRSession)

func (*PromiseXRSession) JSValue Uses

func (_this *PromiseXRSession) JSValue() js.Value

func (*PromiseXRSession) Then Uses

func (_this *PromiseXRSession) Then(onFulfilled *PromiseXRSessionOnFulfilled, onRejected *PromiseXRSessionOnRejected) (_result *PromiseXRSession)

type PromiseXRSessionOnFulfilled Uses

type PromiseXRSessionOnFulfilled js.Func

PromiseXRSessionOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseXRSessionOnFulfilledToJS Uses

func PromiseXRSessionOnFulfilledToJS(callback PromiseXRSessionOnFulfilledFunc) *PromiseXRSessionOnFulfilled

type PromiseXRSessionOnFulfilledFunc Uses

type PromiseXRSessionOnFulfilledFunc func(value *XRSession)

callback: PromiseTemplateOnFulfilled

func PromiseXRSessionOnFulfilledFromJS Uses

func PromiseXRSessionOnFulfilledFromJS(_value js.Value) PromiseXRSessionOnFulfilledFunc

type PromiseXRSessionOnRejected Uses

type PromiseXRSessionOnRejected js.Func

PromiseXRSessionOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseXRSessionOnRejectedToJS Uses

func PromiseXRSessionOnRejectedToJS(callback PromiseXRSessionOnRejectedFunc) *PromiseXRSessionOnRejected

type PromiseXRSessionOnRejectedFunc Uses

type PromiseXRSessionOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseXRSessionOnRejectedFromJS Uses

func PromiseXRSessionOnRejectedFromJS(_value js.Value) PromiseXRSessionOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

type XR Uses

type XR struct {
    domcore.EventTarget
}

class: XR

func XRFromJS Uses

func XRFromJS(value js.Wrapper) *XR

XRFromJS is casting a js.Wrapper into XR.

func (*XR) AddEventDeviceChange Uses

func (_this *XR) AddEventDeviceChange(listener func(event *domcore.Event, currentTarget *XR)) js.Func

AddDeviceChange is adding doing AddEventListener for 'DeviceChange' on target. This method is returning allocated javascript function that need to be released.

func (*XR) OnDeviceChange Uses

func (_this *XR) OnDeviceChange() domcore.EventHandlerFunc

OnDeviceChange returning attribute 'ondevicechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XR) RequestSession Uses

func (_this *XR) RequestSession(parameters *XRSessionCreationOptions) (_result *PromiseXRSession)

func (*XR) SetOnDeviceChange Uses

func (_this *XR) SetOnDeviceChange(listener func(event *domcore.Event, currentTarget *XR)) js.Func

SetOnDeviceChange is assigning a function to 'ondevicechange'. This This method is returning allocated javascript function that need to be released.

func (*XR) SupportsSessionMode Uses

func (_this *XR) SupportsSessionMode(mode XRSessionMode) (_result *javascript.PromiseVoid)

type XRBoundedReferenceSpace Uses

type XRBoundedReferenceSpace struct {
    XRReferenceSpace
}

class: XRBoundedReferenceSpace

func XRBoundedReferenceSpaceFromJS Uses

func XRBoundedReferenceSpaceFromJS(value js.Wrapper) *XRBoundedReferenceSpace

XRBoundedReferenceSpaceFromJS is casting a js.Wrapper into XRBoundedReferenceSpace.

func (*XRBoundedReferenceSpace) BoundsGeometry Uses

func (_this *XRBoundedReferenceSpace) BoundsGeometry() *javascript.FrozenArray

BoundsGeometry returning attribute 'boundsGeometry' with type javascript.FrozenArray (idl: FrozenArray).

type XREnvironmentBlendMode Uses

type XREnvironmentBlendMode int

enum: XREnvironmentBlendMode

const (
    OpaqueXREnvironmentBlendMode XREnvironmentBlendMode = iota
    AdditiveXREnvironmentBlendMode
    AlphaBlendXREnvironmentBlendMode
)

func XREnvironmentBlendModeFromJS Uses

func XREnvironmentBlendModeFromJS(value js.Value) XREnvironmentBlendMode

XREnvironmentBlendModeFromJS is converting a javascript value into a XREnvironmentBlendMode enum value.

func (*XREnvironmentBlendMode) JSValue Uses

func (this *XREnvironmentBlendMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XREnvironmentBlendMode) Value Uses

func (this XREnvironmentBlendMode) Value() string

Value is converting this into javascript defined string value

type XREye Uses

type XREye int

enum: XREye

const (
    LeftXREye XREye = iota
    RightXREye
)

func XREyeFromJS Uses

func XREyeFromJS(value js.Value) XREye

XREyeFromJS is converting a javascript value into a XREye enum value.

func (*XREye) JSValue Uses

func (this *XREye) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XREye) Value Uses

func (this XREye) Value() string

Value is converting this into javascript defined string value

type XRFrame Uses

type XRFrame struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRFrame

func XRFrameFromJS Uses

func XRFrameFromJS(value js.Wrapper) *XRFrame

XRFrameFromJS is casting a js.Wrapper into XRFrame.

func (*XRFrame) GetPose Uses

func (_this *XRFrame) GetPose(space *XRSpace, relativeTo *XRSpace) (_result *XRPose)

func (*XRFrame) GetViewerPose Uses

func (_this *XRFrame) GetViewerPose(referenceSpace *XRReferenceSpace) (_result *XRViewerPose)

func (*XRFrame) JSValue Uses

func (_this *XRFrame) JSValue() js.Value

func (*XRFrame) Session Uses

func (_this *XRFrame) Session() *XRSession

Session returning attribute 'session' with type XRSession (idl: XRSession).

type XRFrameRequestCallback Uses

type XRFrameRequestCallback js.Func

XRFrameRequestCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func XRFrameRequestCallbackToJS Uses

func XRFrameRequestCallbackToJS(callback XRFrameRequestCallbackFunc) *XRFrameRequestCallback

type XRFrameRequestCallbackFunc Uses

type XRFrameRequestCallbackFunc func(time float64, frame *XRFrame)

callback: XRFrameRequestCallback

func XRFrameRequestCallbackFromJS Uses

func XRFrameRequestCallbackFromJS(_value js.Value) XRFrameRequestCallbackFunc

type XRHandedness Uses

type XRHandedness int

enum: XRHandedness

const (
    NoneXRHandedness XRHandedness = iota
    LeftXRHandedness
    RightXRHandedness
)

func XRHandednessFromJS Uses

func XRHandednessFromJS(value js.Value) XRHandedness

XRHandednessFromJS is converting a javascript value into a XRHandedness enum value.

func (*XRHandedness) JSValue Uses

func (this *XRHandedness) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XRHandedness) Value Uses

func (this XRHandedness) Value() string

Value is converting this into javascript defined string value

type XRInputSource Uses

type XRInputSource struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRInputSource

func XRInputSourceFromJS Uses

func XRInputSourceFromJS(value js.Wrapper) *XRInputSource

XRInputSourceFromJS is casting a js.Wrapper into XRInputSource.

func (*XRInputSource) GripSpace Uses

func (_this *XRInputSource) GripSpace() *XRSpace

GripSpace returning attribute 'gripSpace' with type XRSpace (idl: XRSpace).

func (*XRInputSource) Handedness Uses

func (_this *XRInputSource) Handedness() XRHandedness

Handedness returning attribute 'handedness' with type XRHandedness (idl: XRHandedness).

func (*XRInputSource) JSValue Uses

func (_this *XRInputSource) JSValue() js.Value

func (*XRInputSource) TargetRayMode Uses

func (_this *XRInputSource) TargetRayMode() XRTargetRayMode

TargetRayMode returning attribute 'targetRayMode' with type XRTargetRayMode (idl: XRTargetRayMode).

func (*XRInputSource) TargetRaySpace Uses

func (_this *XRInputSource) TargetRaySpace() *XRSpace

TargetRaySpace returning attribute 'targetRaySpace' with type XRSpace (idl: XRSpace).

type XRInputSourceEvent Uses

type XRInputSourceEvent struct {
    domcore.Event
}

class: XRInputSourceEvent

func NewXRInputSourceEvent Uses

func NewXRInputSourceEvent(_type string, eventInitDict *XRInputSourceEventInit) (_result *XRInputSourceEvent)

func XRInputSourceEventFromJS Uses

func XRInputSourceEventFromJS(value js.Wrapper) *XRInputSourceEvent

XRInputSourceEventFromJS is casting a js.Wrapper into XRInputSourceEvent.

func (*XRInputSourceEvent) Frame Uses

func (_this *XRInputSourceEvent) Frame() *XRFrame

Frame returning attribute 'frame' with type XRFrame (idl: XRFrame).

func (*XRInputSourceEvent) InputSource Uses

func (_this *XRInputSourceEvent) InputSource() *XRInputSource

InputSource returning attribute 'inputSource' with type XRInputSource (idl: XRInputSource).

type XRInputSourceEventInit Uses

type XRInputSourceEventInit struct {
    Bubbles     bool
    Cancelable  bool
    Composed    bool
    Frame       *XRFrame
    InputSource *XRInputSource
}

dictionary: XRInputSourceEventInit

func XRInputSourceEventInitFromJS Uses

func XRInputSourceEventInitFromJS(value js.Wrapper) *XRInputSourceEventInit

XRInputSourceEventInitFromJS is allocating a new XRInputSourceEventInit object and copy all values from input javascript object

func (*XRInputSourceEventInit) JSValue Uses

func (_this *XRInputSourceEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type XRLayer Uses

type XRLayer struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRLayer

func XRLayerFromJS Uses

func XRLayerFromJS(value js.Wrapper) *XRLayer

XRLayerFromJS is casting a js.Wrapper into XRLayer.

func (*XRLayer) JSValue Uses

func (_this *XRLayer) JSValue() js.Value

type XRPose Uses

type XRPose struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRPose

func XRPoseFromJS Uses

func XRPoseFromJS(value js.Wrapper) *XRPose

XRPoseFromJS is casting a js.Wrapper into XRPose.

func (*XRPose) EmulatedPosition Uses

func (_this *XRPose) EmulatedPosition() bool

EmulatedPosition returning attribute 'emulatedPosition' with type bool (idl: boolean).

func (*XRPose) JSValue Uses

func (_this *XRPose) JSValue() js.Value

func (*XRPose) Transform Uses

func (_this *XRPose) Transform() *XRRigidTransform

Transform returning attribute 'transform' with type XRRigidTransform (idl: XRRigidTransform).

type XRPresentationContext Uses

type XRPresentationContext struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRPresentationContext

func XRPresentationContextFromJS Uses

func XRPresentationContextFromJS(value js.Wrapper) *XRPresentationContext

XRPresentationContextFromJS is casting a js.Wrapper into XRPresentationContext.

func (*XRPresentationContext) Canvas Uses

func (_this *XRPresentationContext) Canvas() *canvas.HTMLCanvasElement

Canvas returning attribute 'canvas' with type canvas.HTMLCanvasElement (idl: HTMLCanvasElement).

func (*XRPresentationContext) JSValue Uses

func (_this *XRPresentationContext) JSValue() js.Value

type XRRay Uses

type XRRay struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRRay

func NewXRRay Uses

func NewXRRay(transform *XRRigidTransform) (_result *XRRay)

func XRRayFromJS Uses

func XRRayFromJS(value js.Wrapper) *XRRay

XRRayFromJS is casting a js.Wrapper into XRRay.

func (*XRRay) Direction Uses

func (_this *XRRay) Direction() *geometry.DOMPointReadOnly

Direction returning attribute 'direction' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).

func (*XRRay) JSValue Uses

func (_this *XRRay) JSValue() js.Value

func (*XRRay) Matrix Uses

func (_this *XRRay) Matrix() *javascript.Float32Array

Matrix returning attribute 'matrix' with type javascript.Float32Array (idl: Float32Array).

func (*XRRay) Origin Uses

func (_this *XRRay) Origin() *geometry.DOMPointReadOnly

Origin returning attribute 'origin' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).

type XRReferenceSpace Uses

type XRReferenceSpace struct {
    XRSpace
}

class: XRReferenceSpace

func XRReferenceSpaceFromJS Uses

func XRReferenceSpaceFromJS(value js.Wrapper) *XRReferenceSpace

XRReferenceSpaceFromJS is casting a js.Wrapper into XRReferenceSpace.

func (*XRReferenceSpace) AddEventReset Uses

func (_this *XRReferenceSpace) AddEventReset(listener func(event *XRReferenceSpaceEvent, currentTarget *XRReferenceSpace)) js.Func

AddReset is adding doing AddEventListener for 'Reset' on target. This method is returning allocated javascript function that need to be released.

func (*XRReferenceSpace) OnReset Uses

func (_this *XRReferenceSpace) OnReset() domcore.EventHandlerFunc

OnReset returning attribute 'onreset' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRReferenceSpace) OriginOffset Uses

func (_this *XRReferenceSpace) OriginOffset() *XRRigidTransform

OriginOffset returning attribute 'originOffset' with type XRRigidTransform (idl: XRRigidTransform).

func (*XRReferenceSpace) SetOnReset Uses

func (_this *XRReferenceSpace) SetOnReset(listener func(event *XRReferenceSpaceEvent, currentTarget *XRReferenceSpace)) js.Func

SetOnReset is assigning a function to 'onreset'. This This method is returning allocated javascript function that need to be released.

func (*XRReferenceSpace) SetOriginOffset Uses

func (_this *XRReferenceSpace) SetOriginOffset(value *XRRigidTransform)

SetOriginOffset setting attribute 'originOffset' with type XRRigidTransform (idl: XRRigidTransform).

type XRReferenceSpaceEvent Uses

type XRReferenceSpaceEvent struct {
    domcore.Event
}

class: XRReferenceSpaceEvent

func NewXRReferenceSpaceEvent Uses

func NewXRReferenceSpaceEvent(_type string, eventInitDict *XRReferenceSpaceEventInit) (_result *XRReferenceSpaceEvent)

func XRReferenceSpaceEventFromJS Uses

func XRReferenceSpaceEventFromJS(value js.Wrapper) *XRReferenceSpaceEvent

XRReferenceSpaceEventFromJS is casting a js.Wrapper into XRReferenceSpaceEvent.

func (*XRReferenceSpaceEvent) ReferenceSpace Uses

func (_this *XRReferenceSpaceEvent) ReferenceSpace() *XRReferenceSpace

ReferenceSpace returning attribute 'referenceSpace' with type XRReferenceSpace (idl: XRReferenceSpace).

func (*XRReferenceSpaceEvent) Transform Uses

func (_this *XRReferenceSpaceEvent) Transform() *XRRigidTransform

Transform returning attribute 'transform' with type XRRigidTransform (idl: XRRigidTransform).

type XRReferenceSpaceEventInit Uses

type XRReferenceSpaceEventInit struct {
    Bubbles        bool
    Cancelable     bool
    Composed       bool
    ReferenceSpace *XRReferenceSpace
    Transform      *XRRigidTransform
}

dictionary: XRReferenceSpaceEventInit

func XRReferenceSpaceEventInitFromJS Uses

func XRReferenceSpaceEventInitFromJS(value js.Wrapper) *XRReferenceSpaceEventInit

XRReferenceSpaceEventInitFromJS is allocating a new XRReferenceSpaceEventInit object and copy all values from input javascript object

func (*XRReferenceSpaceEventInit) JSValue Uses

func (_this *XRReferenceSpaceEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type XRReferenceSpaceOptions Uses

type XRReferenceSpaceOptions struct {
    Type    XRReferenceSpaceType
    Subtype XRStationaryReferenceSpaceSubtype
}

dictionary: XRReferenceSpaceOptions

func XRReferenceSpaceOptionsFromJS Uses

func XRReferenceSpaceOptionsFromJS(value js.Wrapper) *XRReferenceSpaceOptions

XRReferenceSpaceOptionsFromJS is allocating a new XRReferenceSpaceOptions object and copy all values from input javascript object

func (*XRReferenceSpaceOptions) JSValue Uses

func (_this *XRReferenceSpaceOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type XRReferenceSpaceType Uses

type XRReferenceSpaceType int

enum: XRReferenceSpaceType

const (
    StationaryXRReferenceSpaceType XRReferenceSpaceType = iota
    BoundedXRReferenceSpaceType
    UnboundedXRReferenceSpaceType
)

func XRReferenceSpaceTypeFromJS Uses

func XRReferenceSpaceTypeFromJS(value js.Value) XRReferenceSpaceType

XRReferenceSpaceTypeFromJS is converting a javascript value into a XRReferenceSpaceType enum value.

func (*XRReferenceSpaceType) JSValue Uses

func (this *XRReferenceSpaceType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XRReferenceSpaceType) Value Uses

func (this XRReferenceSpaceType) Value() string

Value is converting this into javascript defined string value

type XRRenderState Uses

type XRRenderState struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRRenderState

func XRRenderStateFromJS Uses

func XRRenderStateFromJS(value js.Wrapper) *XRRenderState

XRRenderStateFromJS is casting a js.Wrapper into XRRenderState.

func (*XRRenderState) BaseLayer Uses

func (_this *XRRenderState) BaseLayer() *XRLayer

BaseLayer returning attribute 'baseLayer' with type XRLayer (idl: XRLayer).

func (*XRRenderState) DepthFar Uses

func (_this *XRRenderState) DepthFar() float64

DepthFar returning attribute 'depthFar' with type float64 (idl: double).

func (*XRRenderState) DepthNear Uses

func (_this *XRRenderState) DepthNear() float64

DepthNear returning attribute 'depthNear' with type float64 (idl: double).

func (*XRRenderState) JSValue Uses

func (_this *XRRenderState) JSValue() js.Value

type XRRenderStateInit Uses

type XRRenderStateInit struct {
    DepthNear float64
    DepthFar  float64
    BaseLayer *XRLayer
}

dictionary: XRRenderStateInit

func XRRenderStateInitFromJS Uses

func XRRenderStateInitFromJS(value js.Wrapper) *XRRenderStateInit

XRRenderStateInitFromJS is allocating a new XRRenderStateInit object and copy all values from input javascript object

func (*XRRenderStateInit) JSValue Uses

func (_this *XRRenderStateInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type XRRigidTransform Uses

type XRRigidTransform struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRRigidTransform

func NewXRRigidTransform Uses

func NewXRRigidTransform(position *geometry.DOMPointInit, orientation *geometry.DOMPointInit) (_result *XRRigidTransform)

func XRRigidTransformFromJS Uses

func XRRigidTransformFromJS(value js.Wrapper) *XRRigidTransform

XRRigidTransformFromJS is casting a js.Wrapper into XRRigidTransform.

func (*XRRigidTransform) JSValue Uses

func (_this *XRRigidTransform) JSValue() js.Value

func (*XRRigidTransform) Matrix Uses

func (_this *XRRigidTransform) Matrix() *javascript.Float32Array

Matrix returning attribute 'matrix' with type javascript.Float32Array (idl: Float32Array).

func (*XRRigidTransform) Orientation Uses

func (_this *XRRigidTransform) Orientation() *geometry.DOMPointReadOnly

Orientation returning attribute 'orientation' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).

func (*XRRigidTransform) Position Uses

func (_this *XRRigidTransform) Position() *geometry.DOMPointReadOnly

Position returning attribute 'position' with type geometry.DOMPointReadOnly (idl: DOMPointReadOnly).

type XRSession Uses

type XRSession struct {
    domcore.EventTarget
}

class: XRSession

func XRSessionFromJS Uses

func XRSessionFromJS(value js.Wrapper) *XRSession

XRSessionFromJS is casting a js.Wrapper into XRSession.

func (*XRSession) AddEventBlur Uses

func (_this *XRSession) AddEventBlur(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func

AddBlur is adding doing AddEventListener for 'Blur' on target. This method is returning allocated javascript function that need to be released.

func (*XRSession) AddEventEnd Uses

func (_this *XRSession) AddEventEnd(listener func(event *XRSessionEvent, currentTarget *XRSession)) js.Func

AddEnd is adding doing AddEventListener for 'End' on target. This method is returning allocated javascript function that need to be released.

func (*XRSession) AddEventFocus Uses

func (_this *XRSession) AddEventFocus(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func

AddFocus is adding doing AddEventListener for 'Focus' on target. This method is returning allocated javascript function that need to be released.

func (*XRSession) AddEventSelect Uses

func (_this *XRSession) AddEventSelect(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func

AddSelect is adding doing AddEventListener for 'Select' on target. This method is returning allocated javascript function that need to be released.

func (*XRSession) AddEventSelectEnd Uses

func (_this *XRSession) AddEventSelectEnd(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func

AddSelectEnd is adding doing AddEventListener for 'SelectEnd' on target. This method is returning allocated javascript function that need to be released.

func (*XRSession) AddEventSelectStart Uses

func (_this *XRSession) AddEventSelectStart(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func

AddSelectStart is adding doing AddEventListener for 'SelectStart' on target. This method is returning allocated javascript function that need to be released.

func (*XRSession) CancelAnimationFrame Uses

func (_this *XRSession) CancelAnimationFrame(handle int)

func (*XRSession) End Uses

func (_this *XRSession) End() (_result *javascript.PromiseVoid)

func (*XRSession) EnvironmentBlendMode Uses

func (_this *XRSession) EnvironmentBlendMode() XREnvironmentBlendMode

EnvironmentBlendMode returning attribute 'environmentBlendMode' with type XREnvironmentBlendMode (idl: XREnvironmentBlendMode).

func (*XRSession) GetInputSources Uses

func (_this *XRSession) GetInputSources() (_result *javascript.FrozenArray)

func (*XRSession) Mode Uses

func (_this *XRSession) Mode() XRSessionMode

Mode returning attribute 'mode' with type XRSessionMode (idl: XRSessionMode).

func (*XRSession) OnBlur Uses

func (_this *XRSession) OnBlur() domcore.EventHandlerFunc

OnBlur returning attribute 'onblur' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) OnEnd Uses

func (_this *XRSession) OnEnd() domcore.EventHandlerFunc

OnEnd returning attribute 'onend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) OnFocus Uses

func (_this *XRSession) OnFocus() domcore.EventHandlerFunc

OnFocus returning attribute 'onfocus' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) OnSelect Uses

func (_this *XRSession) OnSelect() domcore.EventHandlerFunc

OnSelect returning attribute 'onselect' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) OnSelectEnd Uses

func (_this *XRSession) OnSelectEnd() domcore.EventHandlerFunc

OnSelectEnd returning attribute 'onselectend' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) OnSelectStart Uses

func (_this *XRSession) OnSelectStart() domcore.EventHandlerFunc

OnSelectStart returning attribute 'onselectstart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) Oninputsourceschange Uses

func (_this *XRSession) Oninputsourceschange() domcore.EventHandlerFunc

Oninputsourceschange returning attribute 'oninputsourceschange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) OutputContext Uses

func (_this *XRSession) OutputContext() *XRPresentationContext

OutputContext returning attribute 'outputContext' with type XRPresentationContext (idl: XRPresentationContext).

func (*XRSession) RenderState Uses

func (_this *XRSession) RenderState() *XRRenderState

RenderState returning attribute 'renderState' with type XRRenderState (idl: XRRenderState).

func (*XRSession) RequestAnimationFrame Uses

func (_this *XRSession) RequestAnimationFrame(callback *XRFrameRequestCallback) (_result int)

func (*XRSession) RequestReferenceSpace Uses

func (_this *XRSession) RequestReferenceSpace(options *XRReferenceSpaceOptions) (_result *PromiseXRReferenceSpace)

func (*XRSession) SetOnBlur Uses

func (_this *XRSession) SetOnBlur(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func

SetOnBlur is assigning a function to 'onblur'. This This method is returning allocated javascript function that need to be released.

func (*XRSession) SetOnEnd Uses

func (_this *XRSession) SetOnEnd(listener func(event *XRSessionEvent, currentTarget *XRSession)) js.Func

SetOnEnd is assigning a function to 'onend'. This This method is returning allocated javascript function that need to be released.

func (*XRSession) SetOnFocus Uses

func (_this *XRSession) SetOnFocus(listener func(event *domcore.Event, currentTarget *XRSession)) js.Func

SetOnFocus is assigning a function to 'onfocus'. This This method is returning allocated javascript function that need to be released.

func (*XRSession) SetOnSelect Uses

func (_this *XRSession) SetOnSelect(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func

SetOnSelect is assigning a function to 'onselect'. This This method is returning allocated javascript function that need to be released.

func (*XRSession) SetOnSelectEnd Uses

func (_this *XRSession) SetOnSelectEnd(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func

SetOnSelectEnd is assigning a function to 'onselectend'. This This method is returning allocated javascript function that need to be released.

func (*XRSession) SetOnSelectStart Uses

func (_this *XRSession) SetOnSelectStart(listener func(event *XRInputSourceEvent, currentTarget *XRSession)) js.Func

SetOnSelectStart is assigning a function to 'onselectstart'. This This method is returning allocated javascript function that need to be released.

func (*XRSession) SetOninputsourceschange Uses

func (_this *XRSession) SetOninputsourceschange(value *domcore.EventHandler)

SetOninputsourceschange setting attribute 'oninputsourceschange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*XRSession) UpdateRenderState Uses

func (_this *XRSession) UpdateRenderState(state *XRRenderStateInit)

func (*XRSession) ViewerSpace Uses

func (_this *XRSession) ViewerSpace() *XRSpace

ViewerSpace returning attribute 'viewerSpace' with type XRSpace (idl: XRSpace).

type XRSessionCreationOptions Uses

type XRSessionCreationOptions struct {
    Mode          XRSessionMode
    OutputContext *XRPresentationContext
}

dictionary: XRSessionCreationOptions

func XRSessionCreationOptionsFromJS Uses

func XRSessionCreationOptionsFromJS(value js.Wrapper) *XRSessionCreationOptions

XRSessionCreationOptionsFromJS is allocating a new XRSessionCreationOptions object and copy all values from input javascript object

func (*XRSessionCreationOptions) JSValue Uses

func (_this *XRSessionCreationOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type XRSessionEvent Uses

type XRSessionEvent struct {
    domcore.Event
}

class: XRSessionEvent

func NewXRSessionEvent Uses

func NewXRSessionEvent(_type string, eventInitDict *XRSessionEventInit) (_result *XRSessionEvent)

func XRSessionEventFromJS Uses

func XRSessionEventFromJS(value js.Wrapper) *XRSessionEvent

XRSessionEventFromJS is casting a js.Wrapper into XRSessionEvent.

func (*XRSessionEvent) Session Uses

func (_this *XRSessionEvent) Session() *XRSession

Session returning attribute 'session' with type XRSession (idl: XRSession).

type XRSessionEventInit Uses

type XRSessionEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Session    *XRSession
}

dictionary: XRSessionEventInit

func XRSessionEventInitFromJS Uses

func XRSessionEventInitFromJS(value js.Wrapper) *XRSessionEventInit

XRSessionEventInitFromJS is allocating a new XRSessionEventInit object and copy all values from input javascript object

func (*XRSessionEventInit) JSValue Uses

func (_this *XRSessionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type XRSessionMode Uses

type XRSessionMode int

enum: XRSessionMode

const (
    InlineXRSessionMode XRSessionMode = iota
    ImmersiveVrXRSessionMode
    ImmersiveArXRSessionMode
)

func XRSessionModeFromJS Uses

func XRSessionModeFromJS(value js.Value) XRSessionMode

XRSessionModeFromJS is converting a javascript value into a XRSessionMode enum value.

func (*XRSessionMode) JSValue Uses

func (this *XRSessionMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XRSessionMode) Value Uses

func (this XRSessionMode) Value() string

Value is converting this into javascript defined string value

type XRSpace Uses

type XRSpace struct {
    domcore.EventTarget
}

class: XRSpace

func XRSpaceFromJS Uses

func XRSpaceFromJS(value js.Wrapper) *XRSpace

XRSpaceFromJS is casting a js.Wrapper into XRSpace.

type XRStationaryReferenceSpace Uses

type XRStationaryReferenceSpace struct {
    XRReferenceSpace
}

class: XRStationaryReferenceSpace

func XRStationaryReferenceSpaceFromJS Uses

func XRStationaryReferenceSpaceFromJS(value js.Wrapper) *XRStationaryReferenceSpace

XRStationaryReferenceSpaceFromJS is casting a js.Wrapper into XRStationaryReferenceSpace.

func (*XRStationaryReferenceSpace) Subtype Uses

func (_this *XRStationaryReferenceSpace) Subtype() XRStationaryReferenceSpaceSubtype

Subtype returning attribute 'subtype' with type XRStationaryReferenceSpaceSubtype (idl: XRStationaryReferenceSpaceSubtype).

type XRStationaryReferenceSpaceSubtype Uses

type XRStationaryReferenceSpaceSubtype int

enum: XRStationaryReferenceSpaceSubtype

const (
    EyeLevelXRStationaryReferenceSpaceSubtype XRStationaryReferenceSpaceSubtype = iota
    FloorLevelXRStationaryReferenceSpaceSubtype
    PositionDisabledXRStationaryReferenceSpaceSubtype
)

func XRStationaryReferenceSpaceSubtypeFromJS Uses

func XRStationaryReferenceSpaceSubtypeFromJS(value js.Value) XRStationaryReferenceSpaceSubtype

XRStationaryReferenceSpaceSubtypeFromJS is converting a javascript value into a XRStationaryReferenceSpaceSubtype enum value.

func (*XRStationaryReferenceSpaceSubtype) JSValue Uses

func (this *XRStationaryReferenceSpaceSubtype) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XRStationaryReferenceSpaceSubtype) Value Uses

func (this XRStationaryReferenceSpaceSubtype) Value() string

Value is converting this into javascript defined string value

type XRTargetRayMode Uses

type XRTargetRayMode int

enum: XRTargetRayMode

const (
    GazeXRTargetRayMode XRTargetRayMode = iota
    TrackedPointerXRTargetRayMode
    ScreenXRTargetRayMode
)

func XRTargetRayModeFromJS Uses

func XRTargetRayModeFromJS(value js.Value) XRTargetRayMode

XRTargetRayModeFromJS is converting a javascript value into a XRTargetRayMode enum value.

func (*XRTargetRayMode) JSValue Uses

func (this *XRTargetRayMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (XRTargetRayMode) Value Uses

func (this XRTargetRayMode) Value() string

Value is converting this into javascript defined string value

type XRUnboundedReferenceSpace Uses

type XRUnboundedReferenceSpace struct {
    XRReferenceSpace
}

class: XRUnboundedReferenceSpace

func XRUnboundedReferenceSpaceFromJS Uses

func XRUnboundedReferenceSpaceFromJS(value js.Wrapper) *XRUnboundedReferenceSpace

XRUnboundedReferenceSpaceFromJS is casting a js.Wrapper into XRUnboundedReferenceSpace.

type XRView Uses

type XRView struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRView

func XRViewFromJS Uses

func XRViewFromJS(value js.Wrapper) *XRView

XRViewFromJS is casting a js.Wrapper into XRView.

func (*XRView) Eye Uses

func (_this *XRView) Eye() XREye

Eye returning attribute 'eye' with type XREye (idl: XREye).

func (*XRView) JSValue Uses

func (_this *XRView) JSValue() js.Value

func (*XRView) ProjectionMatrix Uses

func (_this *XRView) ProjectionMatrix() *javascript.Float32Array

ProjectionMatrix returning attribute 'projectionMatrix' with type javascript.Float32Array (idl: Float32Array).

func (*XRView) Transform Uses

func (_this *XRView) Transform() *XRRigidTransform

Transform returning attribute 'transform' with type XRRigidTransform (idl: XRRigidTransform).

func (*XRView) ViewMatrix Uses

func (_this *XRView) ViewMatrix() *javascript.Float32Array

ViewMatrix returning attribute 'viewMatrix' with type javascript.Float32Array (idl: Float32Array).

type XRViewerPose Uses

type XRViewerPose struct {
    XRPose
}

class: XRViewerPose

func XRViewerPoseFromJS Uses

func XRViewerPoseFromJS(value js.Wrapper) *XRViewerPose

XRViewerPoseFromJS is casting a js.Wrapper into XRViewerPose.

func (*XRViewerPose) Views Uses

func (_this *XRViewerPose) Views() *javascript.FrozenArray

Views returning attribute 'views' with type javascript.FrozenArray (idl: FrozenArray).

type XRViewport Uses

type XRViewport struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: XRViewport

func XRViewportFromJS Uses

func XRViewportFromJS(value js.Wrapper) *XRViewport

XRViewportFromJS is casting a js.Wrapper into XRViewport.

func (*XRViewport) Height Uses

func (_this *XRViewport) Height() int

Height returning attribute 'height' with type int (idl: long).

func (*XRViewport) JSValue Uses

func (_this *XRViewport) JSValue() js.Value

func (*XRViewport) Width Uses

func (_this *XRViewport) Width() int

Width returning attribute 'width' with type int (idl: long).

func (*XRViewport) X Uses

func (_this *XRViewport) X() int

X returning attribute 'x' with type int (idl: long).

func (*XRViewport) Y Uses

func (_this *XRViewport) Y() int

Y returning attribute 'y' with type int (idl: long).

type XRWebGLLayer Uses

type XRWebGLLayer struct {
    XRLayer
}

class: XRWebGLLayer

func NewXRWebGLLayer Uses

func NewXRWebGLLayer(session *XRSession, context *Union, layerInit *XRWebGLLayerInit) (_result *XRWebGLLayer)

func XRWebGLLayerFromJS Uses

func XRWebGLLayerFromJS(value js.Wrapper) *XRWebGLLayer

XRWebGLLayerFromJS is casting a js.Wrapper into XRWebGLLayer.

func (*XRWebGLLayer) Alpha Uses

func (_this *XRWebGLLayer) Alpha() bool

Alpha returning attribute 'alpha' with type bool (idl: boolean).

func (*XRWebGLLayer) Antialias Uses

func (_this *XRWebGLLayer) Antialias() bool

Antialias returning attribute 'antialias' with type bool (idl: boolean).

func (*XRWebGLLayer) Context Uses

func (_this *XRWebGLLayer) Context() *Union

Context returning attribute 'context' with type Union (idl: Union).

func (*XRWebGLLayer) Depth Uses

func (_this *XRWebGLLayer) Depth() bool

Depth returning attribute 'depth' with type bool (idl: boolean).

func (*XRWebGLLayer) Framebuffer Uses

func (_this *XRWebGLLayer) Framebuffer() *webgl.Framebuffer

Framebuffer returning attribute 'framebuffer' with type webgl.Framebuffer (idl: WebGLFramebuffer).

func (*XRWebGLLayer) FramebufferHeight Uses

func (_this *XRWebGLLayer) FramebufferHeight() uint

FramebufferHeight returning attribute 'framebufferHeight' with type uint (idl: unsigned long).

func (*XRWebGLLayer) FramebufferWidth Uses

func (_this *XRWebGLLayer) FramebufferWidth() uint

FramebufferWidth returning attribute 'framebufferWidth' with type uint (idl: unsigned long).

func (*XRWebGLLayer) GetViewport Uses

func (_this *XRWebGLLayer) GetViewport(view *XRView) (_result *XRViewport)

func (*XRWebGLLayer) RequestViewportScaling Uses

func (_this *XRWebGLLayer) RequestViewportScaling(viewportScaleFactor float64)

func (*XRWebGLLayer) Stencil Uses

func (_this *XRWebGLLayer) Stencil() bool

Stencil returning attribute 'stencil' with type bool (idl: boolean).

type XRWebGLLayerInit Uses

type XRWebGLLayerInit struct {
    Antialias              bool
    Depth                  bool
    Stencil                bool
    Alpha                  bool
    FramebufferScaleFactor float64
}

dictionary: XRWebGLLayerInit

func XRWebGLLayerInitFromJS Uses

func XRWebGLLayerInitFromJS(value js.Wrapper) *XRWebGLLayerInit

XRWebGLLayerInitFromJS is allocating a new XRWebGLLayerInit object and copy all values from input javascript object

func (*XRWebGLLayerInit) JSValue Uses

func (_this *XRWebGLLayerInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

Package webxr imports 6 packages (graph) and is imported by 1 packages. Updated 2019-09-21. Refresh now. Tools for package owners.