keyboard

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 3 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyboard

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

class: Keyboard

func KeyboardFromJS

func KeyboardFromJS(value js.Value) *Keyboard

KeyboardFromJS is casting a js.Value into Keyboard.

func KeyboardFromWrapper

func KeyboardFromWrapper(input core.Wrapper) *Keyboard

KeyboardFromJS is casting from something that holds a js.Value into Keyboard.

func (*Keyboard) GetLayoutMap

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

func (*Keyboard) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*Keyboard) Lock

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

func (*Keyboard) Unlock

func (_this *Keyboard) Unlock()

type LayoutMap

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

class: KeyboardLayoutMap

func LayoutMapFromJS

func LayoutMapFromJS(value js.Value) *LayoutMap

LayoutMapFromJS is casting a js.Value into LayoutMap.

func LayoutMapFromWrapper

func LayoutMapFromWrapper(input core.Wrapper) *LayoutMap

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) Get

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

func (*LayoutMap) Has

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

func (*LayoutMap) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*LayoutMap) Keys

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

func (*LayoutMap) Size

func (_this *LayoutMap) Size() int

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

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

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

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

type LayoutMapForEach js.Func

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

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

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

type LayoutMapKeyIteratorValue struct {
	Value string
	Done  bool
}

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

type LayoutMapValueIteratorValue struct {
	Value string
	Done  bool
}

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

type PromiseLayoutMapOnFulfilled js.Func

PromiseLayoutMapOnFulfilled is a javascript function type.

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

type PromiseLayoutMapOnFulfilledFunc

type PromiseLayoutMapOnFulfilledFunc func(value *LayoutMap)

callback: PromiseTemplateOnFulfilled

func PromiseLayoutMapOnFulfilledFromJS

func PromiseLayoutMapOnFulfilledFromJS(_value js.Value) PromiseLayoutMapOnFulfilledFunc

type PromiseLayoutMapOnRejected

type PromiseLayoutMapOnRejected js.Func

PromiseLayoutMapOnRejected is a javascript function type.

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

type PromiseLayoutMapOnRejectedFunc

type PromiseLayoutMapOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseLayoutMapOnRejectedFromJS

func PromiseLayoutMapOnRejectedFromJS(_value js.Value) PromiseLayoutMapOnRejectedFunc

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL