membrane.skija
run
(run view-fn)
(run view-fn options)
Open a window and call view-fn
to draw.
view-fn
should be a 0 argument function that returns a view.
view-fn
will be called for every repaint.
options
is a map that can contain the following keys
Optional parameters
window-title
: The string that appears in the title bar of the window.
window-start-width
: the starting width of the window
window-start-height
: the starting height of the window
note: The window may be resized.
window-start-x
: the starting x coordinate of the top left corner of the window
window-start-y
: the starting y coordinate of the top left corner of the window
note: The window may be moved.
run-sync
(run-sync view-fn)
(run-sync view-fn options)
Open a window and call view-fn
to draw. Returns when the window is closed.
view-fn
should be a 0 argument function that returns a view.
view-fn
will be called for every repaint.
options
is a map that can contain the following keys
Optional parameters
window-title
: The string that appears in the title bar of the window.
window-start-width
: the starting width of the window
window-start-height
: the starting height of the window
note: The window may be resized.
window-start-x
: the starting x coordinate of the top left corner of the window
window-start-y
: the starting y coordinate of the top left corner of the window
note: The window may be moved.