yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
canvas_geometry.h File Reference
#include "app/gui/canvas/canvas_state.h"
#include "app/gui/canvas/canvas_utils.h"
#include "imgui/imgui.h"
Include dependency graph for canvas_geometry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 

Functions

CanvasGeometry yaze::gui::CalculateCanvasGeometry (const CanvasConfig &config, ImVec2 requested_size, ImVec2 cursor_screen_pos, ImVec2 content_region_avail)
 Calculate canvas geometry from configuration and ImGui context.
 
ImVec2 yaze::gui::CalculateMouseInCanvas (const CanvasGeometry &geometry, ImVec2 mouse_screen_pos)
 Calculate mouse position in canvas space.
 
bool yaze::gui::IsPointInCanvasBounds (const CanvasGeometry &geometry, ImVec2 point)
 Check if a point is within canvas bounds.
 
void yaze::gui::ApplyScrollDelta (CanvasGeometry &geometry, ImVec2 delta)
 Apply scroll delta to geometry.
 
ImVec2 yaze::gui::GetCanvasOrigin (const CanvasGeometry &geometry)
 Get origin point (canvas top-left + scroll offset)