Represents a canvas for drawing and manipulating graphics. More...
#include <canvas.h>
Public Member Functions | |
Canvas ()=default | |
Canvas (const std::string &id) | |
Canvas (const std::string &id, ImVec2 canvas_size) | |
Canvas (const std::string &id, ImVec2 canvas_size, CanvasGridSize grid_size) | |
Canvas (const std::string &id, ImVec2 canvas_size, CanvasGridSize grid_size, float global_scale) | |
void | SetCanvasGridSize (CanvasGridSize grid_size) |
void | UpdateColorPainter (gfx::Bitmap &bitmap, const ImVec4 &color, const std::function< void()> &event, int tile_size, float scale=1.0f) |
void | UpdateInfoGrid (ImVec2 bg_size, int tile_size, float scale=1.0f, float grid_size=64.0f, int label_id=0) |
void | DrawBackground (ImVec2 canvas_size=ImVec2(0, 0), bool drag=false) |
void | DrawContextMenu (gfx::Bitmap *bitmap=nullptr) |
bool | DrawTilePainter (const Bitmap &bitmap, int size, float scale=1.0f) |
bool | DrawSolidTilePainter (const ImVec4 &color, int size) |
void | DrawTileOnBitmap (int tile_size, gfx::Bitmap *bitmap, ImVec4 color) |
bool | DrawTileSelector (int size) |
void | DrawSelectRect (int current_map, int tile_size=0x10, float scale=1.0f) |
void | DrawBitmap (const Bitmap &bitmap, int border_offset=0, bool ready=true) |
void | DrawBitmap (const Bitmap &bitmap, int border_offset, float scale) |
void | DrawBitmap (const Bitmap &bitmap, int x_offset=0, int y_offset=0, float scale=1.0f, int alpha=255) |
void | DrawBitmapTable (const BitmapTable &gfx_bin) |
void | DrawBitmapGroup (std::vector< int > &group, std::vector< gfx::Bitmap > &tile16_individual_, int tile_size, float scale=1.0f) |
void | DrawOutline (int x, int y, int w, int h) |
void | DrawOutlineWithColor (int x, int y, int w, int h, ImVec4 color) |
void | DrawOutlineWithColor (int x, int y, int w, int h, uint32_t color) |
void | DrawRect (int x, int y, int w, int h, ImVec4 color) |
void | DrawText (std::string text, int x, int y) |
void | DrawGridLines (float grid_step) |
void | DrawGrid (float grid_step=64.0f, int tile_id_offset=8) |
void | DrawOverlay () |
void | DrawInfoGrid (float grid_step=64.0f, int tile_id_offset=8, int label_id=0) |
void | DrawLayeredElements () |
int | GetTileIdFromMousePos () |
void | SetCanvasSize (ImVec2 canvas_size) |
void | DrawCustomHighlight (float grid_step) |
bool | IsMouseHovering () const |
void | ZoomIn () |
void | ZoomOut () |
auto | points () const |
auto | mutable_points () |
auto | push_back (ImVec2 pos) |
auto | draw_list () const |
auto | zero_point () const |
auto | scrolling () const |
auto | drawn_tile_position () const |
auto | canvas_size () const |
void | set_global_scale (float scale) |
auto | global_scale () const |
auto | custom_labels_enabled () |
auto | custom_step () const |
auto | width () const |
auto | height () const |
auto | set_draggable (bool value) |
auto | labels (int i) |
auto | mutable_labels (int i) |
auto | set_current_labels (int i) |
auto | set_highlight_tile_id (int i) |
auto | selected_tiles () const |
auto | mutable_selected_tiles () |
auto | selected_tile_pos () const |
auto | set_selected_tile_pos (ImVec2 pos) |
bool | select_rect_active () const |
auto | selected_points () const |
auto | hover_mouse_pos () const |
Public Member Functions inherited from yaze::app::SharedRom | |
SharedRom ()=default | |
virtual | ~SharedRom ()=default |
std::shared_ptr< Rom > | shared_rom () |
auto | rom () |
Private Attributes | |
bool | draggable_ = false |
bool | is_hovered_ = false |
bool | enable_grid_ = true |
bool | enable_hex_tile_labels_ = false |
bool | enable_custom_labels_ = false |
bool | enable_context_menu_ = true |
bool | custom_canvas_size_ = false |
bool | select_rect_active_ = false |
float | custom_step_ = 0.0f |
float | global_scale_ = 1.0f |
int | current_labels_ = 0 |
int | highlight_tile_id = -1 |
uint16_t | edit_palette_index_ = 0 |
uint64_t | edit_palette_group_name_index_ = 0 |
uint64_t | edit_palette_sub_index_ = 0 |
bool | refresh_graphics_ = false |
std::string | canvas_id_ = "Canvas" |
std::string | context_id_ = "CanvasContext" |
ImDrawList * | draw_list_ |
ImVector< ImVec2 > | points_ |
ImVector< ImVector< std::string > > | labels_ |
ImVec2 | scrolling_ |
ImVec2 | canvas_sz_ |
ImVec2 | canvas_p0_ |
ImVec2 | canvas_p1_ |
ImVec2 | drawn_tile_pos_ |
ImVec2 | mouse_pos_in_canvas_ |
ImVec2 | selected_tile_pos_ = ImVec2(-1, -1) |
ImVector< ImVec2 > | selected_points_ |
std::vector< ImVec2 > | selected_tiles_ |
Additional Inherited Members | |
Static Public Attributes inherited from yaze::app::SharedRom | |
static std::shared_ptr< Rom > | shared_rom_ = nullptr |
Represents a canvas for drawing and manipulating graphics.
The Canvas class provides various functions for updating and drawing graphics on a canvas. It supports features such as bitmap drawing, context menu handling, tile painting, custom grid, and more.
|
default |
|
inlineexplicit |
Definition at line 37 of file canvas.h.
References context_id_.
|
inlineexplicit |
Definition at line 40 of file canvas.h.
References context_id_.
|
inlineexplicit |
Definition at line 44 of file canvas.h.
References context_id_, and SetCanvasGridSize().
|
inlineexplicit |
Definition at line 50 of file canvas.h.
References context_id_, and SetCanvasGridSize().
|
inline |
Definition at line 56 of file canvas.h.
References custom_step_, yaze::app::gui::k16x16, yaze::app::gui::k32x32, yaze::app::gui::k64x64, and yaze::app::gui::k8x8.
void yaze::app::gui::Canvas::UpdateColorPainter | ( | gfx::Bitmap & | bitmap, |
const ImVec4 & | color, | ||
const std::function< void()> & | event, | ||
int | tile_size, | ||
float | scale = 1.0f ) |
Definition at line 44 of file canvas.cc.
References DrawBackground(), DrawBitmap(), DrawContextMenu(), DrawGrid(), DrawOverlay(), DrawSolidTilePainter(), and global_scale_.
Referenced by yaze::app::editor::GraphicsEditor::UpdateGfxTabView().
void yaze::app::gui::Canvas::UpdateInfoGrid | ( | ImVec2 | bg_size, |
int | tile_size, | ||
float | scale = 1.0f, | ||
float | grid_size = 64.0f, | ||
int | label_id = 0 ) |
Definition at line 58 of file canvas.cc.
References DrawBackground(), DrawInfoGrid(), DrawOverlay(), and enable_custom_labels_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldProperties().
void yaze::app::gui::Canvas::DrawBackground | ( | ImVec2 | canvas_size = ImVec2(0, 0), |
bool | drag = false ) |
Definition at line 66 of file canvas.cc.
References canvas_id_, canvas_p0_, canvas_p1_, canvas_size(), canvas_sz_, custom_canvas_size_, draggable_, draw_list_, enable_context_menu_, global_scale_, yaze::app::gui::kMouseFlags, yaze::app::gui::kRectangleColor, yaze::app::gui::kWhiteColor, and scrolling_.
Referenced by yaze::app::gui::BitmapCanvasPipeline(), yaze::app::editor::OverworldEditor::DrawAreaGraphics(), yaze::app::editor::MessageEditor::DrawCurrentMessage(), yaze::app::editor::SpriteEditor::DrawCurrentSheets(), yaze::app::editor::DungeonEditor::DrawDungeonCanvas(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::app::editor::DungeonEditor::DrawObjectRenderer(), yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::SpriteEditor::DrawSpriteCanvas(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::editor::OverworldEditor::DrawTile8Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), yaze::app::gui::zeml::Render(), yaze::app::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::app::editor::GraphicsEditor::UpdateGfxSheetList(), UpdateInfoGrid(), yaze::app::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
void yaze::app::gui::Canvas::DrawContextMenu | ( | gfx::Bitmap * | bitmap = nullptr | ) |
Definition at line 101 of file canvas.cc.
References yaze::app::gfx::Bitmap::ApplyPaletteWithTransparent(), canvas_p0_, canvas_sz_, context_id_, custom_step_, edit_palette_group_name_index_, edit_palette_index_, edit_palette_sub_index_, enable_context_menu_, enable_grid_, enable_hex_tile_labels_, yaze::app::core::Renderer::GetInstance(), global_scale_, yaze::app::gui::InputHexWord(), yaze::app::gfx::k2bpp, yaze::app::gfx::k4bpp, yaze::app::gfx::k8bpp, yaze::app::gfx::kIndexed, yaze::app::gfx::kPaletteGroupAddressesKeys, yaze::app::gfx::Bitmap::Reformat(), refresh_graphics_, yaze::app::SharedRom::rom(), scrolling_, yaze::app::gui::SelectablePalettePipeline(), yaze::app::gfx::Bitmap::surface(), yaze::app::gui::TextWithSeparators(), and yaze::app::core::Renderer::UpdateBitmap().
Referenced by yaze::app::gui::BitmapCanvasPipeline(), yaze::app::editor::OverworldEditor::DrawAreaGraphics(), yaze::app::editor::MessageEditor::DrawCurrentMessage(), yaze::app::editor::SpriteEditor::DrawCurrentSheets(), yaze::app::editor::DungeonEditor::DrawDungeonCanvas(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::app::editor::DungeonEditor::DrawObjectRenderer(), yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::SpriteEditor::DrawSpriteCanvas(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::editor::OverworldEditor::DrawTile8Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), yaze::app::gui::zeml::Render(), yaze::app::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::app::editor::GraphicsEditor::UpdateGfxSheetList(), yaze::app::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
bool yaze::app::gui::Canvas::DrawTilePainter | ( | const Bitmap & | bitmap, |
int | size, | ||
float | scale = 1.0f ) |
Definition at line 206 of file canvas.cc.
References canvas_p0_, draw_list_, drawn_tile_pos_, yaze::app::gfx::Bitmap::is_active(), is_hovered_, mouse_pos_in_canvas_, points_, scrolling_, and yaze::app::gfx::Bitmap::texture().
Referenced by yaze::app::editor::OverworldEditor::CheckForOverworldEdits(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
bool yaze::app::gui::Canvas::DrawSolidTilePainter | ( | const ImVec4 & | color, |
int | size ) |
Definition at line 260 of file canvas.cc.
References canvas_p0_, canvas_sz_, draw_list_, drawn_tile_pos_, global_scale_, is_hovered_, points_, and scrolling_.
Referenced by UpdateColorPainter().
void yaze::app::gui::Canvas::DrawTileOnBitmap | ( | int | tile_size, |
gfx::Bitmap * | bitmap, | ||
ImVec4 | color ) |
Definition at line 319 of file canvas.cc.
References drawn_tile_pos_, global_scale_, yaze::app::gfx::Bitmap::width(), and yaze::app::gfx::Bitmap::WriteColor().
Referenced by yaze::app::editor::GraphicsEditor::UpdateGfxTabView().
bool yaze::app::gui::Canvas::DrawTileSelector | ( | int | size | ) |
Definition at line 340 of file canvas.cc.
References canvas_p0_, mouse_pos_in_canvas_, points_, and scrolling_.
Referenced by yaze::app::gui::BitmapCanvasPipeline(), yaze::app::editor::OverworldEditor::DrawAreaGraphics(), yaze::app::editor::SpriteEditor::DrawCurrentSheets(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::DungeonEditor::DrawObjectRenderer(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), yaze::app::editor::Tile16Editor::UpdateBlockset(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
void yaze::app::gui::Canvas::DrawSelectRect | ( | int | current_map, |
int | tile_size = 0x10, | ||
float | scale = 1.0f ) |
Definition at line 373 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gui::kWhiteColor, scrolling_, select_rect_active_, selected_points_, selected_tile_pos_, and selected_tiles_.
Referenced by yaze::app::editor::OverworldEditor::CheckForSelectRectangle().
void yaze::app::gui::Canvas::DrawBitmap | ( | const Bitmap & | bitmap, |
int | border_offset = 0, | ||
bool | ready = true ) |
Definition at line 461 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gfx::Bitmap::height(), yaze::app::gfx::Bitmap::texture(), and yaze::app::gfx::Bitmap::width().
Referenced by yaze::app::gui::BitmapCanvasPipeline(), yaze::app::editor::OverworldEditor::DrawAreaGraphics(), DrawBitmapGroup(), yaze::app::editor::MessageEditor::DrawCurrentMessage(), yaze::app::editor::SpriteEditor::DrawCurrentSheets(), yaze::app::editor::DungeonEditor::DrawDungeonCanvas(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::app::editor::DungeonEditor::DrawObjectRenderer(), yaze::app::editor::OverworldEditor::DrawOverworldMaps(), yaze::app::editor::OverworldEditor::DrawOverworldSprites(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::app::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
void yaze::app::gui::Canvas::DrawBitmap | ( | const Bitmap & | bitmap, |
int | border_offset, | ||
float | scale ) |
Definition at line 471 of file canvas.cc.
References canvas_p0_, canvas_p1_, draw_list_, yaze::app::gfx::Bitmap::height(), yaze::app::gfx::Bitmap::is_active(), yaze::app::gui::kWhiteColor, yaze::app::gfx::Bitmap::texture(), and yaze::app::gfx::Bitmap::width().
void yaze::app::gui::Canvas::DrawBitmap | ( | const Bitmap & | bitmap, |
int | x_offset = 0, | ||
int | y_offset = 0, | ||
float | scale = 1.0f, | ||
int | alpha = 255 ) |
Definition at line 482 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gfx::Bitmap::height(), yaze::app::gfx::Bitmap::is_active(), scrolling_, yaze::app::gfx::Bitmap::texture(), and yaze::app::gfx::Bitmap::width().
void yaze::app::gui::Canvas::DrawBitmapTable | ( | const BitmapTable & | gfx_bin | ) |
Definition at line 498 of file canvas.cc.
References canvas_p0_, and draw_list_.
Referenced by yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor().
void yaze::app::gui::Canvas::DrawBitmapGroup | ( | std::vector< int > & | group, |
std::vector< gfx::Bitmap > & | tile16_individual_, | ||
int | tile_size, | ||
float | scale = 1.0f ) |
Definition at line 536 of file canvas.cc.
References canvas_p0_, DrawBitmap(), scrolling_, select_rect_active_, and selected_points_.
Referenced by yaze::app::editor::OverworldEditor::CheckForSelectRectangle().
void yaze::app::gui::Canvas::DrawOutline | ( | int | x, |
int | y, | ||
int | w, | ||
int | h ) |
Definition at line 511 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gui::kOutlineRect, and scrolling_.
Referenced by yaze::app::editor::OverworldEditor::CheckForCurrentMap().
void yaze::app::gui::Canvas::DrawOutlineWithColor | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
ImVec4 | color ) |
Definition at line 519 of file canvas.cc.
References canvas_p0_, draw_list_, and scrolling_.
Referenced by yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs().
void yaze::app::gui::Canvas::DrawOutlineWithColor | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
uint32_t | color ) |
Definition at line 528 of file canvas.cc.
References canvas_p0_, draw_list_, and scrolling_.
void yaze::app::gui::Canvas::DrawRect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
ImVec4 | color ) |
Definition at line 602 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gui::kBlackColor, and scrolling_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldEntrances(), yaze::app::editor::OverworldEditor::DrawOverworldExits(), yaze::app::editor::OverworldEditor::DrawOverworldItems(), and yaze::app::editor::OverworldEditor::DrawOverworldSprites().
void yaze::app::gui::Canvas::DrawText | ( | std::string | text, |
int | x, | ||
int | y ) |
Definition at line 615 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gui::kBlackColor, yaze::app::gui::kWhiteColor, and scrolling_.
Referenced by yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::OverworldEditor::DrawOverworldEntrances(), yaze::app::editor::OverworldEditor::DrawOverworldExits(), yaze::app::editor::OverworldEditor::DrawOverworldItems(), and yaze::app::editor::OverworldEditor::DrawOverworldSprites().
void yaze::app::gui::Canvas::DrawGridLines | ( | float | grid_step | ) |
Definition at line 624 of file canvas.cc.
References canvas_p0_, canvas_p1_, canvas_sz_, draw_list_, global_scale_, and scrolling_.
Referenced by DrawGrid(), and DrawInfoGrid().
void yaze::app::gui::Canvas::DrawGrid | ( | float | grid_step = 64.0f, |
int | tile_id_offset = 8 ) |
Definition at line 686 of file canvas.cc.
References canvas_p0_, canvas_p1_, canvas_sz_, current_labels_, custom_step_, draw_list_, DrawCustomHighlight(), DrawGridLines(), enable_custom_labels_, enable_grid_, enable_hex_tile_labels_, global_scale_, yaze::app::gui::kWhiteColor, labels_, and scrolling_.
Referenced by yaze::app::gui::BitmapCanvasPipeline(), yaze::app::editor::OverworldEditor::DrawAreaGraphics(), yaze::app::editor::MessageEditor::DrawCurrentMessage(), yaze::app::editor::SpriteEditor::DrawCurrentSheets(), yaze::app::editor::DungeonEditor::DrawDungeonCanvas(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::app::editor::DungeonEditor::DrawObjectRenderer(), yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::SpriteEditor::DrawSpriteCanvas(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::editor::OverworldEditor::DrawTile8Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), yaze::app::gui::zeml::Render(), yaze::app::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::app::editor::GraphicsEditor::UpdateGfxSheetList(), yaze::app::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
void yaze::app::gui::Canvas::DrawOverlay | ( | ) |
Definition at line 737 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::app::gui::kWhiteColor, points_, scrolling_, and selected_points_.
Referenced by yaze::app::gui::BitmapCanvasPipeline(), yaze::app::editor::OverworldEditor::DrawAreaGraphics(), yaze::app::editor::MessageEditor::DrawCurrentMessage(), yaze::app::editor::SpriteEditor::DrawCurrentSheets(), yaze::app::editor::DungeonEditor::DrawDungeonCanvas(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::app::editor::DungeonEditor::DrawObjectRenderer(), yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::SpriteEditor::DrawSpriteCanvas(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::editor::OverworldEditor::DrawTile8Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), yaze::app::gui::zeml::Render(), yaze::app::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::app::editor::GraphicsEditor::UpdateGfxSheetList(), UpdateInfoGrid(), yaze::app::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
void yaze::app::gui::Canvas::DrawInfoGrid | ( | float | grid_step = 64.0f, |
int | tile_id_offset = 8, | ||
int | label_id = 0 ) |
Definition at line 639 of file canvas.cc.
References canvas_p0_, canvas_p1_, canvas_sz_, custom_step_, draw_list_, DrawCustomHighlight(), DrawGridLines(), enable_custom_labels_, enable_grid_, global_scale_, yaze::app::gui::kWhiteColor, labels_, and scrolling_.
Referenced by UpdateInfoGrid().
void yaze::app::gui::Canvas::DrawLayeredElements | ( | ) |
Definition at line 760 of file canvas.cc.
References draw_list().
|
inline |
Definition at line 133 of file canvas.h.
References canvas_sz_, custom_step_, global_scale_, and mouse_pos_in_canvas_.
Referenced by yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), and yaze::app::editor::Tile16Editor::UpdateBlockset().
|
inline |
Definition at line 144 of file canvas.h.
References canvas_size(), canvas_sz_, and custom_canvas_size_.
Referenced by yaze::app::editor::ScreenEditor::ScreenEditor().
void yaze::app::gui::Canvas::DrawCustomHighlight | ( | float | grid_step | ) |
Definition at line 673 of file canvas.cc.
References canvas_p0_, draw_list_, highlight_tile_id, and scrolling_.
Referenced by DrawGrid(), and DrawInfoGrid().
|
inline |
Definition at line 149 of file canvas.h.
References is_hovered_.
|
inline |
Definition at line 150 of file canvas.h.
References global_scale_.
Referenced by yaze::app::editor::OverworldEditor::DrawToolset().
|
inline |
Definition at line 151 of file canvas.h.
References global_scale_.
Referenced by yaze::app::editor::OverworldEditor::DrawToolset().
|
inline |
Definition at line 153 of file canvas.h.
References points_.
Referenced by yaze::app::editor::OverworldEditor::CheckForOverworldEdits(), yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::app::editor::ScreenEditor::DrawDungeonMapsTabs(), yaze::app::editor::OverworldEditor::DrawTile16Selector(), yaze::app::editor::Tile16Editor::UpdateBlockset(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 154 of file canvas.h.
References points_.
Referenced by yaze::app::editor::ScreenEditor::DrawDungeonMapsEditor().
|
inline |
|
inline |
Definition at line 156 of file canvas.h.
References draw_list_.
Referenced by DrawLayeredElements(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::OverworldEditor::DrawTile8Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), and yaze::app::editor::GraphicsEditor::UpdateGfxSheetList().
|
inline |
Definition at line 157 of file canvas.h.
References canvas_p0_.
Referenced by yaze::app::editor::OverworldEditor::CheckForCurrentMap(), yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), yaze::app::editor::OverworldEditor::DrawOverworldExits(), yaze::app::editor::OverworldEditor::DrawOverworldItems(), yaze::app::editor::OverworldEditor::DrawOverworldSprites(), yaze::app::editor::DungeonEditor::DrawRoomGraphics(), yaze::app::editor::OverworldEditor::DrawTile8Selector(), yaze::app::gui::GraphicsBinCanvasPipeline(), and yaze::app::editor::GraphicsEditor::UpdateGfxSheetList().
|
inline |
Definition at line 158 of file canvas.h.
References scrolling_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), yaze::app::editor::OverworldEditor::DrawOverworldExits(), yaze::app::editor::OverworldEditor::DrawOverworldItems(), and yaze::app::editor::OverworldEditor::DrawOverworldSprites().
|
inline |
Definition at line 159 of file canvas.h.
References drawn_tile_pos_.
Referenced by yaze::app::editor::OverworldEditor::DrawDebugWindow(), yaze::app::editor::OverworldEditor::DrawOverworldEdits(), and yaze::app::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 160 of file canvas.h.
References canvas_sz_.
Referenced by DrawBackground(), and SetCanvasSize().
|
inline |
Definition at line 161 of file canvas.h.
References global_scale_.
|
inline |
Definition at line 162 of file canvas.h.
References global_scale_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldMaps().
|
inline |
Definition at line 163 of file canvas.h.
References enable_custom_labels_.
Referenced by yaze::app::editor::Tile16Editor::DrawMenu(), and yaze::app::editor::Tile16Editor::InitBlockset().
|
inline |
Definition at line 164 of file canvas.h.
References custom_step_.
|
inline |
Definition at line 165 of file canvas.h.
References canvas_sz_.
|
inline |
Definition at line 166 of file canvas.h.
References canvas_sz_.
|
inline |
Definition at line 167 of file canvas.h.
References draggable_.
Referenced by yaze::app::editor::OverworldEditor::CheckForMousePan(), yaze::app::editor::OverworldEditor::DrawOverworldCanvas(), and yaze::app::editor::OverworldEditor::DrawToolset().
|
inline |
|
inline |
Definition at line 175 of file canvas.h.
References labels_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldProperties(), and yaze::app::editor::Tile16Editor::InitBlockset().
|
inline |
Definition at line 187 of file canvas.h.
References current_labels_.
|
inline |
Definition at line 188 of file canvas.h.
References highlight_tile_id.
Referenced by yaze::app::editor::OverworldEditor::UpdateUsageStats().
|
inline |
Definition at line 190 of file canvas.h.
References selected_tiles_.
Referenced by yaze::app::editor::OverworldEditor::CheckForOverworldEdits(), and yaze::app::editor::OverworldEditor::CheckForSelectRectangle().
|
inline |
Definition at line 191 of file canvas.h.
References selected_tiles_.
|
inline |
Definition at line 193 of file canvas.h.
References selected_tile_pos_.
Referenced by yaze::app::editor::OverworldEditor::CheckForSelectRectangle().
|
inline |
Definition at line 194 of file canvas.h.
References selected_tile_pos_.
Referenced by yaze::app::editor::OverworldEditor::CheckForSelectRectangle().
|
inline |
Definition at line 195 of file canvas.h.
References select_rect_active_.
Referenced by yaze::app::editor::OverworldEditor::CheckForOverworldEdits(), and yaze::app::editor::OverworldEditor::CheckForSelectRectangle().
|
inline |
Definition at line 196 of file canvas.h.
References selected_points_.
Referenced by yaze::app::editor::OverworldEditor::CheckForOverworldEdits().
|
inline |
Definition at line 198 of file canvas.h.
References mouse_pos_in_canvas_.
Referenced by yaze::app::editor::OverworldEditor::DrawOverworldEntrances().
|
private |
Definition at line 201 of file canvas.h.
Referenced by DrawBackground(), and set_draggable().
|
private |
Definition at line 202 of file canvas.h.
Referenced by DrawSolidTilePainter(), DrawTilePainter(), and IsMouseHovering().
|
private |
Definition at line 203 of file canvas.h.
Referenced by DrawContextMenu(), DrawGrid(), and DrawInfoGrid().
|
private |
Definition at line 204 of file canvas.h.
Referenced by DrawContextMenu(), and DrawGrid().
|
private |
Definition at line 205 of file canvas.h.
Referenced by custom_labels_enabled(), DrawGrid(), DrawInfoGrid(), and UpdateInfoGrid().
|
private |
Definition at line 206 of file canvas.h.
Referenced by DrawBackground(), and DrawContextMenu().
|
private |
Definition at line 207 of file canvas.h.
Referenced by DrawBackground(), and SetCanvasSize().
|
private |
Definition at line 208 of file canvas.h.
Referenced by DrawBitmapGroup(), DrawSelectRect(), and select_rect_active().
|
private |
Definition at line 210 of file canvas.h.
Referenced by custom_step(), DrawContextMenu(), DrawGrid(), DrawInfoGrid(), GetTileIdFromMousePos(), and SetCanvasGridSize().
|
private |
Definition at line 211 of file canvas.h.
Referenced by DrawBackground(), DrawContextMenu(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawSolidTilePainter(), DrawTileOnBitmap(), GetTileIdFromMousePos(), global_scale(), set_global_scale(), UpdateColorPainter(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 213 of file canvas.h.
Referenced by DrawGrid(), and set_current_labels().
|
private |
Definition at line 214 of file canvas.h.
Referenced by DrawCustomHighlight(), and set_highlight_tile_id().
|
private |
Definition at line 216 of file canvas.h.
Referenced by DrawContextMenu().
|
private |
Definition at line 217 of file canvas.h.
Referenced by DrawContextMenu().
|
private |
Definition at line 218 of file canvas.h.
Referenced by DrawContextMenu().
|
private |
Definition at line 219 of file canvas.h.
Referenced by DrawContextMenu().
|
private |
Definition at line 221 of file canvas.h.
Referenced by DrawBackground().
|
private |
|
private |
Definition at line 224 of file canvas.h.
Referenced by draw_list(), DrawBackground(), DrawBitmap(), DrawBitmap(), DrawBitmap(), DrawBitmapTable(), DrawCustomHighlight(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawOutline(), DrawOutlineWithColor(), DrawOutlineWithColor(), DrawOverlay(), DrawRect(), DrawSelectRect(), DrawSolidTilePainter(), DrawText(), and DrawTilePainter().
|
private |
Definition at line 225 of file canvas.h.
Referenced by DrawOverlay(), DrawSolidTilePainter(), DrawTilePainter(), DrawTileSelector(), mutable_points(), points(), and push_back().
|
private |
Definition at line 226 of file canvas.h.
Referenced by DrawGrid(), DrawInfoGrid(), labels(), and mutable_labels().
|
private |
Definition at line 227 of file canvas.h.
Referenced by DrawBackground(), DrawBitmap(), DrawBitmapGroup(), DrawContextMenu(), DrawCustomHighlight(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawOutline(), DrawOutlineWithColor(), DrawOutlineWithColor(), DrawOverlay(), DrawRect(), DrawSelectRect(), DrawSolidTilePainter(), DrawText(), DrawTilePainter(), DrawTileSelector(), and scrolling().
|
private |
Definition at line 228 of file canvas.h.
Referenced by canvas_size(), DrawBackground(), DrawContextMenu(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawSolidTilePainter(), GetTileIdFromMousePos(), height(), SetCanvasSize(), and width().
|
private |
Definition at line 229 of file canvas.h.
Referenced by DrawBackground(), DrawBitmap(), DrawBitmap(), DrawBitmap(), DrawBitmapGroup(), DrawBitmapTable(), DrawContextMenu(), DrawCustomHighlight(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawOutline(), DrawOutlineWithColor(), DrawOutlineWithColor(), DrawOverlay(), DrawRect(), DrawSelectRect(), DrawSolidTilePainter(), DrawText(), DrawTilePainter(), DrawTileSelector(), and zero_point().
|
private |
Definition at line 230 of file canvas.h.
Referenced by DrawBackground(), DrawBitmap(), DrawGrid(), DrawGridLines(), and DrawInfoGrid().
|
private |
Definition at line 231 of file canvas.h.
Referenced by drawn_tile_position(), DrawSolidTilePainter(), DrawTileOnBitmap(), and DrawTilePainter().
|
private |
Definition at line 232 of file canvas.h.
Referenced by DrawTilePainter(), DrawTileSelector(), GetTileIdFromMousePos(), and hover_mouse_pos().
|
private |
Definition at line 233 of file canvas.h.
Referenced by DrawSelectRect(), selected_tile_pos(), and set_selected_tile_pos().
|
private |
Definition at line 234 of file canvas.h.
Referenced by DrawBitmapGroup(), DrawOverlay(), DrawSelectRect(), and selected_points().
|
private |
Definition at line 235 of file canvas.h.
Referenced by DrawSelectRect(), mutable_selected_tiles(), and selected_tiles().