1 Overview
Windowing
Drawing
Editor
2 Reference
Windowing Classes
Windowing Functions
Drawing Classes
Drawing Functions
Editor Classes
Editor Functions
WXME Decoding
3 Configuration
4 Dynamic Loading
Index
On this page:
get-x
get-y
set-x
set-y
Version: 4.0.2

 

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.