;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; ;;; Copyright (c) 2009 by the authors. ;;; ;;; See LICENCE for details. (in-package :hu.dwim.presentation) ;;;;;; ;;; xy/layout (def (component e) xy/layout (standard/layout contents/component) ((width :type number) (height :type number)) (:documentation "A LAYOUT that positions CHILD-COMPONENTs to their specified X, Y coordinates within its own coordinate system.")) (def (macro e) xy/layout ((&rest args &key &allow-other-keys) &body contents) `(make-instance 'xy/layout ,@args :contents (list ,@contents))) (def render-xhtml xy/layout (bind (((:read-only-slots width height) -self-))