19 #ifndef EZGL_CONTROL_HPP
20 #define EZGL_CONTROL_HPP
22 #include "ezgl/point.hpp"
23 #include "ezgl/rectangle.hpp"
Responsible for creating, destroying, and maintaining the rendering context of a GtkWidget.
Definition: canvas.hpp:54
Represents a two-dimensional point.
Definition: point.hpp:27
Represents a rectangle as two diagonally opposite points.
Definition: rectangle.hpp:31
A library for creating a graphical user interface.
Definition: application.hpp:40
void translate_down(canvas *cnv, double translate_factor)
Translate down.
void zoom_in(canvas *cnv, double zoom_factor)
Zoom in on the center of the currently visible world.
void translate(canvas *cnv, double dx, double dy)
Translate by delta x and delta y (dx, dy)
void zoom_out(canvas *cnv, double zoom_factor)
Zoom out from the center of the currently visible world.
void translate_right(canvas *cnv, double translate_factor)
Translate right.
void translate_left(canvas *cnv, double translate_factor)
Translate left.
void zoom_fit(canvas *cnv, rectangle region)
Zoom in or out to fit an exact region of the world.
void translate_up(canvas *cnv, double translate_factor)
Translate up.