This is the calm Reference Manual, version 1.1.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 03:32:32 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
calm
CALM - Canvas Aided Lisp Magic
Vito Van
GNU General Public License, version 2
1.1.2
sdl2
(system).
sdl2-mixer
(system).
sdl2-image
(system).
str
(system).
swank
(system).
bt-semaphore
(system).
cl-cairo2
(system).
cl-gobject-introspection
(system).
package.lisp
(file).
config.lisp
(file).
events.lisp
(file).
utils.lisp
(file).
c.lisp
(file).
cairo.lisp
(file).
fontconfig.lisp
(file).
calm.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
calm/calm.asd
calm/package.lisp
calm/config.lisp
calm/events.lisp
calm/utils.lisp
calm/c.lisp
calm/cairo.lisp
calm/fontconfig.lisp
calm/calm.lisp
calm/package.lisp
calm
(system).
fontconfig
.
calm
.
calm-utils
.
c
.
calm/config.lisp
package.lisp
(file).
calm
(system).
*calm-audio-channels*
(special variable).
*calm-audio-chunksize*
(special variable).
*calm-audio-format*
(special variable).
*calm-audio-frequency*
(special variable).
*calm-audio-numchans*
(special variable).
*calm-debug-variable-a*
(special variable).
*calm-debug-variable-b*
(special variable).
*calm-debug-variable-c*
(special variable).
*calm-default-font-family*
(special variable).
*calm-default-font-size*
(special variable).
*calm-delay*
(special variable).
*calm-env-app-dir*
(special variable).
*calm-env-calm-cmd*
(special variable).
*calm-env-calm-home*
(special variable).
*calm-env-host-lisp*
(special variable).
*calm-redraw*
(special variable).
*calm-renderer-flags*
(special variable).
*calm-state-audio-open*
(special variable).
*calm-state-finger-just-tapped*
(special variable).
*calm-state-finger-x*
(special variable).
*calm-state-finger-y*
(special variable).
*calm-state-loaded-audio*
(special variable).
*calm-state-mouse-down*
(special variable).
*calm-state-mouse-inside-window*
(special variable).
*calm-state-mouse-just-clicked*
(special variable).
*calm-state-mouse-up*
(special variable).
*calm-state-mouse-x*
(special variable).
*calm-state-mouse-y*
(special variable).
*calm-window*
(special variable).
*calm-window-flags*
(special variable).
*calm-window-height*
(special variable).
*calm-window-title*
(special variable).
*calm-window-width*
(special variable).
*calm-window-x*
(special variable).
*calm-window-y*
(special variable).
calm-config
(function).
calm/events.lisp
config.lisp
(file).
calm
(system).
internal-on-fingerdown
(function).
internal-on-fingermotion
(function).
internal-on-fingerup
(function).
internal-on-keydown
(function).
internal-on-keyup
(function).
internal-on-mousebuttondown
(function).
internal-on-mousebuttonup
(function).
internal-on-mousemotion
(function).
internal-on-mousewheel
(function).
internal-on-textinput
(function).
internal-on-windowenter
(function).
internal-on-windowleave
(function).
internal-on-windowresized
(function).
calm/utils.lisp
events.lisp
(file).
calm
(system).
calm-log
(macro).
calm-log-fancy
(macro).
copy-dir
(function).
copy-file
(function).
exec
(function).
exec-if
(function).
get-from-env-or-ask
(function).
load-from-app
(function).
load-from-calm
(function).
set-cursor
(function).
touch-file
(function).
calm/c.lisp
utils.lisp
(file).
calm
(system).
get-ticks
(function).
halt-music
(function).
halt-wav
(function).
keq
(macro).
markup->layout
(function).
open-audio-if-not-yet
(function).
play-music
(function).
play-wav
(function).
playing
(function).
rrectangle
(function).
select-font-family
(function).
show-layout
(function).
show-markup
(function).
show-png
(function).
volume-music
(function).
volume-wav
(function).
with-state
(macro).
escape-char
(function).
escape-string
(function).
calm/fontconfig.lisp
cairo.lisp
(file).
calm
(system).
destroy-pattern
(function).
fc-create-pattern
(function).
fc-init
(function).
fc-init-reinitialize
(function).
fc-pattern-add-integer
(function).
fc-pattern-add-string
(function).
maybe-enum
(function).
calm/calm.lisp
fontconfig.lisp
(file).
calm
(system).
calm-init
(function).
calm-load-and-start
(function).
calm-start
(function).
calm-quit
(function).
internal-draw
(function).
internal-think
(function).
Packages are listed by definition order.
fontconfig
common-lisp
.
destroy-pattern
(function).
fc-create-pattern
(function).
fc-init
(function).
fc-init-reinitialize
(function).
fc-pattern-add-integer
(function).
fc-pattern-add-string
(function).
maybe-enum
(function).
calm
common-lisp
.
calm-init
(function).
calm-load-and-start
(function).
calm-start
(function).
*calm-audio-channels*
(special variable).
*calm-audio-chunksize*
(special variable).
*calm-audio-format*
(special variable).
*calm-audio-frequency*
(special variable).
*calm-audio-numchans*
(special variable).
*calm-debug-variable-a*
(special variable).
*calm-debug-variable-b*
(special variable).
*calm-debug-variable-c*
(special variable).
*calm-default-font-family*
(special variable).
*calm-default-font-size*
(special variable).
*calm-delay*
(special variable).
*calm-env-app-dir*
(special variable).
*calm-env-calm-cmd*
(special variable).
*calm-env-calm-home*
(special variable).
*calm-env-host-lisp*
(special variable).
*calm-redraw*
(special variable).
*calm-renderer-flags*
(special variable).
*calm-state-audio-open*
(special variable).
*calm-state-finger-just-tapped*
(special variable).
*calm-state-finger-x*
(special variable).
*calm-state-finger-y*
(special variable).
*calm-state-loaded-audio*
(special variable).
*calm-state-mouse-down*
(special variable).
*calm-state-mouse-inside-window*
(special variable).
*calm-state-mouse-just-clicked*
(special variable).
*calm-state-mouse-up*
(special variable).
*calm-state-mouse-x*
(special variable).
*calm-state-mouse-y*
(special variable).
*calm-window*
(special variable).
*calm-window-flags*
(special variable).
*calm-window-height*
(special variable).
*calm-window-title*
(special variable).
*calm-window-width*
(special variable).
*calm-window-x*
(special variable).
*calm-window-y*
(special variable).
calm-config
(function).
calm-quit
(function).
internal-draw
(function).
internal-on-fingerdown
(function).
internal-on-fingermotion
(function).
internal-on-fingerup
(function).
internal-on-keydown
(function).
internal-on-keyup
(function).
internal-on-mousebuttondown
(function).
internal-on-mousebuttonup
(function).
internal-on-mousemotion
(function).
internal-on-mousewheel
(function).
internal-on-textinput
(function).
internal-on-windowenter
(function).
internal-on-windowleave
(function).
internal-on-windowresized
(function).
internal-think
(function).
calm-utils
common-lisp
.
calm-log
(macro).
calm-log-fancy
(macro).
copy-dir
(function).
copy-file
(function).
exec
(function).
exec-if
(function).
get-from-env-or-ask
(function).
load-from-app
(function).
load-from-calm
(function).
set-cursor
(function).
touch-file
(function).
c
cl-cairo2
.
common-lisp
.
get-ticks
(function).
halt-music
(function).
halt-wav
(function).
keq
(macro).
markup->layout
(function).
open-audio-if-not-yet
(function).
play-music
(function).
play-wav
(function).
playing
(function).
rrectangle
(function).
select-font-family
(function).
show-layout
(function).
show-markup
(function).
show-png
(function).
volume-music
(function).
volume-wav
(function).
with-state
(macro).
escape-char
(function).
escape-string
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Key Event in JSCL + WebAssembly returns scancode value, since it has to be primitive values. But on desktop, we use SCANCODE directly, so here is a macro to unify this behaviour.
Let’s just cut the shit of loading ‘cl-fad’ and writing
yet another clumsy common lisp utility function
to recursively copy file system directories and lost all the file attributes.
Just use the ‘cp’ command for whoever’s sake
‘uiop:copy-file’ will remove some file attributes, so let’s use the platform command
exec ‘test’, if the exit-code is as expected, then exec ‘then’, else run ‘else’. if ‘re-exec-then’ is T, then exec ‘then’ again after the exec of ‘else’
‘var-name’ should be a string, or something could be fed to (string x)
this function will:
1. (uiop:getenv "VAR_NAME"), return the value if it were found
2. ask user to input a new value for this, and return
load lisp files from the ‘CALM_APP_DIR’ directory,
e.g. use (load-from-app "config.lisp") to load your custom configuration file
load lisp files from the ‘CALM_HOME’ directory,
e.g. use (load-from-calm "config.lisp") to load your custom configuration file
show Pango Markup
The canvas will be painted again and again by calling the ‘draw’ function,
setting it to ‘NIL’ means you don’t want the canvas to be painted again,
setting it back to ‘t’ will paint the canvas again and again by calling the ‘draw’ function, again.
calm
.
default drawing function, user should defun ‘draw’
default thinking function, user should defun ‘think’
You may not be drawing something, but you are always thinking.
Jump to: | C D E F G H I K L M O P R S T V W |
---|
Jump to: | C D E F G H I K L M O P R S T V W |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | C E F P S U |
---|
Jump to: | C E F P S U |
---|