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.Value into Keyboard.
func KeyboardFromWrapper ¶
KeyboardFromJS is casting from something that holds a js.Value 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.Value into LayoutMap.
func LayoutMapFromWrapper ¶
LayoutMapFromJS is casting from something that holds a js.Value 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.Value) *LayoutMapEntryIterator
LayoutMapEntryIteratorFromJS is casting a js.Value into LayoutMapEntryIterator.
func LayoutMapEntryIteratorFromWrapper ¶
func LayoutMapEntryIteratorFromWrapper(input core.Wrapper) *LayoutMapEntryIterator
LayoutMapEntryIteratorFromJS is casting from something that holds a js.Value into LayoutMapEntryIterator.
func (*LayoutMapEntryIterator) JSValue ¶
func (_this *LayoutMapEntryIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*LayoutMapEntryIterator) Next ¶
func (_this *LayoutMapEntryIterator) Next() (_result *LayoutMapEntryIteratorValue)
type LayoutMapEntryIteratorValue ¶
dictionary: KeyboardLayoutMapEntryIteratorValue
func LayoutMapEntryIteratorValueFromJS ¶
func LayoutMapEntryIteratorValueFromJS(value js.Value) *LayoutMapEntryIteratorValue
LayoutMapEntryIteratorValueFromJS is allocating a new LayoutMapEntryIteratorValue object and copy all values in the value javascript object.
func (*LayoutMapEntryIteratorValue) JSValue ¶
func (_this *LayoutMapEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript 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.Value) *LayoutMapKeyIterator
LayoutMapKeyIteratorFromJS is casting a js.Value into LayoutMapKeyIterator.
func LayoutMapKeyIteratorFromWrapper ¶
func LayoutMapKeyIteratorFromWrapper(input core.Wrapper) *LayoutMapKeyIterator
LayoutMapKeyIteratorFromJS is casting from something that holds a js.Value into LayoutMapKeyIterator.
func (*LayoutMapKeyIterator) JSValue ¶
func (_this *LayoutMapKeyIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*LayoutMapKeyIterator) Next ¶
func (_this *LayoutMapKeyIterator) Next() (_result *LayoutMapKeyIteratorValue)
type LayoutMapKeyIteratorValue ¶
dictionary: KeyboardLayoutMapKeyIteratorValue
func LayoutMapKeyIteratorValueFromJS ¶
func LayoutMapKeyIteratorValueFromJS(value js.Value) *LayoutMapKeyIteratorValue
LayoutMapKeyIteratorValueFromJS is allocating a new LayoutMapKeyIteratorValue object and copy all values in the value javascript object.
func (*LayoutMapKeyIteratorValue) JSValue ¶
func (_this *LayoutMapKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript 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.Value) *LayoutMapValueIterator
LayoutMapValueIteratorFromJS is casting a js.Value into LayoutMapValueIterator.
func LayoutMapValueIteratorFromWrapper ¶
func LayoutMapValueIteratorFromWrapper(input core.Wrapper) *LayoutMapValueIterator
LayoutMapValueIteratorFromJS is casting from something that holds a js.Value into LayoutMapValueIterator.
func (*LayoutMapValueIterator) JSValue ¶
func (_this *LayoutMapValueIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*LayoutMapValueIterator) Next ¶
func (_this *LayoutMapValueIterator) Next() (_result *LayoutMapValueIteratorValue)
type LayoutMapValueIteratorValue ¶
dictionary: KeyboardLayoutMapValueIteratorValue
func LayoutMapValueIteratorValueFromJS ¶
func LayoutMapValueIteratorValueFromJS(value js.Value) *LayoutMapValueIteratorValue
LayoutMapValueIteratorValueFromJS is allocating a new LayoutMapValueIteratorValue object and copy all values in the value javascript object.
func (*LayoutMapValueIteratorValue) JSValue ¶
func (_this *LayoutMapValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript 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.Value) *PromiseLayoutMap
PromiseLayoutMapFromJS is casting a js.Value into PromiseLayoutMap.
func PromiseLayoutMapFromWrapper ¶
func PromiseLayoutMapFromWrapper(input core.Wrapper) *PromiseLayoutMap
PromiseLayoutMapFromJS is casting from something that holds a js.Value 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
JSValue returns the js.Value or js.Null() if _this is nil
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