Move symbol predicates to their own file.

This commit is contained in:
Sam Tobin-Hochstadt 2010-12-15 15:18:56 -05:00
parent 13cae20838
commit 398add4e29
2 changed files with 16 additions and 11 deletions

View File

@ -0,0 +1,13 @@
#lang racket/base
(provide (all-defined-out))
(define (family-symbol? s)
(memq s '(default decorative roman script
swiss modern symbol system)))
(define (style-symbol? s)
(memq s '(normal italic slant)))
(define (weight-symbol? s)
(memq s '(normal bold light)))
(define (smoothing-symbol? s)
(memq s '(default smoothed unsmoothed partly-smoothed)))

View File

@ -1,22 +1,14 @@
#lang scheme/base
(require "../kernel.ss")
(require "../kernel.ss" "symbol-predicates.rkt")
(define the-clipboard (get-the-clipboard))
(define the-x-selection-clipboard (get-the-x-selection))
(define (family-symbol? s)
(memq s '(default decorative roman script
swiss modern symbol system)))
(define (style-symbol? s)
(memq s '(normal italic slant)))
(define (weight-symbol? s)
(memq s '(normal bold light)))
(define (smoothing-symbol? s)
(memq s '(default smoothed unsmoothed partly-smoothed)))
(define (size? v) (and (exact-positive-integer? v)
(byte? v)))
(provide event%
(provide (all-from-out "symbol-predicates.rkt")
event%
mouse-event%
key-event%
timer%