Move symbol predicates to their own file.
This commit is contained in:
parent
13cae20838
commit
398add4e29
13
collects/mred/private/wxme/symbol-predicates.rkt
Normal file
13
collects/mred/private/wxme/symbol-predicates.rkt
Normal 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)))
|
|
@ -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%
|
||||
|
|
Loading…
Reference in New Issue
Block a user