(defpackage #:clog-user (:use #:cl #:clog) (:export start-tutorial)) (in-package :clog-user) ;; For web oriented apps consider using the :client-movement option. ;; See clog-gui-initialize documentation. (defun on-file-count (body) (let ((win (create-gui-window body :title "Count"))) (dotimes (n 100) ;; window-content is the root element for the clog-gui ;; windows (create-div (window-content win) :content n)))) (defun on-file-browse (body) (let* ((win (create-gui-window body :title "Browse")) (browser (create-child (window-content win) ""))))) (defun on-file-drawing (body) (let* ((win (create-gui-window body :title "Drawing")) (canvas (create-canvas (window-content win) :width 600 :height 400)) (cx (create-context2d canvas))) (set-border canvas :thin :solid :black) (fill-style cx :green) (fill-rect cx 10 10 150 100) (fill-style cx :blue) (font-style cx "bold 24px serif") (fill-text cx "Hello World" 10 150) (fill-style cx :red) (begin-path cx) (ellipse cx 200 200 50 7 0.78 0 6.29) (path-stroke cx) (path-fill cx))) (defun on-file-movies (body) (let ((win (create-gui-window body :title "Movie"))) (create-video (window-content win) :source "https://www.w3schools.com/html/mov_bbb.mp4"))) (defun on-help-about (body) (let* ((about (create-gui-window body :title "About" :content "