yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::CanvasCoordinateSyncTest Class Reference

Tests for canvas coordinate synchronization. More...

Inheritance diagram for yaze::test::CanvasCoordinateSyncTest:
Collaboration diagram for yaze::test::CanvasCoordinateSyncTest:

Protected Member Functions

void SetUp () override
 

Protected Attributes

std::unique_ptr< gui::Canvascanvas_
 

Detailed Description

Tests for canvas coordinate synchronization.

These tests verify that the canvas coordinate system properly tracks mouse position for both hover and paint operations, fixing the regression where CheckForCurrentMap() in OverworldEditor was using raw ImGui mouse position instead of canvas-local coordinates.

Regression: overworld_editor.cc:1041 was using ImGui::GetIO().MousePos instead of canvas hover position, causing map highlighting to break.

Definition at line 26 of file canvas_coordinate_sync_test.cc.

Member Function Documentation

◆ SetUp()

void yaze::test::CanvasCoordinateSyncTest::SetUp ( )
inlineoverrideprotected

Definition at line 28 of file canvas_coordinate_sync_test.cc.

References canvas_, and yaze::gui::k16x16.

Member Data Documentation

◆ canvas_

std::unique_ptr<gui::Canvas> yaze::test::CanvasCoordinateSyncTest::canvas_
protected

Definition at line 35 of file canvas_coordinate_sync_test.cc.

Referenced by SetUp().


The documentation for this class was generated from the following file: