Ignore:
Timestamp:
01/18/2008 09:25:03 PM (18 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20080118212503-b91qub445w8qrw4h
Message:
  • Added checkbox and data-bound checkbox (db-checkbox) widgets.
  • CREATE-WIDGET for more flexible widget creation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/widget/generic.lisp

    r63 r84  
    22  (:use #:cl)
    33  (:export #:text #:widget #:parent-window #:column #:row #:inactive-background
    4            #:active-background #:scroll #:insertion-point #:destroy #:draw
    5            #:activate))
     4           #:active-background #:scroll #:insertion-point #:create-widget
     5           #:destroy #:draw #:activate))
    66
    77(in-package #:tui-widget-generic)
     
    2626   (row :type (integer 0) :initarg :row)
    2727   ;; TODO: initform for bg-color
    28    (inactive-background :initarg :inactive-background)
    29    (active-background :initarg :active-background)))
     28   (inactive-background :initform '(#\Nul 0) :initarg :inactive-background)
     29   (active-background :initform '(#\Nul 0) :initarg :active-background)))
    3030
    3131(defclass scroll ()
     
    3939
    4040
     41(defgeneric create-widget (type parent y x &key &allow-other-keys))
     42
    4143(defgeneric destroy (widget))
    4244
Note: See TracChangeset for help on using the changeset viewer.