Liking cljdoc? Tell your friends :D

chromex.app.braille-display-private

clj

Braille display access private API.

  • available since Chrome 31
Braille display access private API.

* available since Chrome 31
raw docstring

api-tableclj

source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-display-stateclj/smacro

(get-display-state)

Gets the current display state.

This function returns a core.async channel of type promise-chan which eventually receives a result value. Signature of the result value put on the channel is [result] where:

|result| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.

Gets the current display state.

This function returns a core.async channel of type `promise-chan` which eventually receives a result value.
Signature of the result value put on the channel is [result] where:

  |result| - ?

In case of an error the channel closes without receiving any value and relevant error object can be obtained via
chromex.error/get-last-error.
sourceraw docstring

get-display-state*cljs

(get-display-state* config)
source

on-display-state-changed*cljs

(on-display-state-changed* config channel & args)
source

on-key-event*cljs

(on-key-event* config channel & args)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.app.braille-display-private namespace.

Taps all valid non-deprecated events in chromex.app.braille-display-private namespace.
sourceraw docstring

tap-on-display-state-changed-eventsclj/smacro

(tap-on-display-state-changed-events channel & args)

Fired when a braille display is connected or disconnected.

Events will be put on the |channel| with signature [::on-display-state-changed [state]] where:

|state| - ?

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

Fired when a braille display is connected or disconnected.

Events will be put on the |channel| with signature [::on-display-state-changed [state]] where:

  |state| - ?

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
sourceraw docstring

tap-on-key-event-eventsclj/smacro

(tap-on-key-event-events channel & args)

Fired when an input event is received from the display.

Events will be put on the |channel| with signature [::on-key-event [event]] where:

|event| - ?

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

Fired when an input event is received from the display.

Events will be put on the |channel| with signature [::on-key-event [event]] where:

  |event| - ?

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
sourceraw docstring

update-bluetooth-braille-display-addressclj/smacro

(update-bluetooth-braille-display-address address)

Updates the single user-preferred braille device with the given bluetooth device address and starts or restarts the Brltty daemon.

|address| - ?

Updates the single user-preferred braille device with the given bluetooth device address and starts or restarts the Brltty
daemon.

  |address| - ?
sourceraw docstring

update-bluetooth-braille-display-address*cljs

(update-bluetooth-braille-display-address* config address)
source

write-dotsclj/smacro

(write-dots cells columns rows)

Write the given dot patterns to the display. The buffer contains one byte for each braille cell on the display, starting from the leftmost cell. Each byte contains a bit pattern indicating which dots should be raised in the corresponding cell with the low-order bit representing dot 1 and so on until bit 7 which corresponds to dot 8. If the number of bytes in the buffer is not equal to the display size, the buffer will either be clipped or padded with blank cells on the right. The buffer is a 2D array compressed into 1D. The |columns| and |rows| parameters give the original 2D dimensions of the buffer. To access an element cells[r][c], simply access cells[r * columns + c].

|cells| - ? |columns| - ? |rows| - ?

Write the given dot patterns to the display.  The buffer contains one byte for each braille cell on the display, starting
from the leftmost cell. Each byte contains a bit pattern indicating which dots should be raised in the corresponding cell
with the low-order bit representing dot 1 and so on until bit 7 which corresponds to dot 8.  If the number of bytes in the
buffer is not equal to the display size, the buffer will either be clipped or padded with blank cells on the right. The
buffer is a 2D array compressed into 1D. The |columns| and |rows| parameters give the original 2D dimensions of the buffer.
To access an element cells[r][c], simply access cells[r * columns + c].

  |cells| - ?
  |columns| - ?
  |rows| - ?
sourceraw docstring

write-dots*cljs

(write-dots* config cells columns rows)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close