Documentation ¶
Overview ¶
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 ¶
- type Keyboard
- type LayoutMap
- func (_this *LayoutMap) Entries() (_result *LayoutMapEntryIterator)
- func (_this *LayoutMap) ForEach(callback *LayoutMapForEach, optionalThisForCallbackArgument interface{})
- func (_this *LayoutMap) Get(key string) (_result *string)
- func (_this *LayoutMap) Has(key string) (_result bool)
- func (_this *LayoutMap) JSValue() js.Value
- func (_this *LayoutMap) Keys() (_result *LayoutMapKeyIterator)
- func (_this *LayoutMap) Size() int
- func (_this *LayoutMap) Values() (_result *LayoutMapValueIterator)
- type LayoutMapEntryIterator
- type LayoutMapEntryIteratorValue
- type LayoutMapForEach
- type LayoutMapForEachFunc
- type LayoutMapKeyIterator
- type LayoutMapKeyIteratorValue
- type LayoutMapValueIterator
- type LayoutMapValueIteratorValue
- type PromiseLayoutMap
- func (_this *PromiseLayoutMap) Catch(onRejected *PromiseLayoutMapOnRejected) (_result *PromiseLayoutMap)
- func (_this *PromiseLayoutMap) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseLayoutMap)
- func (_this *PromiseLayoutMap) JSValue() js.Value
- func (_this *PromiseLayoutMap) Then(onFulfilled *PromiseLayoutMapOnFulfilled, ...) (_result *PromiseLayoutMap)
- type PromiseLayoutMapOnFulfilled
- type PromiseLayoutMapOnFulfilledFunc
- type PromiseLayoutMapOnRejected
- type PromiseLayoutMapOnRejectedFunc
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyboard ¶
class: Keyboard
func KeyboardFromJS ¶
KeyboardFromJS is casting a js.Wrapper into Keyboard.
func (*Keyboard) GetLayoutMap ¶
func (_this *Keyboard) GetLayoutMap() (_result *PromiseLayoutMap)
func (*Keyboard) Lock ¶
func (_this *Keyboard) Lock(keyCodes []string) (_result *javascript.PromiseVoid)
type LayoutMap ¶
class: KeyboardLayoutMap
func LayoutMapFromJS ¶
LayoutMapFromJS is casting a js.Wrapper into LayoutMap.
func (*LayoutMap) Entries ¶
func (_this *LayoutMap) Entries() (_result *LayoutMapEntryIterator)
func (*LayoutMap) ForEach ¶
func (_this *LayoutMap) ForEach(callback *LayoutMapForEach, optionalThisForCallbackArgument interface{})
func (*LayoutMap) Keys ¶
func (_this *LayoutMap) Keys() (_result *LayoutMapKeyIterator)
func (*LayoutMap) Values ¶
func (_this *LayoutMap) Values() (_result *LayoutMapValueIterator)
type LayoutMapEntryIterator ¶
type LayoutMapEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: KeyboardLayoutMapEntryIterator
func LayoutMapEntryIteratorFromJS ¶
func LayoutMapEntryIteratorFromJS(value js.Wrapper) *LayoutMapEntryIterator
LayoutMapEntryIteratorFromJS is casting a js.Wrapper into LayoutMapEntryIterator.
func (*LayoutMapEntryIterator) JSValue ¶
func (_this *LayoutMapEntryIterator) JSValue() js.Value
func (*LayoutMapEntryIterator) Next ¶
func (_this *LayoutMapEntryIterator) Next() (_result *LayoutMapEntryIteratorValue)
type LayoutMapEntryIteratorValue ¶
dictionary: KeyboardLayoutMapEntryIteratorValue
func LayoutMapEntryIteratorValueFromJS ¶
func LayoutMapEntryIteratorValueFromJS(value js.Wrapper) *LayoutMapEntryIteratorValue
LayoutMapEntryIteratorValueFromJS is allocating a new LayoutMapEntryIteratorValue object and copy all values from input javascript object
func (*LayoutMapEntryIteratorValue) JSValue ¶
func (_this *LayoutMapEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type LayoutMapForEach ¶
LayoutMapForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func LayoutMapForEachToJS ¶
func LayoutMapForEachToJS(callback LayoutMapForEachFunc) *LayoutMapForEach
type LayoutMapForEachFunc ¶
callback: KeyboardLayoutMapForEach
func LayoutMapForEachFromJS ¶
func LayoutMapForEachFromJS(_value js.Value) LayoutMapForEachFunc
type LayoutMapKeyIterator ¶
type LayoutMapKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: KeyboardLayoutMapKeyIterator
func LayoutMapKeyIteratorFromJS ¶
func LayoutMapKeyIteratorFromJS(value js.Wrapper) *LayoutMapKeyIterator
LayoutMapKeyIteratorFromJS is casting a js.Wrapper into LayoutMapKeyIterator.
func (*LayoutMapKeyIterator) JSValue ¶
func (_this *LayoutMapKeyIterator) JSValue() js.Value
func (*LayoutMapKeyIterator) Next ¶
func (_this *LayoutMapKeyIterator) Next() (_result *LayoutMapKeyIteratorValue)
type LayoutMapKeyIteratorValue ¶
dictionary: KeyboardLayoutMapKeyIteratorValue
func LayoutMapKeyIteratorValueFromJS ¶
func LayoutMapKeyIteratorValueFromJS(value js.Wrapper) *LayoutMapKeyIteratorValue
LayoutMapKeyIteratorValueFromJS is allocating a new LayoutMapKeyIteratorValue object and copy all values from input javascript object
func (*LayoutMapKeyIteratorValue) JSValue ¶
func (_this *LayoutMapKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type LayoutMapValueIterator ¶
type LayoutMapValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: KeyboardLayoutMapValueIterator
func LayoutMapValueIteratorFromJS ¶
func LayoutMapValueIteratorFromJS(value js.Wrapper) *LayoutMapValueIterator
LayoutMapValueIteratorFromJS is casting a js.Wrapper into LayoutMapValueIterator.
func (*LayoutMapValueIterator) JSValue ¶
func (_this *LayoutMapValueIterator) JSValue() js.Value
func (*LayoutMapValueIterator) Next ¶
func (_this *LayoutMapValueIterator) Next() (_result *LayoutMapValueIteratorValue)
type LayoutMapValueIteratorValue ¶
dictionary: KeyboardLayoutMapValueIteratorValue
func LayoutMapValueIteratorValueFromJS ¶
func LayoutMapValueIteratorValueFromJS(value js.Wrapper) *LayoutMapValueIteratorValue
LayoutMapValueIteratorValueFromJS is allocating a new LayoutMapValueIteratorValue object and copy all values from input javascript object
func (*LayoutMapValueIteratorValue) JSValue ¶
func (_this *LayoutMapValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PromiseLayoutMap ¶
type PromiseLayoutMap struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseLayoutMapFromJS ¶
func PromiseLayoutMapFromJS(value js.Wrapper) *PromiseLayoutMap
PromiseLayoutMapFromJS is casting a js.Wrapper into PromiseLayoutMap.
func (*PromiseLayoutMap) Catch ¶
func (_this *PromiseLayoutMap) Catch(onRejected *PromiseLayoutMapOnRejected) (_result *PromiseLayoutMap)
func (*PromiseLayoutMap) Finally ¶
func (_this *PromiseLayoutMap) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseLayoutMap)
func (*PromiseLayoutMap) JSValue ¶
func (_this *PromiseLayoutMap) JSValue() js.Value
func (*PromiseLayoutMap) Then ¶
func (_this *PromiseLayoutMap) Then(onFulfilled *PromiseLayoutMapOnFulfilled, onRejected *PromiseLayoutMapOnRejected) (_result *PromiseLayoutMap)
type PromiseLayoutMapOnFulfilled ¶
PromiseLayoutMapOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseLayoutMapOnFulfilledToJS ¶
func PromiseLayoutMapOnFulfilledToJS(callback PromiseLayoutMapOnFulfilledFunc) *PromiseLayoutMapOnFulfilled
type PromiseLayoutMapOnFulfilledFunc ¶
type PromiseLayoutMapOnFulfilledFunc func(value *LayoutMap)
callback: PromiseTemplateOnFulfilled
func PromiseLayoutMapOnFulfilledFromJS ¶
func PromiseLayoutMapOnFulfilledFromJS(_value js.Value) PromiseLayoutMapOnFulfilledFunc
type PromiseLayoutMapOnRejected ¶
PromiseLayoutMapOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseLayoutMapOnRejectedToJS ¶
func PromiseLayoutMapOnRejectedToJS(callback PromiseLayoutMapOnRejectedFunc) *PromiseLayoutMapOnRejected
type PromiseLayoutMapOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseLayoutMapOnRejectedFromJS ¶
func PromiseLayoutMapOnRejectedFromJS(_value js.Value) PromiseLayoutMapOnRejectedFunc