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

package keyboard

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

Package keyboard contains keybaord layout and ability to capture keys that are normally reserved by the underlying host operating system.

It is intended to be used by web applications that provide a fullscreen immersive experience (like games or remote access apps).

Index

Package Files

doc.go keyboard.go

type Keyboard Uses

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

class: Keyboard

func KeyboardFromJS Uses

func KeyboardFromJS(value js.Wrapper) *Keyboard

KeyboardFromJS is casting a js.Wrapper into Keyboard.

func (*Keyboard) GetLayoutMap Uses

func (_this *Keyboard) GetLayoutMap() (_result *PromiseLayoutMap)

func (*Keyboard) JSValue Uses

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

func (*Keyboard) Lock Uses

func (_this *Keyboard) Lock(keyCodes []string) (_result *javascript.PromiseVoid)

func (*Keyboard) Unlock Uses

func (_this *Keyboard) Unlock()

type LayoutMap Uses

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

class: KeyboardLayoutMap

func LayoutMapFromJS Uses

func LayoutMapFromJS(value js.Wrapper) *LayoutMap

LayoutMapFromJS is casting a js.Wrapper into LayoutMap.

func (*LayoutMap) Entries Uses

func (_this *LayoutMap) Entries() (_result *LayoutMapEntryIterator)

func (*LayoutMap) ForEach Uses

func (_this *LayoutMap) ForEach(callback *LayoutMapForEach, optionalThisForCallbackArgument interface{})

func (*LayoutMap) Get Uses

func (_this *LayoutMap) Get(key string) (_result *string)

func (*LayoutMap) Has Uses

func (_this *LayoutMap) Has(key string) (_result bool)

func (*LayoutMap) JSValue Uses

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

func (*LayoutMap) Keys Uses

func (_this *LayoutMap) Keys() (_result *LayoutMapKeyIterator)

func (*LayoutMap) Size Uses

func (_this *LayoutMap) Size() int

Size returning attribute 'size' with type int (idl: long).

func (*LayoutMap) Values Uses

func (_this *LayoutMap) Values() (_result *LayoutMapValueIterator)

type LayoutMapEntryIterator Uses

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

class: KeyboardLayoutMapEntryIterator

func LayoutMapEntryIteratorFromJS Uses

func LayoutMapEntryIteratorFromJS(value js.Wrapper) *LayoutMapEntryIterator

LayoutMapEntryIteratorFromJS is casting a js.Wrapper into LayoutMapEntryIterator.

func (*LayoutMapEntryIterator) JSValue Uses

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

func (*LayoutMapEntryIterator) Next Uses

func (_this *LayoutMapEntryIterator) Next() (_result *LayoutMapEntryIteratorValue)

type LayoutMapEntryIteratorValue Uses

type LayoutMapEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: KeyboardLayoutMapEntryIteratorValue

func LayoutMapEntryIteratorValueFromJS Uses

func LayoutMapEntryIteratorValueFromJS(value js.Wrapper) *LayoutMapEntryIteratorValue

LayoutMapEntryIteratorValueFromJS is allocating a new LayoutMapEntryIteratorValue object and copy all values from input javascript object

func (*LayoutMapEntryIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type LayoutMapForEach Uses

type LayoutMapForEach js.Func

LayoutMapForEach is a javascript function type.

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

func LayoutMapForEachToJS Uses

func LayoutMapForEachToJS(callback LayoutMapForEachFunc) *LayoutMapForEach

type LayoutMapForEachFunc Uses

type LayoutMapForEachFunc func(currentValue string, currentKey string, listObj *LayoutMap)

callback: KeyboardLayoutMapForEach

func LayoutMapForEachFromJS Uses

func LayoutMapForEachFromJS(_value js.Value) LayoutMapForEachFunc

type LayoutMapKeyIterator Uses

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

class: KeyboardLayoutMapKeyIterator

func LayoutMapKeyIteratorFromJS Uses

func LayoutMapKeyIteratorFromJS(value js.Wrapper) *LayoutMapKeyIterator

LayoutMapKeyIteratorFromJS is casting a js.Wrapper into LayoutMapKeyIterator.

func (*LayoutMapKeyIterator) JSValue Uses

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

func (*LayoutMapKeyIterator) Next Uses

func (_this *LayoutMapKeyIterator) Next() (_result *LayoutMapKeyIteratorValue)

type LayoutMapKeyIteratorValue Uses

type LayoutMapKeyIteratorValue struct {
    Value string
    Done  bool
}

dictionary: KeyboardLayoutMapKeyIteratorValue

func LayoutMapKeyIteratorValueFromJS Uses

func LayoutMapKeyIteratorValueFromJS(value js.Wrapper) *LayoutMapKeyIteratorValue

LayoutMapKeyIteratorValueFromJS is allocating a new LayoutMapKeyIteratorValue object and copy all values from input javascript object

func (*LayoutMapKeyIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type LayoutMapValueIterator Uses

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

class: KeyboardLayoutMapValueIterator

func LayoutMapValueIteratorFromJS Uses

func LayoutMapValueIteratorFromJS(value js.Wrapper) *LayoutMapValueIterator

LayoutMapValueIteratorFromJS is casting a js.Wrapper into LayoutMapValueIterator.

func (*LayoutMapValueIterator) JSValue Uses

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

func (*LayoutMapValueIterator) Next Uses

func (_this *LayoutMapValueIterator) Next() (_result *LayoutMapValueIteratorValue)

type LayoutMapValueIteratorValue Uses

type LayoutMapValueIteratorValue struct {
    Value string
    Done  bool
}

dictionary: KeyboardLayoutMapValueIteratorValue

func LayoutMapValueIteratorValueFromJS Uses

func LayoutMapValueIteratorValueFromJS(value js.Wrapper) *LayoutMapValueIteratorValue

LayoutMapValueIteratorValueFromJS is allocating a new LayoutMapValueIteratorValue object and copy all values from input javascript object

func (*LayoutMapValueIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PromiseLayoutMap Uses

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

class: Promise

func PromiseLayoutMapFromJS Uses

func PromiseLayoutMapFromJS(value js.Wrapper) *PromiseLayoutMap

PromiseLayoutMapFromJS is casting a js.Wrapper into PromiseLayoutMap.

func (*PromiseLayoutMap) Catch Uses

func (_this *PromiseLayoutMap) Catch(onRejected *PromiseLayoutMapOnRejected) (_result *PromiseLayoutMap)

func (*PromiseLayoutMap) Finally Uses

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

func (*PromiseLayoutMap) JSValue Uses

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

func (*PromiseLayoutMap) Then Uses

func (_this *PromiseLayoutMap) Then(onFulfilled *PromiseLayoutMapOnFulfilled, onRejected *PromiseLayoutMapOnRejected) (_result *PromiseLayoutMap)

type PromiseLayoutMapOnFulfilled Uses

type PromiseLayoutMapOnFulfilled js.Func

PromiseLayoutMapOnFulfilled is a javascript function type.

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

func PromiseLayoutMapOnFulfilledToJS Uses

func PromiseLayoutMapOnFulfilledToJS(callback PromiseLayoutMapOnFulfilledFunc) *PromiseLayoutMapOnFulfilled

type PromiseLayoutMapOnFulfilledFunc Uses

type PromiseLayoutMapOnFulfilledFunc func(value *LayoutMap)

callback: PromiseTemplateOnFulfilled

func PromiseLayoutMapOnFulfilledFromJS Uses

func PromiseLayoutMapOnFulfilledFromJS(_value js.Value) PromiseLayoutMapOnFulfilledFunc

type PromiseLayoutMapOnRejected Uses

type PromiseLayoutMapOnRejected js.Func

PromiseLayoutMapOnRejected is a javascript function type.

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

func PromiseLayoutMapOnRejectedToJS Uses

func PromiseLayoutMapOnRejectedToJS(callback PromiseLayoutMapOnRejectedFunc) *PromiseLayoutMapOnRejected

type PromiseLayoutMapOnRejectedFunc Uses

type PromiseLayoutMapOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseLayoutMapOnRejectedFromJS Uses

func PromiseLayoutMapOnRejectedFromJS(_value js.Value) PromiseLayoutMapOnRejectedFunc

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

Package keyboard imports 2 packages (graph) and is imported by 1 packages. Updated 2019-09-19. Refresh now. Tools for package owners.