Hide internal fields in color% and point%.
This commit is contained in:
parent
ba8684cb63
commit
1207ca77c4
|
@ -12,7 +12,7 @@
|
||||||
color->immutable-color)
|
color->immutable-color)
|
||||||
|
|
||||||
(define-local-member-name
|
(define-local-member-name
|
||||||
r g b)
|
r g b a)
|
||||||
|
|
||||||
(defclass color% object%
|
(defclass color% object%
|
||||||
(field [r 0]
|
(field [r 0]
|
||||||
|
|
|
@ -5,6 +5,8 @@
|
||||||
(provide point% point-x point-y
|
(provide point% point-x point-y
|
||||||
list-of-pair-of-real?)
|
list-of-pair-of-real?)
|
||||||
|
|
||||||
|
(define-local-member-name x y)
|
||||||
|
|
||||||
(define point%
|
(define point%
|
||||||
(class object%
|
(class object%
|
||||||
(init-field [x 0.0]
|
(init-field [x 0.0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user