translate method

void translate(
  1. int dx,
  2. int dy
)

Moves the origin dx cells right and dy down; the clip stays where it is on the surface.

Implementation

void translate(int dx, int dy) {
  _ox += dx;
  _oy += dy;
}