Control¶
Functions to manipulate what is visible on the EZGL canvas. These functions are used by EZGL’s predefined buttons, but application code can also call them directly when needed.
Zoom Functions¶
-
void ezgl::zoom_in(canvas *cnv, double zoom_factor)¶
Zoom in on the center of the currently visible world.
-
void ezgl::zoom_out(canvas *cnv, double zoom_factor)¶
Zoom out from the center of the currently visible world.
-
void ezgl::zoom_in(canvas *cnv, point2d zoom_point, double zoom_factor)¶
Zoom in on a specific point in the GTK widget.