yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_navigation.cc
Go to the documentation of this file.
2
4
5namespace yaze::editor {
6
7// View changes are requests: the navigation manager applies them when the
8// canvas child begins, so they are safe to call from shortcuts, the toolbar
9// or a context menu.
10
12 if (canvas_nav_)
13 canvas_nav_->ZoomIn();
14}
15
17 if (canvas_nav_)
18 canvas_nav_->ZoomOut();
19}
20
22 if (canvas_nav_)
23 canvas_nav_->ZoomToFit();
24}
25
27 if (canvas_nav_)
28 canvas_nav_->ResetOverworldView();
29}
30
32 if (canvas_nav_)
33 canvas_nav_->CenterOverworldView();
34}
35
36} // namespace yaze::editor
std::unique_ptr< CanvasNavigationManager > canvas_nav_
Editors are the view controllers for the application.