Здравсвуйте,
Всё не могу понять зачем мне это надо, но Lisp просто под кожу залез, а тут ещё McCLIM. И вот здесь никак не могу понять, что я не могу понять, например
;;;;====McCLIM Guided Tour===========
(in-package :common-lisp-user)
(defpackage "HELLO"
(:use :clim :clim-lisp)
(:export "HELLO-MAIN"))
(in-package :hello)
(define-application-frame hello-world ()
((greeting :initform "Hello World"
:accessor greeting))
(:pane (make-pane 'hello-world-pane :width 200 :height 50)))
;;; ^ never miss it
(defclass hello-world-pane
(clim-stream-pane) ())
;;; Behavior defined by the Handle Repaint Protocol
(defmethod handle-repaint ((pane hello-world-pane) region)
(let ((w (bounding-rectangle-width pane))
(h (bounding-rectangle-height pane)))
;; Blanc the pane out
(draw-rectangle* pane 0 0 w h
:filled t
:ink (pane-background pane))
;; Draw greeting in center of pane
(draw-text* pane
(greeting *application-frame*)
(floor w 2) (floor h 2)
:align-x :center
:align-y :center)))
(defun hello-main ()
(run-frame-top-level
(make-application-frame 'hello-world)))
Ltk тоже написан на CLOS и тоже самое. Код уже вывесил.https://www.linux.org.ru/forum/development/14694129