Skip to content

Latest commit

 

History

History
324 lines (164 loc) · 4.35 KB

File metadata and controls

324 lines (164 loc) · 4.35 KB

API Documentation

Auto-generated from Magnolia source.


Module: gui-common

_default(value, fallback)

_err(message, detail)

returns :object

_clamp(v, minV, maxV)

Module: gui-thread

  • threadLib · import(...)

CommandQueue()

returns :object

FrameFence(workerCount)

returns :object

WorkerPool(numWorkers)

returns :object

StateGuard()

returns :object

parallelTransformVertices(vertices, transformFn, numWorkers)

AsyncLoader(cmdQueue)

returns :object

FrameScheduler(pool, cmdQueue)

returns :object

initWindowThreading(window, options)

threadingEnabled?(window)

commandQueue(window)

workerPool(window)

scheduler(window)

stateGuard(window)

flushThreadedCommands(window)

destroyWindowThreading(window)

returns ?

Module: lib\gui-web.oak

  • guiThread · import(...)

_isFn?(value)

_nextResourceId(webgl)

_webRecord(window, op)

createWindowState(title, width, height, frameMs, updateOnDispatch, options)

returns :object

showWindow(window)

hideWindow(window)

moveWindow(window, x, y)

resizeWindow(window, width, height)

setFullscreen(window, enabled)

lockResize(window, locked)

createCanvas(window, id, options)

initWebGL(window, contextName, attrs)

returns :object

webglCreateShader(window, shaderType, source)

returns :object

webglCreateProgram(window, vertexShader, fragmentShader)

returns :object

webglUseProgram(window, program)

returns :object

webglClearColor(window, r, g, b, a)

returns :object

webglViewport(window, x, y, width, height)

returns :object

webglClear(window, mask, colorBufferBit)

returns :object

webglDrawArrays(window, mode, first, count, trianglesMode)

returns :object

webglFlush(window)

returns :object

colorToCss(packed)

returns :string

beginFrame(window)

endFrame(window)

runFrameLoop(window, onFrame)

stopFrameLoop(window)

dispatchEvent(window, evt)

pollEvents(window)

setAlpha(window, alpha)

drawImageData(window, x, y, w, h, pixelBytes)

Module: std

identity(x)

is(x)

thunk returns :function

constantly(x)

thunk returns :function

_baseIterator(v)

returns :string

_asPredicate(pred)

returns :function

default(x, base)

  • _nToH · '0123456789abcdef'

toHex(n)

  • _hToN · {22 entries}

fromHex(s)

clamp(min, max, n, m)

returns :list

slice(xs, min, max)

clone(x)

returns :string

range(start, end, step)

returns :list

reverse(xs)

map(xs, f)

each(xs, f)

filter(xs, f)

exclude(xs, f)

separate(xs, f)

reduce(xs, seed, f)

flatten(xs)

compact(xs)

some(xs, pred)

every(xs, pred)

append(xs, ys)

join(xs, ys)

zip(xs, ys, zipper)

partition(xs, by)

uniq(xs, pred)

first(xs)

last(xs)

take(xs, n)

takeLast(xs, n)

find(xs, pred)

rfind(xs, pred)

indexOf(xs, x)

rindexOf(xs, x)

contains?(xs, x)

returns :bool

values(obj)

entries(obj)

fromEntries(entries)

merge(os...)

returns ?

once(f)

thunk returns :function

loop(max, f)

aloop(max, f, done)

serial(xs, f, done)

parallel(xs, f, done)

debounce(duration, firstCall, f)

thunk returns :function

stdin()

println(xs...)

Module: thread

spawn(fnToRun, args...)

makeChannel(size)

send(ch, value, callback)

recv(ch, callback)

close(_ch)

returns ?

cs Mutex()

returns :object

cs Semaphore(n)

returns :object

cs WaitGroup()

returns :object

cs Future(fnToRun)

returns :object

cs Pool(numWorkers)

returns :object

parallel(fns)

pmap(list, fnToRun)

pmapConcurrent(list, fnToRun, maxConcurrent)

race(fns)

pipeline(input, stages...)

retry(fnToRun, maxAttempts)

debounce(fnToRun, waitTime)

thunk returns :function

throttle(fnToRun, waitTime)

thunk returns :function