2.3 Drawing Classes
2.3.1 bitmap%
2.3.2 bitmap-dc%
2.3.3 brush%
2.3.4 brush-list%
2.3.5 color%
2.3.6 color-database<%>
2.3.7 dc<%>
2.3.8 dc-path%
2.3.9 font%
2.3.10 font-list%
2.3.11 font-name-directory<%>
2.3.12 gl-config%
2.3.13 gl-context<%>
2.3.14 pen%
2.3.15 pen-list%
2.3.16 point%
2.3.17 post-script-dc%
2.3.18 printer-dc%
2.3.19 ps-setup%
2.3.20 region%
On this page:
get-x
get-y
set-x
set-y

point% : class?

  superclass: object%

A point% is used for certain drawing commands. It encapsulates two real numbers.

(make-object point%)  (is-a?/c point%)
(make-object point% x y)  (is-a?/c point%)
  x : real?
  y : real?
Creates a point. If x and y are not supplied, they are set to 0.

(send a-point get-x)  real?
Gets the point x-value.

(send a-point get-y)  real?
Gets the point y-value.

(send a-point set-x x)  void?
  x : real?
Sets the point x-value.

(send a-point set-y y)  void?
  y : real?
Sets the point y-value.