Add record-dc% in typed/racket/draw
This commit is contained in:
parent
718bc82b5d
commit
f758a6ed42
|
@ -27,6 +27,7 @@
|
|||
racket/draw/private/color
|
||||
racket/draw/private/font
|
||||
racket/draw/private/pen
|
||||
racket/draw/private/record-dc
|
||||
racket/draw/private/region)
|
||||
LoadFileKind
|
||||
Font-Family
|
||||
|
@ -56,6 +57,7 @@
|
|||
Point%
|
||||
PS-Setup%
|
||||
Radial-Gradient%
|
||||
Record-DC%
|
||||
Region%))
|
||||
|
||||
(begin-for-syntax
|
||||
|
@ -86,6 +88,7 @@
|
|||
[pen% (parse-type #'Pen%)]
|
||||
[ps-setup% (parse-type #'PS-Setup%)]
|
||||
[radial-gradient% (parse-type #'Radial-Gradient%)]
|
||||
[record-dc% (parse-type #'Record-DC%)]
|
||||
[region% (parse-type #'Region%)]
|
||||
;; 26 Drawing Functions
|
||||
[current-ps-setup (-Param (-inst (parse-type #'PS-Setup%)))]
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
Point%
|
||||
PS-Setup%
|
||||
Radial-Gradient%
|
||||
Record-DC%
|
||||
Region%)
|
||||
|
||||
(define-type LoadFileKind
|
||||
|
@ -498,6 +499,13 @@
|
|||
[set-bitmap ((Option (Instance Bitmap%)) -> Void)]
|
||||
[set-pixel (Real Real (Instance Color%) -> Boolean)]))
|
||||
|
||||
(define-type Record-DC%
|
||||
(Class #:implements DC<%>
|
||||
(init [width Real #:optional]
|
||||
[height Real #:optional])
|
||||
[get-recorded-datum (-> Any)]
|
||||
[get-recorded-procedure (-> (-> (Instance DC<%>) Void))]))
|
||||
|
||||
(define-type Font-List%
|
||||
(Class
|
||||
[find-or-create-font
|
||||
|
|
Loading…
Reference in New Issue
Block a user