yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
canvas.cc File Reference
#include "canvas.h"
#include <cmath>
#include <string>
#include "app/core/platform/renderer.h"
#include "app/editor/graphics/graphics_editor.h"
#include "app/gfx/bitmap.h"
#include "app/gui/color.h"
#include "app/gui/input.h"
#include "app/gui/style.h"
#include "app/rom.h"
#include "imgui/imgui.h"
Include dependency graph for canvas.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::app
 Main namespace for the ImGui application.
 
namespace  yaze::app::gui
 Graphical User Interface (GUI) components for the application.
 
namespace  yaze::app::gui::anonymous_namespace{canvas.cc}
 

Functions

ImVec2 yaze::app::gui::anonymous_namespace{canvas.cc}::AlignPosToGrid (ImVec2 pos, float scale)
 
void yaze::app::gui::GraphicsBinCanvasPipeline (int width, int height, int tile_size, int num_sheets_to_load, int canvas_id, bool is_loaded, gfx::BitmapTable &graphics_bin)
 
void yaze::app::gui::BitmapCanvasPipeline (gui::Canvas &canvas, const gfx::Bitmap &bitmap, int width, int height, int tile_size, bool is_loaded, bool scrollbar, int canvas_id)
 

Variables

constexpr uint32_t yaze::app::gui::kBlackColor = IM_COL32(0, 0, 0, 255)
 
constexpr uint32_t yaze::app::gui::kRectangleColor = IM_COL32(32, 32, 32, 255)
 
constexpr uint32_t yaze::app::gui::kWhiteColor = IM_COL32(255, 255, 255, 255)
 
constexpr uint32_t yaze::app::gui::kOutlineRect = IM_COL32(255, 255, 255, 200)
 
constexpr ImGuiButtonFlags yaze::app::gui::kMouseFlags