;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; ;;; Copyright (c) 2009 by the authors. ;;; ;;; See LICENCE for details. (in-package :hu.dwim.presentation) ;;;;;; ;;; element/widget (def (component e) element/widget (standard/widget context-menu/mixin content/component selectable/mixin) () (:documentation "An ELEMENT/WIDGET has a single COMPONENT inside. It supports selection, highlight and commands within a LIST/WIDGET.")) (def (macro e) element/widget ((&rest args &key &allow-other-keys) &body content) `(make-instance 'element/widget ,@args :content ,(the-only-element content))) (def render-xhtml element/widget (bind (((:read-only-slots id style-class custom-style) -self-))