yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
canvas_draw.h File Reference
#include <string>
#include "app/gfx/core/bitmap.h"
#include "app/gfx/render/tilemap.h"
#include "app/gui/canvas/canvas_state.h"
#include "app/gui/canvas/canvas_types.h"
#include "imgui/imgui.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Functions

void yaze::gui::DrawBitmap (const CanvasRuntime &rt, gfx::Bitmap &bitmap, int border_offset=2, float scale=1.0f)
 
void yaze::gui::DrawBitmap (const CanvasRuntime &rt, gfx::Bitmap &bitmap, int x_offset, int y_offset, float scale=1.0f, int alpha=255)
 
void yaze::gui::DrawBitmap (const CanvasRuntime &rt, gfx::Bitmap &bitmap, ImVec2 dest_pos, ImVec2 dest_size, ImVec2 src_pos, ImVec2 src_size)
 
void yaze::gui::DrawBitmap (const CanvasRuntime &rt, gfx::Bitmap &bitmap, const BitmapDrawOpts &opts)
 
void yaze::gui::DrawBitmapPreview (const CanvasRuntime &rt, gfx::Bitmap &bitmap, const BitmapPreviewOptions &options)
 
bool yaze::gui::RenderPreviewPanel (const CanvasRuntime &rt, gfx::Bitmap &bmp, const PreviewPanelOpts &opts)
 
bool yaze::gui::DrawTilemapPainter (const CanvasRuntime &rt, gfx::Tilemap &tilemap, int current_tile, ImVec2 *out_drawn_pos)
 
bool yaze::gui::DrawTileSelector (const CanvasRuntime &rt, int size, int size_y, ImVec2 *out_selected_pos)
 
void yaze::gui::DrawSelectRect (const CanvasRuntime &rt, int current_map, int tile_size, float scale, CanvasSelection &selection)
 
void yaze::gui::DrawRect (const CanvasRuntime &rt, int x, int y, int w, int h, ImVec4 color)
 
void yaze::gui::DrawText (const CanvasRuntime &rt, const std::string &text, int x, int y)
 
void yaze::gui::DrawOutline (const CanvasRuntime &rt, int x, int y, int w, int h, ImU32 color=IM_COL32(255, 255, 255, 200))