Modern, robust canvas for drawing and manipulating graphics. More...
#include <canvas.h>
Classes | |
struct | ContextMenuItem |
struct | PopupState |
Public Member Functions | |
Canvas () | |
~Canvas () | |
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) | |
Canvas (gfx::IRenderer *renderer) | |
Canvas (gfx::IRenderer *renderer, const std::string &id) | |
Canvas (gfx::IRenderer *renderer, const std::string &id, ImVec2 canvas_size) | |
Canvas (gfx::IRenderer *renderer, const std::string &id, ImVec2 canvas_size, CanvasGridSize grid_size) | |
Canvas (gfx::IRenderer *renderer, const std::string &id, ImVec2 canvas_size, CanvasGridSize grid_size, float global_scale) | |
void | SetRenderer (gfx::IRenderer *renderer) |
gfx::IRenderer * | renderer () const |
void | SetGridSize (CanvasGridSize grid_size) |
void | SetCanvasGridSize (CanvasGridSize grid_size) |
CanvasGridSize | grid_size () const |
void | UpdateColorPainter (gfx::IRenderer *renderer, gfx::Bitmap &bitmap, const ImVec4 &color, const std::function< void()> &event, int tile_size, float scale=1.0f) |
void | UpdateInfoGrid (ImVec2 bg_size, float grid_size=64.0f, int label_id=0) |
void | Begin (ImVec2 canvas_size=ImVec2(0, 0)) |
Begin canvas rendering (ImGui-style) | |
void | End () |
End canvas rendering (ImGui-style) | |
void | DrawBackground (ImVec2 canvas_size=ImVec2(0, 0)) |
void | DrawContextMenu () |
void | AddContextMenuItem (const ContextMenuItem &item) |
void | ClearContextMenuItems () |
void | SetContextMenuEnabled (bool enabled) |
void | OpenPersistentPopup (const std::string &popup_id, std::function< void()> render_callback) |
void | ClosePersistentPopup (const std::string &popup_id) |
void | RenderPersistentPopups () |
void | ShowAdvancedCanvasProperties () |
void | ShowScalingControls () |
void | SetZoomToFit (const gfx::Bitmap &bitmap) |
void | ResetView () |
void | ApplyConfigSnapshot (const canvas::CanvasConfig &snapshot) |
void | ApplyScaleSnapshot (const canvas::CanvasConfig &snapshot) |
CanvasConfig & | GetConfig () |
const CanvasConfig & | GetConfig () const |
CanvasSelection & | GetSelection () |
const CanvasSelection & | GetSelection () const |
void | InitializePaletteEditor (Rom *rom) |
void | ShowPaletteEditor () |
void | ShowColorAnalysis () |
bool | ApplyROMPalette (int group_index, int palette_index) |
void | ShowBppFormatSelector () |
void | ShowBppAnalysis () |
void | ShowBppConversionDialog () |
bool | ConvertBitmapFormat (gfx::BppFormat target_format) |
gfx::BppFormat | GetCurrentBppFormat () const |
void | InitializeEnhancedComponents () |
void | SetUsageMode (canvas::CanvasUsage usage) |
canvas::CanvasUsage | GetUsageMode () const |
void | RecordCanvasOperation (const std::string &operation_name, double time_ms) |
void | ShowPerformanceUI () |
void | ShowUsageReport () |
canvas::CanvasInteractionHandler & | GetInteractionHandler () |
const canvas::CanvasInteractionHandler & | GetInteractionHandler () const |
CanvasAutomationAPI * | GetAutomationAPI () |
void | InitializeDefaults () |
void | Cleanup () |
ImVec2 | GetMinimumSize () const |
ImVec2 | GetPreferredSize () const |
ImVec2 | GetCurrentSize () const |
void | SetAutoResize (bool auto_resize) |
bool | IsAutoResize () const |
void | ReserveTableSpace (const std::string &label="") |
bool | BeginTableCanvas (const std::string &label="") |
void | EndTableCanvas () |
bool | HasValidSelection () const |
bool | WasClicked (ImGuiMouseButton button=ImGuiMouseButton_Left) const |
bool | WasDoubleClicked (ImGuiMouseButton button=ImGuiMouseButton_Left) const |
ImVec2 | GetLastClickPosition () const |
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) |
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 (const std::string &text, int x, int y) |
void | DrawGridLines (float grid_step) |
void | DrawInfoGrid (float grid_step=64.0f, int tile_id_offset=8, int label_id=0) |
void | DrawLayeredElements () |
int | GetTileIdFromMousePos () |
void | DrawCustomHighlight (float grid_step) |
bool | IsMouseHovering () const |
void | ZoomIn () |
void | ZoomOut () |
const ImVector< ImVec2 > & | points () const |
ImVector< ImVec2 > * | mutable_points () |
auto | push_back (ImVec2 pos) |
auto | draw_list () const |
auto | zero_point () const |
auto | scrolling () const |
void | set_scrolling (ImVec2 scroll) |
auto | drawn_tile_position () const |
auto | canvas_size () const |
void | set_global_scale (float scale) |
void | set_draggable (bool draggable) |
bool | IsSelectRectActive () const |
const std::vector< ImVec2 > & | GetSelectedTiles () const |
ImVec2 | GetSelectedTilePos () const |
void | SetSelectedTilePos (ImVec2 pos) |
void | SetCanvasSize (ImVec2 canvas_size) |
float | GetGlobalScale () const |
void | SetGlobalScale (float scale) |
bool * | GetCustomLabelsEnabled () |
float | GetGridStep () const |
void | SetClampRectToLocalMaps (bool clamp) |
bool | GetClampRectToLocalMaps () const |
float | GetCanvasWidth () const |
float | GetCanvasHeight () const |
auto | select_rect_active () const |
auto | selected_tiles () const |
auto | selected_tile_pos () const |
void | set_selected_tile_pos (ImVec2 pos) |
auto | global_scale () const |
auto | custom_labels_enabled () |
auto | custom_step () const |
auto | width () const |
auto | height () const |
auto | canvas_id () const |
void | DrawBitmap (Bitmap &bitmap, int border_offset, float scale) |
void | DrawBitmap (Bitmap &bitmap, int x_offset, int y_offset, float scale=1.0f, int alpha=255) |
void | DrawBitmap (Bitmap &bitmap, ImVec2 dest_pos, ImVec2 dest_size, ImVec2 src_pos, ImVec2 src_size) |
void | DrawBitmapTable (const BitmapTable &gfx_bin) |
void | DrawBitmapGroup (std::vector< int > &group, gfx::Tilemap &tilemap, int tile_size, float scale=1.0f, int local_map_size=0x200, ImVec2 total_map_size=ImVec2(0x1000, 0x1000)) |
Draw group of bitmaps for multi-tile selection preview. | |
bool | DrawTilemapPainter (gfx::Tilemap &tilemap, int current_tile) |
void | DrawSelectRect (int current_map, int tile_size=0x10, float scale=1.0f) |
bool | DrawTileSelector (int size, int size_y=0) |
void | DrawGrid (float grid_step=64.0f, int tile_id_offset=8) |
void | DrawOverlay () |
auto | labels (int i) |
auto | mutable_labels (int i) |
auto | set_current_labels (int i) |
auto | set_highlight_tile_id (int i) |
auto | mutable_selected_tiles () |
auto | mutable_selected_points () |
auto | selected_points () const |
auto | hover_mouse_pos () const |
void | set_rom (Rom *rom) |
Rom * | rom () const |
Public Attributes | |
std::unique_ptr< gui::BppFormatUI > | bpp_format_ui_ |
std::unique_ptr< gui::BppConversionDialog > | bpp_conversion_dialog_ |
std::unique_ptr< gui::BppComparisonTool > | bpp_comparison_tool_ |
std::unique_ptr< canvas::CanvasModals > | modals_ |
std::unique_ptr< canvas::CanvasContextMenu > | context_menu_ |
std::shared_ptr< canvas::CanvasUsageTracker > | usage_tracker_ |
std::shared_ptr< canvas::CanvasPerformanceIntegration > | performance_integration_ |
canvas::CanvasInteractionHandler | interaction_handler_ |
Private Member Functions | |
void | DrawContextMenuItem (const ContextMenuItem &item) |
Modern, robust canvas for drawing and manipulating graphics.
Following ImGui design patterns, this Canvas class provides:
yaze::gui::Canvas::Canvas | ( | ) |
Definition at line 19 of file canvas.cc.
References InitializeDefaults().
|
default |
|
explicit |
Definition at line 22 of file canvas.cc.
References InitializeDefaults().
|
explicit |
Definition at line 27 of file canvas.cc.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::CanvasConfig::custom_canvas_size, and InitializeDefaults().
|
explicit |
Definition at line 34 of file canvas.cc.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::CanvasConfig::custom_canvas_size, grid_size(), InitializeDefaults(), and SetGridSize().
|
explicit |
Definition at line 42 of file canvas.cc.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::CanvasConfig::custom_canvas_size, global_scale(), yaze::gui::CanvasConfig::global_scale, grid_size(), InitializeDefaults(), and SetGridSize().
|
explicit |
Definition at line 52 of file canvas.cc.
References InitializeDefaults().
|
explicit |
Definition at line 54 of file canvas.cc.
References InitializeDefaults().
|
explicit |
Definition at line 59 of file canvas.cc.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::CanvasConfig::custom_canvas_size, and InitializeDefaults().
|
explicit |
Definition at line 66 of file canvas.cc.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::CanvasConfig::custom_canvas_size, grid_size(), InitializeDefaults(), and SetGridSize().
|
explicit |
Definition at line 74 of file canvas.cc.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::CanvasConfig::custom_canvas_size, global_scale(), yaze::gui::CanvasConfig::global_scale, grid_size(), InitializeDefaults(), and SetGridSize().
|
inline |
Definition at line 74 of file canvas.h.
References renderer(), and renderer_.
|
inline |
|
inline |
Definition at line 77 of file canvas.h.
References config_, grid_size(), yaze::gui::CanvasConfig::grid_step, yaze::gui::k16x16, yaze::gui::k32x32, yaze::gui::k64x64, and yaze::gui::k8x8.
Referenced by Canvas(), Canvas(), Canvas(), Canvas(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), and SetCanvasGridSize().
|
inline |
Definition at line 95 of file canvas.h.
References grid_size(), and SetGridSize().
|
inline |
Definition at line 97 of file canvas.h.
References config_, yaze::gui::CanvasConfig::grid_step, yaze::gui::k16x16, yaze::gui::k32x32, yaze::gui::k64x64, and yaze::gui::k8x8.
Referenced by Canvas(), Canvas(), Canvas(), Canvas(), yaze::gui::CanvasAutomationAPI::GetDimensions(), SetCanvasGridSize(), SetGridSize(), and UpdateInfoGrid().
void yaze::gui::Canvas::UpdateColorPainter | ( | gfx::IRenderer * | renderer, |
gfx::Bitmap & | bitmap, | ||
const ImVec4 & | color, | ||
const std::function< void()> & | event, | ||
int | tile_size, | ||
float | scale = 1.0f |
||
) |
Definition at line 357 of file canvas.cc.
References config_, DrawBackground(), DrawBitmap(), DrawContextMenu(), DrawGrid(), DrawOverlay(), DrawSolidTilePainter(), yaze::gui::CanvasConfig::global_scale, global_scale_, and yaze::gfx::Bitmap::UpdateTexture().
Referenced by yaze::editor::GraphicsEditor::UpdateGfxTabView().
void yaze::gui::Canvas::UpdateInfoGrid | ( | ImVec2 | bg_size, |
float | grid_size = 64.0f , |
||
int | label_id = 0 |
||
) |
Definition at line 373 of file canvas.cc.
References config_, DrawBackground(), DrawInfoGrid(), DrawOverlay(), yaze::gui::CanvasConfig::enable_custom_labels, enable_custom_labels_, and grid_size().
Referenced by yaze::editor::OverworldEditor::DrawOverworldProperties().
void yaze::gui::Canvas::Begin | ( | ImVec2 | canvas_size = ImVec2(0, 0) | ) |
Begin canvas rendering (ImGui-style)
Modern alternative to DrawBackground(). Handles:
Usage:
Definition at line 338 of file canvas.cc.
References canvas_size(), DrawBackground(), and DrawContextMenu().
Referenced by yaze::gui::ScopedCanvas::ScopedCanvas(), yaze::gui::ScopedCanvas::ScopedCanvas(), and yaze::gui::ScopedCanvas::ScopedCanvas().
void yaze::gui::Canvas::End | ( | ) |
End canvas rendering (ImGui-style)
Modern alternative to manual DrawGrid() + DrawOverlay(). Automatically draws grid and overlay if enabled.
Definition at line 344 of file canvas.cc.
References config_, DrawGrid(), DrawOverlay(), yaze::gui::CanvasConfig::enable_grid, and RenderPersistentPopups().
Referenced by yaze::gui::ScopedCanvas::~ScopedCanvas().
void yaze::gui::Canvas::DrawBackground | ( | ImVec2 | canvas_size = ImVec2(0, 0) | ) |
Definition at line 381 of file canvas.cc.
References yaze::gui::CanvasUtils::CalculateCanvasSize(), yaze::gui::CanvasUtils::CalculateScaledCanvasSize(), canvas_id_, canvas_p0_, canvas_p1_, canvas_size(), yaze::gui::CanvasConfig::canvas_size, canvas_sz_, config_, yaze::gui::CanvasConfig::custom_canvas_size, draw_list_, enable_context_menu_, yaze::gui::CanvasConfig::global_scale, yaze::gui::CanvasConfig::is_draggable, yaze::gui::kMouseFlags, yaze::gui::kRectangleColor, yaze::gui::kWhiteColor, mouse_pos_in_canvas_, and scrolling_.
Referenced by Begin(), yaze::gui::BeginCanvas(), yaze::gui::BitmapCanvasPipeline(), yaze::editor::OverworldEditor::DrawAreaGraphics(), yaze::editor::MessageEditor::DrawCurrentMessage(), yaze::editor::SpriteEditor::DrawCurrentSheets(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::editor::DungeonObjectSelector::DrawObjectRenderer(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::editor::SpriteEditor::DrawSpriteCanvas(), yaze::editor::OverworldEditor::DrawTile8Selector(), yaze::gui::GraphicsBinCanvasPipeline(), yaze::gui::TileSelectorWidget::Render(), yaze::gui::TableCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::editor::GraphicsEditor::UpdateGfxSheetList(), UpdateInfoGrid(), yaze::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::DrawContextMenu | ( | ) |
Definition at line 441 of file canvas.cc.
References ApplyConfigSnapshot(), ApplyScaleSnapshot(), yaze::gui::canvas::CanvasConfig::auto_resize, yaze::gui::CanvasConfig::auto_resize, bitmap_, canvas_id_, canvas_p0_, yaze::gui::canvas::CanvasConfig::canvas_size, canvas_sz_, config_, yaze::gui::canvas::CanvasConfig::content_size, yaze::gui::CanvasConfig::content_size, context_id_, context_menu_, context_menu_items_, custom_step_, draggable_, DrawContextMenuItem(), yaze::gui::canvas::CanvasConfig::enable_context_menu, yaze::gui::CanvasConfig::enable_context_menu, enable_context_menu_, yaze::gui::canvas::CanvasConfig::enable_custom_labels, yaze::gui::CanvasConfig::enable_custom_labels, enable_custom_labels_, yaze::gui::canvas::CanvasConfig::enable_grid, yaze::gui::CanvasConfig::enable_grid, enable_grid_, yaze::gui::canvas::CanvasConfig::enable_hex_labels, yaze::gui::CanvasConfig::enable_hex_labels, enable_hex_tile_labels_, yaze::gui::canvas::CanvasConfig::global_scale, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gui::canvas::CanvasConfig::grid_step, yaze::gui::CanvasConfig::grid_step, yaze::gui::canvas::CanvasConfig::is_draggable, yaze::gui::CanvasConfig::is_draggable, yaze::gui::canvas::CanvasContextMenu::kOpenAdvancedProperties, yaze::gui::canvas::CanvasContextMenu::kOpenScalingControls, yaze::gui::canvas::CanvasContextMenu::kResetView, yaze::gui::canvas::CanvasContextMenu::kSetGridStep, yaze::gui::canvas::CanvasContextMenu::kSetScale, yaze::gui::canvas::CanvasContextMenu::kToggleAutoResize, yaze::gui::canvas::CanvasContextMenu::kToggleContextMenu, yaze::gui::canvas::CanvasContextMenu::kToggleCustomLabels, yaze::gui::canvas::CanvasContextMenu::kToggleDraggable, yaze::gui::canvas::CanvasContextMenu::kToggleGrid, yaze::gui::canvas::CanvasContextMenu::kToggleHexLabels, yaze::gui::canvas::CanvasContextMenu::kZoomIn, yaze::gui::canvas::CanvasContextMenu::kZoomOut, yaze::gui::canvas::CanvasContextMenu::kZoomToFit, modals_, yaze::gfx::Bitmap::mutable_palette(), yaze::gui::canvas::CanvasConfig::on_config_changed, yaze::gui::canvas::CanvasConfig::on_scale_changed, ResetView(), rom_, yaze::gui::canvas::CanvasConfig::scrolling, scrolling_, SetGlobalScale(), SetZoomToFit(), ShowAdvancedCanvasProperties(), ShowScalingControls(), and usage_tracker_.
Referenced by Begin(), yaze::gui::BeginCanvas(), yaze::gui::BitmapCanvasPipeline(), yaze::editor::OverworldEditor::DrawAreaGraphics(), yaze::editor::MessageEditor::DrawCurrentMessage(), yaze::editor::SpriteEditor::DrawCurrentSheets(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::editor::DungeonObjectSelector::DrawObjectRenderer(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::SpriteEditor::DrawSpriteCanvas(), yaze::editor::OverworldEditor::DrawTile8Selector(), yaze::gui::GraphicsBinCanvasPipeline(), yaze::gui::TileSelectorWidget::Render(), yaze::gui::TableCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::editor::GraphicsEditor::UpdateGfxSheetList(), yaze::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::AddContextMenuItem | ( | const ContextMenuItem & | item | ) |
Definition at line 612 of file canvas.cc.
References context_menu_items_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), and yaze::editor::MapPropertiesSystem::SetupCanvasContextMenu().
void yaze::gui::Canvas::ClearContextMenuItems | ( | ) |
Definition at line 616 of file canvas.cc.
References context_menu_items_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), and yaze::editor::MapPropertiesSystem::SetupCanvasContextMenu().
|
inline |
Definition at line 198 of file canvas.h.
References context_menu_enabled_.
Referenced by yaze::editor::OverworldEditor::DrawScratchSpace().
void yaze::gui::Canvas::OpenPersistentPopup | ( | const std::string & | popup_id, |
std::function< void()> | render_callback | ||
) |
Definition at line 620 of file canvas.cc.
References active_popups_, yaze::gui::Canvas::PopupState::is_open, yaze::gui::Canvas::PopupState::popup_id, and yaze::gui::Canvas::PopupState::render_callback.
void yaze::gui::Canvas::ClosePersistentPopup | ( | const std::string & | popup_id | ) |
Definition at line 640 of file canvas.cc.
References active_popups_.
void yaze::gui::Canvas::RenderPersistentPopups | ( | ) |
Definition at line 650 of file canvas.cc.
References active_popups_.
Referenced by DrawOverlay(), and End().
void yaze::gui::Canvas::ShowAdvancedCanvasProperties | ( | ) |
Definition at line 1586 of file canvas.cc.
References yaze::gui::canvas::CanvasConfig::auto_resize, yaze::gui::CanvasConfig::auto_resize, bitmap_, canvas_id_, yaze::gui::canvas::CanvasConfig::canvas_size, yaze::gui::CanvasConfig::canvas_size, canvas_sz_, config_, yaze::gui::canvas::CanvasConfig::content_size, yaze::gui::CanvasConfig::content_size, custom_step_, draggable_, yaze::gui::canvas::CanvasConfig::enable_context_menu, yaze::gui::CanvasConfig::enable_context_menu, enable_context_menu_, yaze::gui::canvas::CanvasConfig::enable_custom_labels, yaze::gui::CanvasConfig::enable_custom_labels, enable_custom_labels_, yaze::gui::canvas::CanvasConfig::enable_grid, yaze::gui::CanvasConfig::enable_grid, enable_grid_, yaze::gui::canvas::CanvasConfig::enable_hex_labels, yaze::gui::CanvasConfig::enable_hex_labels, enable_hex_tile_labels_, GetMinimumSize(), GetPreferredSize(), yaze::gui::canvas::CanvasConfig::global_scale, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gui::canvas::CanvasConfig::grid_step, yaze::gui::CanvasConfig::grid_step, yaze::gfx::Bitmap::height(), yaze::gui::canvas::CanvasConfig::is_draggable, yaze::gui::CanvasConfig::is_draggable, modals_, yaze::gui::canvas::CanvasConfig::on_config_changed, yaze::gui::canvas::CanvasConfig::on_scale_changed, yaze::gui::canvas::CanvasConfig::scrolling, scrolling_, and yaze::gfx::Bitmap::width().
Referenced by DrawContextMenu(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::ShowScalingControls | ( | ) |
Definition at line 1709 of file canvas.cc.
References yaze::gui::canvas::CanvasConfig::auto_resize, yaze::gui::CanvasConfig::auto_resize, bitmap_, canvas_id_, yaze::gui::canvas::CanvasConfig::canvas_size, yaze::gui::CanvasConfig::canvas_size, canvas_sz_, config_, yaze::gui::canvas::CanvasConfig::content_size, yaze::gui::CanvasConfig::content_size, custom_step_, draggable_, yaze::gui::canvas::CanvasConfig::enable_context_menu, enable_context_menu_, yaze::gui::canvas::CanvasConfig::enable_custom_labels, enable_custom_labels_, yaze::gui::canvas::CanvasConfig::enable_grid, enable_grid_, yaze::gui::canvas::CanvasConfig::enable_hex_labels, enable_hex_tile_labels_, yaze::gui::canvas::CanvasConfig::global_scale, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gui::canvas::CanvasConfig::grid_step, yaze::gui::CanvasConfig::grid_step, yaze::gfx::Bitmap::height(), yaze::gui::canvas::CanvasConfig::is_draggable, modals_, yaze::gui::canvas::CanvasConfig::on_config_changed, yaze::gui::canvas::CanvasConfig::on_scale_changed, yaze::gui::canvas::CanvasConfig::scrolling, scrolling_, and yaze::gfx::Bitmap::width().
Referenced by DrawContextMenu(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::SetZoomToFit | ( | const gfx::Bitmap & | bitmap | ) |
Definition at line 673 of file canvas.cc.
References config_, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::is_active(), scrolling_, and yaze::gfx::Bitmap::width().
Referenced by DrawContextMenu().
void yaze::gui::Canvas::ResetView | ( | ) |
Definition at line 692 of file canvas.cc.
References config_, yaze::gui::CanvasConfig::global_scale, global_scale_, and scrolling_.
Referenced by DrawContextMenu().
void yaze::gui::Canvas::ApplyConfigSnapshot | ( | const canvas::CanvasConfig & | snapshot | ) |
Definition at line 698 of file canvas.cc.
References yaze::gui::canvas::CanvasConfig::auto_resize, yaze::gui::CanvasConfig::auto_resize, yaze::gui::canvas::CanvasConfig::canvas_size, yaze::gui::CanvasConfig::canvas_size, config_, yaze::gui::canvas::CanvasConfig::content_size, yaze::gui::CanvasConfig::content_size, yaze::gui::CanvasConfig::custom_canvas_size, custom_step_, draggable_, yaze::gui::canvas::CanvasConfig::enable_context_menu, yaze::gui::CanvasConfig::enable_context_menu, enable_context_menu_, yaze::gui::canvas::CanvasConfig::enable_custom_labels, yaze::gui::CanvasConfig::enable_custom_labels, enable_custom_labels_, yaze::gui::canvas::CanvasConfig::enable_grid, yaze::gui::CanvasConfig::enable_grid, enable_grid_, yaze::gui::canvas::CanvasConfig::enable_hex_labels, yaze::gui::CanvasConfig::enable_hex_labels, enable_hex_tile_labels_, yaze::gui::canvas::CanvasConfig::global_scale, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gui::canvas::CanvasConfig::grid_step, yaze::gui::CanvasConfig::grid_step, yaze::gui::canvas::CanvasConfig::is_draggable, yaze::gui::CanvasConfig::is_draggable, yaze::gui::canvas::CanvasConfig::scrolling, and scrolling_.
Referenced by DrawContextMenu().
void yaze::gui::Canvas::ApplyScaleSnapshot | ( | const canvas::CanvasConfig & | snapshot | ) |
Definition at line 722 of file canvas.cc.
References config_, yaze::gui::canvas::CanvasConfig::global_scale, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gui::canvas::CanvasConfig::scrolling, and scrolling_.
Referenced by DrawContextMenu().
|
inline |
|
inline |
|
inline |
Definition at line 216 of file canvas.h.
References selection_.
|
inline |
Definition at line 217 of file canvas.h.
References selection_.
void yaze::gui::Canvas::InitializePaletteEditor | ( | Rom * | rom | ) |
Definition at line 245 of file canvas.cc.
References palette_editor_, rom(), and rom_.
Referenced by yaze::editor::Tile16Editor::Initialize().
void yaze::gui::Canvas::ShowPaletteEditor | ( | ) |
Definition at line 252 of file canvas.cc.
References bitmap_, yaze::gfx::Bitmap::mutable_palette(), and palette_editor_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
void yaze::gui::Canvas::ShowColorAnalysis | ( | ) |
Definition at line 260 of file canvas.cc.
References bitmap_, and palette_editor_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
bool yaze::gui::Canvas::ApplyROMPalette | ( | int | group_index, |
int | palette_index | ||
) |
Definition at line 266 of file canvas.cc.
References bitmap_, and palette_editor_.
Referenced by yaze::editor::Tile16Editor::DrawPaletteSettings().
void yaze::gui::Canvas::ShowBppFormatSelector | ( | ) |
Definition at line 1844 of file canvas.cc.
References bitmap_, bpp_format_ui_, canvas_id_, and yaze::gfx::Bitmap::palette().
void yaze::gui::Canvas::ShowBppAnalysis | ( | ) |
Definition at line 1857 of file canvas.cc.
References bitmap_, bpp_format_ui_, canvas_id_, and yaze::gfx::Bitmap::palette().
void yaze::gui::Canvas::ShowBppConversionDialog | ( | ) |
Definition at line 1868 of file canvas.cc.
References bitmap_, bpp_conversion_dialog_, canvas_id_, and yaze::gfx::Bitmap::palette().
bool yaze::gui::Canvas::ConvertBitmapFormat | ( | gfx::BppFormat | target_format | ) |
Definition at line 1885 of file canvas.cc.
References bitmap_, yaze::gfx::BppFormatManager::ConvertFormat(), yaze::gfx::BppFormatManager::Get(), GetCurrentBppFormat(), yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::set_data(), yaze::gfx::Bitmap::UpdateTexture(), yaze::gfx::Bitmap::vector(), and yaze::gfx::Bitmap::width().
gfx::BppFormat yaze::gui::Canvas::GetCurrentBppFormat | ( | ) | const |
Definition at line 1913 of file canvas.cc.
References bitmap_, yaze::gfx::BppFormatManager::DetectFormat(), yaze::gfx::BppFormatManager::Get(), yaze::gfx::Bitmap::height(), yaze::gfx::kBpp8, yaze::gfx::Bitmap::vector(), and yaze::gfx::Bitmap::width().
Referenced by ConvertBitmapFormat().
void yaze::gui::Canvas::InitializeEnhancedComponents | ( | ) |
Definition at line 164 of file canvas.cc.
References canvas_id_, context_menu_, yaze::gui::canvas::CanvasPerformanceManager::Get(), yaze::gui::canvas::CanvasUsageManager::Get(), modals_, performance_integration_, yaze::gui::canvas::CanvasPerformanceManager::RegisterIntegration(), yaze::gui::canvas::CanvasUsageManager::RegisterTracker(), and usage_tracker_.
Referenced by InitializeDefaults().
void yaze::gui::Canvas::SetUsageMode | ( | canvas::CanvasUsage | usage | ) |
Definition at line 190 of file canvas.cc.
References context_menu_, and usage_tracker_.
canvas::CanvasUsage yaze::gui::Canvas::GetUsageMode | ( | ) | const |
Definition at line 199 of file canvas.cc.
References yaze::gui::canvas::kUnknown, and usage_tracker_.
Referenced by RecordCanvasOperation().
void yaze::gui::Canvas::RecordCanvasOperation | ( | const std::string & | operation_name, |
double | time_ms | ||
) |
Definition at line 206 of file canvas.cc.
References GetUsageMode(), performance_integration_, and usage_tracker_.
void yaze::gui::Canvas::ShowPerformanceUI | ( | ) |
Definition at line 217 of file canvas.cc.
References performance_integration_.
void yaze::gui::Canvas::ShowUsageReport | ( | ) |
Definition at line 223 of file canvas.cc.
References modals_, and usage_tracker_.
|
inline |
Definition at line 241 of file canvas.h.
References interaction_handler_.
|
inline |
Definition at line 242 of file canvas.h.
References interaction_handler_.
CanvasAutomationAPI * yaze::gui::Canvas::GetAutomationAPI | ( | ) |
Definition at line 1922 of file canvas.cc.
References automation_api_.
Referenced by yaze::editor::OverworldEditor::SetupCanvasAutomation().
void yaze::gui::Canvas::InitializeDefaults | ( | ) |
Definition at line 110 of file canvas.cc.
References canvas_id_, yaze::gui::CanvasConfig::canvas_size, yaze::gui::CanvasConfig::clamp_rect_to_local_maps, yaze::gui::CanvasSelection::Clear(), config_, yaze::gui::CanvasConfig::custom_canvas_size, custom_canvas_size_, custom_step_, draggable_, yaze::gui::CanvasConfig::enable_context_menu, enable_context_menu_, yaze::gui::CanvasConfig::enable_custom_labels, enable_custom_labels_, yaze::gui::CanvasConfig::enable_grid, enable_grid_, yaze::gui::CanvasConfig::enable_hex_labels, enable_hex_tile_labels_, yaze::gui::CanvasConfig::global_scale, global_scale_, yaze::gui::CanvasConfig::grid_step, yaze::gui::canvas::CanvasInteractionHandler::Initialize(), InitializeEnhancedComponents(), interaction_handler_, yaze::gui::CanvasConfig::is_draggable, palette_editor_, yaze::gui::CanvasSelection::select_rect_active, select_rect_active_, yaze::gui::CanvasSelection::selected_tile_pos, selected_tile_pos_, and selection_.
Referenced by Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), and yaze::editor::Tile16Editor::Initialize().
void yaze::gui::Canvas::Cleanup | ( | ) |
Definition at line 148 of file canvas.cc.
References yaze::gui::CanvasSelection::Clear(), context_menu_, modals_, palette_editor_, performance_integration_, selection_, and usage_tracker_.
ImVec2 yaze::gui::Canvas::GetMinimumSize | ( | ) | const |
Definition at line 274 of file canvas.cc.
References yaze::gui::CanvasUtils::CalculateMinimumCanvasSize(), config_, yaze::gui::CanvasConfig::content_size, and yaze::gui::CanvasConfig::global_scale.
Referenced by ShowAdvancedCanvasProperties().
ImVec2 yaze::gui::Canvas::GetPreferredSize | ( | ) | const |
Definition at line 279 of file canvas.cc.
References yaze::gui::CanvasUtils::CalculatePreferredCanvasSize(), config_, yaze::gui::CanvasConfig::content_size, and yaze::gui::CanvasConfig::global_scale.
Referenced by yaze::gui::BeginCanvas(), BeginTableCanvas(), ReserveTableSpace(), and ShowAdvancedCanvasProperties().
|
inline |
Definition at line 254 of file canvas.h.
References yaze::gui::CanvasConfig::canvas_size, and config_.
Referenced by yaze::gui::BeginCanvas().
|
inline |
Definition at line 255 of file canvas.h.
References yaze::gui::CanvasConfig::auto_resize, and config_.
Referenced by yaze::editor::Tile16Editor::Initialize(), and yaze::gui::TableCanvasPipeline().
|
inline |
Definition at line 256 of file canvas.h.
References yaze::gui::CanvasConfig::auto_resize, and config_.
Referenced by yaze::gui::BeginCanvas().
void yaze::gui::Canvas::ReserveTableSpace | ( | const std::string & | label = "" | ) |
Definition at line 284 of file canvas.cc.
References yaze::gui::CanvasConfig::auto_resize, yaze::gui::CanvasConfig::canvas_size, config_, GetPreferredSize(), and yaze::gui::CanvasUtils::ReserveCanvasSpace().
bool yaze::gui::Canvas::BeginTableCanvas | ( | const std::string & | label = "" | ) |
Definition at line 289 of file canvas.cc.
References yaze::gui::CanvasConfig::auto_resize, canvas_id_, yaze::gui::CanvasConfig::canvas_size, config_, GetPreferredSize(), and yaze::gui::CanvasUtils::SetNextCanvasSize().
Referenced by yaze::gui::TableCanvasPipeline().
void yaze::gui::Canvas::EndTableCanvas | ( | ) |
Definition at line 311 of file canvas.cc.
Referenced by yaze::gui::TableCanvasPipeline().
bool yaze::gui::Canvas::HasValidSelection | ( | ) | const |
Definition at line 316 of file canvas.cc.
References points_.
Referenced by GetLastClickPosition(), WasClicked(), and WasDoubleClicked().
bool yaze::gui::Canvas::WasClicked | ( | ImGuiMouseButton | button = ImGuiMouseButton_Left | ) | const |
Definition at line 320 of file canvas.cc.
References HasValidSelection().
bool yaze::gui::Canvas::WasDoubleClicked | ( | ImGuiMouseButton | button = ImGuiMouseButton_Left | ) | const |
Definition at line 324 of file canvas.cc.
References HasValidSelection().
ImVec2 yaze::gui::Canvas::GetLastClickPosition | ( | ) | const |
Definition at line 329 of file canvas.cc.
References HasValidSelection(), and points_.
bool yaze::gui::Canvas::DrawTilePainter | ( | const Bitmap & | bitmap, |
int | size, | ||
float | scale = 1.0f |
||
) |
Definition at line 728 of file canvas.cc.
References canvas_p0_, draw_list_, drawn_tile_pos_, yaze::gfx::Bitmap::is_active(), is_hovered_, mouse_pos_in_canvas_, points_, scrolling_, and yaze::gfx::Bitmap::texture().
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
bool yaze::gui::Canvas::DrawSolidTilePainter | ( | const ImVec4 & | color, |
int | size | ||
) |
Definition at line 845 of file canvas.cc.
References canvas_p0_, canvas_sz_, draw_list_, drawn_tile_pos_, global_scale_, is_hovered_, mouse_pos_in_canvas_, points_, and scrolling_.
Referenced by UpdateColorPainter().
void yaze::gui::Canvas::DrawTileOnBitmap | ( | int | tile_size, |
gfx::Bitmap * | bitmap, | ||
ImVec4 | color | ||
) |
Definition at line 899 of file canvas.cc.
References drawn_tile_pos_, global_scale_, yaze::gfx::Bitmap::width(), and yaze::gfx::Bitmap::WriteColor().
Referenced by yaze::editor::GraphicsEditor::UpdateGfxTabView().
void yaze::gui::Canvas::DrawOutline | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
Definition at line 1142 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::gui::CanvasUtils::DrawCanvasOutline(), and scrolling_.
Referenced by yaze::editor::OverworldEditor::CheckForCurrentMap().
void yaze::gui::Canvas::DrawOutlineWithColor | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
ImVec4 | color | ||
) |
Definition at line 1147 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::gui::CanvasUtils::DrawCanvasOutlineWithColor(), and scrolling_.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapScreen(), and yaze::gui::TileSelectorWidget::DrawHighlight().
void yaze::gui::Canvas::DrawOutlineWithColor | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
uint32_t | color | ||
) |
Definition at line 1152 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::gui::CanvasUtils::DrawCanvasOutline(), and scrolling_.
void yaze::gui::Canvas::DrawRect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
ImVec4 | color | ||
) |
Definition at line 1329 of file canvas.cc.
References canvas_p0_, config_, draw_list_, yaze::gui::CanvasUtils::DrawCanvasRect(), yaze::gui::CanvasConfig::global_scale, and scrolling_.
Referenced by yaze::editor::OverworldEntityRenderer::DrawEntrances(), yaze::editor::OverworldEntityRenderer::DrawExits(), yaze::editor::OverworldEntityRenderer::DrawItems(), yaze::editor::DungeonCanvasViewer::DrawObjectPositionOutlines(), yaze::editor::OverworldEntityRenderer::DrawSprites(), yaze::editor::DungeonObjectSelector::RenderObjectPrimitive(), and yaze::editor::DungeonCanvasViewer::RenderSprites().
void yaze::gui::Canvas::DrawText | ( | const std::string & | text, |
int | x, | ||
int | y | ||
) |
Definition at line 1334 of file canvas.cc.
References canvas_p0_, config_, draw_list_, yaze::gui::CanvasUtils::DrawCanvasText(), yaze::gui::CanvasConfig::global_scale, and scrolling_.
Referenced by yaze::editor::DungeonCanvasViewer::DisplayObjectInfo(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::OverworldEntityRenderer::DrawEntrances(), yaze::editor::OverworldEntityRenderer::DrawExits(), yaze::editor::OverworldEntityRenderer::DrawItems(), yaze::editor::DungeonCanvasViewer::DrawObjectPositionOutlines(), yaze::editor::OverworldEntityRenderer::DrawSprites(), yaze::editor::DungeonObjectSelector::RenderObjectPrimitive(), and yaze::editor::DungeonCanvasViewer::RenderSprites().
void yaze::gui::Canvas::DrawGridLines | ( | float | grid_step | ) |
Definition at line 1339 of file canvas.cc.
References canvas_p0_, canvas_p1_, config_, draw_list_, yaze::gui::CanvasUtils::DrawCanvasGridLines(), yaze::gui::CanvasConfig::global_scale, and scrolling_.
Referenced by DrawInfoGrid().
void yaze::gui::Canvas::DrawInfoGrid | ( | float | grid_step = 64.0f , |
int | tile_id_offset = 8 , |
||
int | label_id = 0 |
||
) |
Definition at line 1344 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::gui::kWhiteColor, labels_, and scrolling_.
Referenced by UpdateInfoGrid().
void yaze::gui::Canvas::DrawLayeredElements | ( | ) |
Definition at line 1432 of file canvas.cc.
References draw_list().
|
inline |
Definition at line 288 of file canvas.h.
References canvas_sz_, custom_step_, global_scale_, and mouse_pos_in_canvas_.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapsEditor().
void yaze::gui::Canvas::DrawCustomHighlight | ( | float | grid_step | ) |
Definition at line 1381 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::gui::CanvasUtils::DrawCustomHighlight(), highlight_tile_id, and scrolling_.
Referenced by DrawInfoGrid().
|
inline |
Definition at line 301 of file canvas.h.
References is_hovered_.
Referenced by yaze::editor::DungeonObjectInteraction::DrawObjectSelectRect(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::DungeonObjectInteraction::HandleCanvasMouseInput(), yaze::editor::DungeonObjectInteraction::ShowContextMenu(), yaze::editor::Tile16Editor::UpdateBlockset(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 302 of file canvas.h.
References global_scale_.
Referenced by yaze::editor::ScreenEditor::DrawInventoryToolset(), and yaze::editor::OverworldEditor::DrawToolset().
|
inline |
Definition at line 303 of file canvas.h.
References global_scale_.
Referenced by yaze::editor::ScreenEditor::DrawInventoryToolset(), and yaze::editor::OverworldEditor::DrawToolset().
|
inline |
Definition at line 306 of file canvas.h.
References points_.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), and yaze::editor::OverworldEditor::Paste().
|
inline |
Definition at line 307 of file canvas.h.
References points_.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), and yaze::gui::CanvasAutomationAPI::SetTileAt().
|
inline |
|
inline |
Definition at line 309 of file canvas.h.
References draw_list_.
Referenced by DrawLayeredElements(), yaze::editor::MapPropertiesSystem::DrawOverlayPreviewOnMap(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::OverworldEditor::DrawTile8Selector(), yaze::gui::GraphicsBinCanvasPipeline(), and yaze::editor::GraphicsEditor::UpdateGfxSheetList().
|
inline |
Definition at line 310 of file canvas.h.
References canvas_p0_.
Referenced by yaze::editor::DungeonObjectInteraction::DrawDragPreview(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::OverworldEntityRenderer::DrawItems(), yaze::editor::DungeonObjectInteraction::DrawObjectSelectRect(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::OverworldEditor::DrawOverworldMaps(), yaze::editor::DungeonCanvasViewer::DrawRoomBackgroundLayers(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::DungeonObjectInteraction::DrawSelectBox(), yaze::editor::DungeonObjectInteraction::DrawSelectionHighlights(), yaze::editor::OverworldEntityRenderer::DrawSprites(), yaze::editor::OverworldEditor::DrawTile8Selector(), yaze::gui::GraphicsBinCanvasPipeline(), yaze::editor::DungeonObjectInteraction::HandleCanvasMouseInput(), yaze::editor::OverworldEditor::HandleOverworldZoom(), yaze::editor::DungeonObjectInteraction::HandlePasteObjects(), yaze::gui::TileSelectorWidget::ResolveTileAtCursor(), yaze::editor::Tile16Editor::UpdateBlockset(), yaze::editor::GraphicsEditor::UpdateGfxSheetList(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 311 of file canvas.h.
References scrolling_.
Referenced by yaze::editor::OverworldEntityRenderer::DrawItems(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::OverworldEntityRenderer::DrawSprites(), yaze::gui::CanvasAutomationAPI::GetVisibleRegion(), yaze::editor::OverworldEditor::HandleOverworldPan(), yaze::editor::OverworldEditor::HandleOverworldZoom(), yaze::gui::TileSelectorWidget::ResolveTileAtCursor(), and yaze::gui::CanvasAutomationAPI::ScrollToTile().
|
inline |
Definition at line 312 of file canvas.h.
References scrolling_.
Referenced by yaze::gui::CanvasAutomationAPI::CenterOn(), yaze::editor::OverworldEditor::CenterOverworldView(), yaze::editor::OverworldEditor::HandleOverworldPan(), yaze::editor::OverworldEditor::HandleOverworldZoom(), yaze::editor::OverworldEditor::ResetOverworldView(), yaze::gui::CanvasAutomationAPI::ScrollToTile(), and yaze::editor::MapPropertiesSystem::SetupCanvasContextMenu().
|
inline |
Definition at line 313 of file canvas.h.
References drawn_tile_pos_.
Referenced by yaze::editor::OverworldEditor::DrawDebugWindow(), yaze::editor::OverworldEditor::DrawOverworldEdits(), yaze::editor::OverworldEditor::DrawScratchSpaceEdits(), yaze::editor::OverworldEditor::DrawScratchSpacePattern(), yaze::editor::OverworldEditor::HandleMapInteraction(), and yaze::editor::OverworldEditor::Paste().
|
inline |
Definition at line 314 of file canvas.h.
References canvas_sz_.
Referenced by Begin(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), yaze::gui::CanvasAutomationAPI::CenterOn(), yaze::editor::OverworldEditor::CenterOverworldView(), DrawBackground(), yaze::editor::MessageEditor::DrawCurrentMessage(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::gui::CanvasAutomationAPI::GetDimensions(), yaze::gui::CanvasAutomationAPI::GetVisibleRegion(), yaze::editor::DungeonObjectInteraction::HandleCanvasMouseInput(), yaze::editor::OverworldEditor::HandleOverworldPan(), yaze::editor::OverworldEditor::HandleOverworldZoom(), yaze::editor::DungeonObjectInteraction::IsWithinCanvasBounds(), yaze::gui::CanvasAutomationAPI::ScrollToTile(), and SetCanvasSize().
|
inline |
Definition at line 315 of file canvas.h.
References global_scale_.
Referenced by yaze::editor::OverworldEditor::HandleOverworldZoom(), yaze::editor::OverworldEditor::ResetOverworldView(), yaze::editor::MapPropertiesSystem::SetupCanvasContextMenu(), and yaze::gui::CanvasAutomationAPI::SetZoom().
|
inline |
Definition at line 316 of file canvas.h.
References draggable_.
Referenced by yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 319 of file canvas.h.
References select_rect_active_.
|
inline |
Definition at line 320 of file canvas.h.
References selected_tiles_.
|
inline |
Definition at line 321 of file canvas.h.
References selected_tile_pos_.
|
inline |
Definition at line 322 of file canvas.h.
References selected_tile_pos_.
|
inline |
Definition at line 325 of file canvas.h.
References canvas_size(), yaze::gui::CanvasConfig::canvas_size, config_, and yaze::gui::CanvasConfig::custom_canvas_size.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::ScreenEditor::ScreenEditor(), and yaze::gui::TableCanvasPipeline().
|
inline |
Definition at line 329 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::global_scale.
Referenced by yaze::gui::TableCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
Definition at line 330 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::global_scale.
Referenced by DrawContextMenu().
|
inline |
Definition at line 331 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::enable_custom_labels.
|
inline |
Definition at line 332 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::grid_step.
|
inline |
Definition at line 335 of file canvas.h.
References yaze::gui::CanvasConfig::clamp_rect_to_local_maps, and config_.
|
inline |
Definition at line 336 of file canvas.h.
References yaze::gui::CanvasConfig::clamp_rect_to_local_maps, and config_.
|
inline |
Definition at line 337 of file canvas.h.
References yaze::gui::CanvasConfig::canvas_size, and config_.
|
inline |
Definition at line 338 of file canvas.h.
References yaze::gui::CanvasConfig::canvas_size, and config_.
|
inline |
Definition at line 341 of file canvas.h.
References select_rect_active_.
Referenced by yaze::editor::OverworldEditor::CheckForOverworldEdits(), yaze::editor::OverworldEditor::CheckForSelectRectangle(), yaze::editor::OverworldEditor::Copy(), yaze::editor::OverworldEditor::DrawScratchSpace(), and yaze::editor::OverworldEditor::SaveCurrentSelectionToScratch().
|
inline |
Definition at line 342 of file canvas.h.
References selected_tiles_.
Referenced by yaze::editor::OverworldEditor::CheckForSelectRectangle(), yaze::editor::OverworldEditor::DrawScratchSpace(), and yaze::editor::OverworldEditor::SaveCurrentSelectionToScratch().
|
inline |
Definition at line 343 of file canvas.h.
References selected_tile_pos_.
Referenced by yaze::editor::OverworldEditor::CheckForSelectRectangle(), and yaze::editor::OverworldEditor::Paste().
|
inline |
Definition at line 344 of file canvas.h.
References selected_tile_pos_.
Referenced by yaze::editor::OverworldEditor::CheckForSelectRectangle().
|
inline |
Definition at line 345 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::global_scale.
Referenced by Canvas(), Canvas(), yaze::editor::DungeonCanvasViewer::CanvasToRoomCoordinates(), yaze::gui::CanvasAutomationAPI::CanvasToTile(), yaze::editor::OverworldEditor::CenterOverworldView(), yaze::editor::OverworldEditor::CheckForSelectRectangle(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::MapPropertiesSystem::DrawOverlayPreviewOnMap(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::DungeonCanvasViewer::DrawRoomBackgroundLayers(), yaze::editor::OverworldEditor::DrawScratchSpaceEdits(), yaze::gui::CanvasAutomationAPI::GetDimensions(), yaze::gui::CanvasAutomationAPI::GetVisibleRegion(), yaze::gui::CanvasAutomationAPI::GetZoom(), yaze::editor::OverworldEditor::HandleOverworldPan(), yaze::editor::OverworldEditor::HandleOverworldZoom(), yaze::editor::DungeonObjectInteraction::IsWithinCanvasBounds(), yaze::editor::MapPropertiesSystem::SetupCanvasContextMenu(), and yaze::gui::CanvasAutomationAPI::TileToCanvas().
|
inline |
Definition at line 346 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::enable_custom_labels.
Referenced by yaze::editor::Tile16Editor::Initialize(), and yaze::editor::Tile16Editor::Update().
|
inline |
Definition at line 347 of file canvas.h.
References config_, and yaze::gui::CanvasConfig::grid_step.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas().
|
inline |
Definition at line 348 of file canvas.h.
References yaze::gui::CanvasConfig::canvas_size, and config_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonCanvasViewer::DrawRoomBackgroundLayers(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), and yaze::editor::DungeonCanvasViewer::IsWithinCanvasBounds().
|
inline |
Definition at line 349 of file canvas.h.
References yaze::gui::CanvasConfig::canvas_size, and config_.
Referenced by yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::DungeonCanvasViewer::DrawRoomBackgroundLayers(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), and yaze::editor::DungeonCanvasViewer::IsWithinCanvasBounds().
|
inline |
Definition at line 352 of file canvas.h.
References canvas_id_.
Referenced by yaze::gui::BeginCanvas().
void yaze::gui::Canvas::DrawBitmap | ( | Bitmap & | bitmap, |
int | border_offset, | ||
float | scale | ||
) |
Definition at line 1062 of file canvas.cc.
References bitmap_, canvas_p0_, canvas_p1_, config_, yaze::gui::CanvasConfig::content_size, draw_list_, yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::is_active(), yaze::gui::kWhiteColor, yaze::gfx::Bitmap::texture(), and yaze::gfx::Bitmap::width().
Referenced by yaze::gui::BitmapCanvasPipeline(), yaze::editor::OverworldEditor::DrawAreaGraphics(), yaze::editor::MessageEditor::DrawCurrentMessage(), yaze::editor::SpriteEditor::DrawCurrentSheets(), yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::MessageEditor::DrawFontAtlas(), yaze::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::editor::OverworldEditor::DrawOverworldMaps(), yaze::editor::DungeonCanvasViewer::DrawRoomBackgroundLayers(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::editor::OverworldEntityRenderer::DrawSprites(), yaze::gui::TileSelectorWidget::Render(), yaze::gui::TableCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::DrawBitmap | ( | Bitmap & | bitmap, |
int | x_offset, | ||
int | y_offset, | ||
float | scale = 1.0f , |
||
int | alpha = 255 |
||
) |
Definition at line 1078 of file canvas.cc.
References bitmap_, canvas_p0_, config_, yaze::gui::CanvasConfig::content_size, draw_list_, yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::is_active(), scrolling_, yaze::gfx::Bitmap::texture(), and yaze::gfx::Bitmap::width().
void yaze::gui::Canvas::DrawBitmap | ( | Bitmap & | bitmap, |
ImVec2 | dest_pos, | ||
ImVec2 | dest_size, | ||
ImVec2 | src_pos, | ||
ImVec2 | src_size | ||
) |
Definition at line 1108 of file canvas.cc.
References bitmap_, canvas_p0_, config_, yaze::gui::CanvasConfig::content_size, draw_list_, yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Bitmap::texture(), and yaze::gfx::Bitmap::width().
void yaze::gui::Canvas::DrawBitmapTable | ( | const BitmapTable & | gfx_bin | ) |
Definition at line 1129 of file canvas.cc.
References canvas_p0_, and draw_list_.
Referenced by yaze::editor::ScreenEditor::DrawDungeonMapsEditor().
void yaze::gui::Canvas::DrawBitmapGroup | ( | std::vector< int > & | group, |
gfx::Tilemap & | tilemap, | ||
int | tile_size, | ||
float | scale = 1.0f , |
||
int | local_map_size = 0x200 , |
||
ImVec2 | total_map_size = ImVec2(0x1000, 0x1000) |
||
) |
Draw group of bitmaps for multi-tile selection preview.
group | Vector of tile IDs to draw |
tilemap | Tilemap containing the tiles |
tile_size | Size of each tile (default 16) |
scale | Rendering scale (default 1.0) |
local_map_size | Size of local map in pixels (default 512 for standard maps) |
total_map_size | Total map size for boundary clamping (default 4096x4096) |
Definition at line 1157 of file canvas.cc.
References yaze::gfx::Tilemap::atlas, canvas_p0_, yaze::gui::CanvasConfig::clamp_rect_to_local_maps, config_, draw_list_, yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::is_active(), yaze::gfx::Tilemap::map_size, scrolling_, select_rect_active_, selected_points_, yaze::gfx::Bitmap::texture(), yaze::gfx::Tilemap::tile_size, yaze::gfx::Bitmap::width(), yaze::gfx::Pair::x, and yaze::gfx::Pair::y.
Referenced by yaze::editor::OverworldEditor::CheckForSelectRectangle().
bool yaze::gui::Canvas::DrawTilemapPainter | ( | gfx::Tilemap & | tilemap, |
int | current_tile | ||
) |
Definition at line 774 of file canvas.cc.
References yaze::gfx::Tilemap::atlas, canvas_p0_, draw_list_, drawn_tile_pos_, global_scale_, yaze::gfx::Bitmap::height(), yaze::gfx::Bitmap::is_active(), is_hovered_, mouse_pos_in_canvas_, points_, scrolling_, yaze::gfx::Bitmap::texture(), yaze::gfx::Tilemap::tile_size, yaze::gfx::Bitmap::width(), yaze::gfx::Pair::x, and yaze::gfx::Pair::y.
Referenced by yaze::editor::OverworldEditor::CheckForOverworldEdits().
void yaze::gui::Canvas::DrawSelectRect | ( | int | current_map, |
int | tile_size = 0x10 , |
||
float | scale = 1.0f |
||
) |
Definition at line 948 of file canvas.cc.
References canvas_p0_, draw_list_, yaze::gui::kWhiteColor, scrolling_, select_rect_active_, selected_points_, selected_tile_pos_, and selected_tiles_.
Referenced by yaze::editor::OverworldEditor::CheckForSelectRectangle().
bool yaze::gui::Canvas::DrawTileSelector | ( | int | size, |
int | size_y = 0 |
||
) |
Definition at line 920 of file canvas.cc.
References canvas_p0_, is_hovered_, mouse_pos_in_canvas_, points_, and scrolling_.
Referenced by yaze::gui::BitmapCanvasPipeline(), yaze::editor::OverworldEditor::DrawAreaGraphics(), yaze::editor::SpriteEditor::DrawCurrentSheets(), yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::MessageEditor::DrawFontAtlas(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::gui::GraphicsBinCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::DrawGrid | ( | float | grid_step = 64.0f , |
int | tile_id_offset = 8 |
||
) |
Definition at line 1386 of file canvas.cc.
References canvas_p0_, canvas_p1_, config_, current_labels_, yaze::gui::CanvasUtils::CanvasRenderContext::draw_list, draw_list_, yaze::gui::CanvasUtils::DrawCanvasGrid(), yaze::gui::CanvasUtils::DrawCanvasLabels(), yaze::gui::CanvasConfig::enable_custom_labels, yaze::gui::CanvasConfig::enable_grid, yaze::gui::CanvasConfig::enable_hex_labels, yaze::gui::CanvasConfig::global_scale, yaze::gui::CanvasConfig::grid_step, highlight_tile_id, labels_, and scrolling_.
Referenced by yaze::gui::BitmapCanvasPipeline(), yaze::editor::OverworldEditor::DrawAreaGraphics(), yaze::editor::MessageEditor::DrawCurrentMessage(), yaze::editor::SpriteEditor::DrawCurrentSheets(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::editor::DungeonObjectSelector::DrawObjectRenderer(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::editor::SpriteEditor::DrawSpriteCanvas(), yaze::editor::OverworldEditor::DrawTile8Selector(), End(), yaze::gui::EndCanvas(), yaze::gui::GraphicsBinCanvasPipeline(), yaze::gui::TileSelectorWidget::Render(), yaze::gui::TableCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::editor::GraphicsEditor::UpdateGfxSheetList(), yaze::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
void yaze::gui::Canvas::DrawOverlay | ( | ) |
Definition at line 1413 of file canvas.cc.
References canvas_p0_, canvas_p1_, config_, yaze::gui::CanvasUtils::CanvasRenderContext::draw_list, draw_list_, yaze::gui::CanvasUtils::DrawCanvasOverlay(), yaze::gui::CanvasConfig::enable_grid, yaze::gui::CanvasConfig::enable_hex_labels, yaze::gui::CanvasConfig::global_scale, yaze::gui::CanvasConfig::grid_step, points_, RenderPersistentPopups(), scrolling_, and selected_points_.
Referenced by yaze::gui::BitmapCanvasPipeline(), yaze::editor::OverworldEditor::DrawAreaGraphics(), yaze::editor::MessageEditor::DrawCurrentMessage(), yaze::editor::SpriteEditor::DrawCurrentSheets(), yaze::editor::DungeonCanvasViewer::DrawDungeonCanvas(), yaze::editor::ScreenEditor::DrawDungeonMapScreen(), yaze::editor::ScreenEditor::DrawDungeonMapsEditor(), yaze::editor::ScreenEditor::DrawDungeonMapsRoomGfx(), yaze::editor::ScreenEditor::DrawInventoryMenuEditor(), yaze::editor::DungeonObjectSelector::DrawObjectRenderer(), yaze::editor::OverworldEditor::DrawOverworldCanvas(), yaze::editor::DungeonObjectSelector::DrawRoomGraphics(), yaze::editor::DungeonEditorV2::DrawRoomGraphicsCard(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::editor::SpriteEditor::DrawSpriteCanvas(), yaze::editor::OverworldEditor::DrawTile8Selector(), End(), yaze::gui::EndCanvas(), yaze::gui::GraphicsBinCanvasPipeline(), yaze::gui::TileSelectorWidget::Render(), yaze::gui::TableCanvasPipeline(), yaze::editor::Tile16Editor::UpdateBlockset(), UpdateColorPainter(), yaze::editor::GraphicsEditor::UpdateGfxSheetList(), UpdateInfoGrid(), yaze::editor::GraphicsEditor::UpdateLinkGfxView(), and yaze::editor::Tile16Editor::UpdateTile16Edit().
|
inline |
|
inline |
Definition at line 383 of file canvas.h.
References labels_.
Referenced by yaze::editor::OverworldEditor::DrawOverworldProperties(), and yaze::editor::Tile16Editor::Initialize().
|
inline |
Definition at line 395 of file canvas.h.
References current_labels_.
|
inline |
Definition at line 396 of file canvas.h.
References highlight_tile_id.
Referenced by yaze::editor::OverworldEditor::UpdateUsageStats().
|
inline |
Definition at line 398 of file canvas.h.
References selected_tiles_.
|
inline |
Definition at line 399 of file canvas.h.
References selected_points_.
Referenced by yaze::gui::CanvasAutomationAPI::ClearSelection(), yaze::gui::CanvasAutomationAPI::SelectTile(), and yaze::gui::CanvasAutomationAPI::SelectTileRect().
|
inline |
Definition at line 400 of file canvas.h.
References selected_points_.
Referenced by yaze::editor::OverworldEditor::CheckForOverworldEdits(), yaze::editor::OverworldEditor::Copy(), yaze::editor::OverworldEditor::DrawScratchSpace(), yaze::gui::CanvasAutomationAPI::GetSelection(), and yaze::editor::OverworldEditor::SaveCurrentSelectionToScratch().
|
inline |
Definition at line 402 of file canvas.h.
References mouse_pos_in_canvas_.
Referenced by yaze::editor::OverworldEditor::CheckForCurrentMap().
|
inline |
|
inline |
Definition at line 405 of file canvas.h.
References rom_.
Referenced by InitializePaletteEditor(), and set_rom().
|
private |
Definition at line 585 of file canvas.cc.
References yaze::gui::Canvas::ContextMenuItem::callback, DrawContextMenuItem(), yaze::gui::Canvas::ContextMenuItem::enabled_condition, yaze::gui::Canvas::ContextMenuItem::label, yaze::gui::Canvas::ContextMenuItem::shortcut, and yaze::gui::Canvas::ContextMenuItem::subitems.
Referenced by DrawContextMenu(), and DrawContextMenuItem().
std::unique_ptr<gui::BppFormatUI> yaze::gui::Canvas::bpp_format_ui_ |
Definition at line 185 of file canvas.h.
Referenced by ShowBppAnalysis(), and ShowBppFormatSelector().
std::unique_ptr<gui::BppConversionDialog> yaze::gui::Canvas::bpp_conversion_dialog_ |
Definition at line 186 of file canvas.h.
Referenced by ShowBppConversionDialog().
std::unique_ptr<gui::BppComparisonTool> yaze::gui::Canvas::bpp_comparison_tool_ |
std::unique_ptr<canvas::CanvasModals> yaze::gui::Canvas::modals_ |
Definition at line 190 of file canvas.h.
Referenced by Cleanup(), DrawContextMenu(), InitializeEnhancedComponents(), ShowAdvancedCanvasProperties(), ShowScalingControls(), and ShowUsageReport().
std::unique_ptr<canvas::CanvasContextMenu> yaze::gui::Canvas::context_menu_ |
Definition at line 191 of file canvas.h.
Referenced by Cleanup(), DrawContextMenu(), InitializeEnhancedComponents(), and SetUsageMode().
std::shared_ptr<canvas::CanvasUsageTracker> yaze::gui::Canvas::usage_tracker_ |
Definition at line 192 of file canvas.h.
Referenced by Cleanup(), DrawContextMenu(), GetUsageMode(), InitializeEnhancedComponents(), RecordCanvasOperation(), SetUsageMode(), and ShowUsageReport().
std::shared_ptr<canvas::CanvasPerformanceIntegration> yaze::gui::Canvas::performance_integration_ |
Definition at line 193 of file canvas.h.
Referenced by Cleanup(), InitializeEnhancedComponents(), RecordCanvasOperation(), and ShowPerformanceUI().
canvas::CanvasInteractionHandler yaze::gui::Canvas::interaction_handler_ |
Definition at line 194 of file canvas.h.
Referenced by GetInteractionHandler(), GetInteractionHandler(), and InitializeDefaults().
|
private |
Definition at line 411 of file canvas.h.
Referenced by renderer(), and SetRenderer().
|
private |
Definition at line 412 of file canvas.h.
Referenced by ApplyConfigSnapshot(), ApplyScaleSnapshot(), BeginTableCanvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), Canvas(), custom_labels_enabled(), custom_step(), DrawBackground(), DrawBitmap(), DrawBitmap(), DrawBitmap(), DrawBitmapGroup(), DrawContextMenu(), DrawGrid(), DrawGridLines(), DrawOverlay(), DrawRect(), DrawText(), End(), GetCanvasHeight(), GetCanvasWidth(), GetClampRectToLocalMaps(), GetConfig(), GetConfig(), GetCurrentSize(), GetCustomLabelsEnabled(), GetGlobalScale(), GetGridStep(), GetMinimumSize(), GetPreferredSize(), global_scale(), grid_size(), height(), InitializeDefaults(), IsAutoResize(), ReserveTableSpace(), ResetView(), SetAutoResize(), SetCanvasSize(), SetClampRectToLocalMaps(), SetGlobalScale(), SetGridSize(), SetZoomToFit(), ShowAdvancedCanvasProperties(), ShowScalingControls(), UpdateColorPainter(), UpdateInfoGrid(), and width().
|
private |
Definition at line 413 of file canvas.h.
Referenced by Cleanup(), GetSelection(), GetSelection(), and InitializeDefaults().
|
private |
Definition at line 414 of file canvas.h.
Referenced by ApplyROMPalette(), Cleanup(), InitializeDefaults(), InitializePaletteEditor(), ShowColorAnalysis(), and ShowPaletteEditor().
|
private |
Definition at line 417 of file canvas.h.
Referenced by GetAutomationAPI().
|
private |
Definition at line 420 of file canvas.h.
Referenced by DrawSolidTilePainter(), DrawTilemapPainter(), DrawTilePainter(), DrawTileSelector(), and IsMouseHovering().
|
private |
Definition at line 424 of file canvas.h.
Referenced by AddContextMenuItem(), ClearContextMenuItems(), and DrawContextMenu().
|
private |
Definition at line 425 of file canvas.h.
Referenced by SetContextMenuEnabled().
|
private |
Definition at line 433 of file canvas.h.
Referenced by ClosePersistentPopup(), OpenPersistentPopup(), and RenderPersistentPopups().
|
private |
Definition at line 436 of file canvas.h.
Referenced by DrawGrid(), and set_current_labels().
|
private |
Definition at line 437 of file canvas.h.
Referenced by DrawCustomHighlight(), DrawGrid(), and set_highlight_tile_id().
|
private |
|
private |
|
private |
|
private |
Definition at line 443 of file canvas.h.
Referenced by ApplyROMPalette(), ConvertBitmapFormat(), DrawBitmap(), DrawBitmap(), DrawBitmap(), DrawContextMenu(), GetCurrentBppFormat(), ShowAdvancedCanvasProperties(), ShowBppAnalysis(), ShowBppConversionDialog(), ShowBppFormatSelector(), ShowColorAnalysis(), ShowPaletteEditor(), and ShowScalingControls().
|
private |
Definition at line 444 of file canvas.h.
Referenced by DrawContextMenu(), InitializePaletteEditor(), rom(), and set_rom().
|
private |
Definition at line 445 of file canvas.h.
Referenced by draw_list(), DrawBackground(), DrawBitmap(), DrawBitmap(), DrawBitmap(), DrawBitmapGroup(), DrawBitmapTable(), DrawCustomHighlight(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawOutline(), DrawOutlineWithColor(), DrawOutlineWithColor(), DrawOverlay(), DrawRect(), DrawSelectRect(), DrawSolidTilePainter(), DrawText(), DrawTilemapPainter(), and DrawTilePainter().
|
private |
Definition at line 448 of file canvas.h.
Referenced by ApplyConfigSnapshot(), ApplyScaleSnapshot(), DrawBackground(), DrawBitmap(), DrawBitmapGroup(), DrawContextMenu(), DrawCustomHighlight(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), DrawOutline(), DrawOutlineWithColor(), DrawOutlineWithColor(), DrawOverlay(), DrawRect(), DrawSelectRect(), DrawSolidTilePainter(), DrawText(), DrawTilemapPainter(), DrawTilePainter(), DrawTileSelector(), ResetView(), scrolling(), set_scrolling(), SetZoomToFit(), ShowAdvancedCanvasProperties(), and ShowScalingControls().
|
private |
Definition at line 449 of file canvas.h.
Referenced by canvas_size(), DrawBackground(), DrawContextMenu(), DrawInfoGrid(), DrawSolidTilePainter(), GetTileIdFromMousePos(), ShowAdvancedCanvasProperties(), and ShowScalingControls().
|
private |
Definition at line 450 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(), DrawTilemapPainter(), DrawTilePainter(), DrawTileSelector(), and zero_point().
|
private |
Definition at line 451 of file canvas.h.
Referenced by DrawBackground(), DrawBitmap(), DrawGrid(), DrawGridLines(), DrawInfoGrid(), and DrawOverlay().
|
private |
Definition at line 452 of file canvas.h.
Referenced by drawn_tile_position(), DrawSolidTilePainter(), DrawTilemapPainter(), DrawTileOnBitmap(), and DrawTilePainter().
|
private |
Definition at line 453 of file canvas.h.
Referenced by DrawBackground(), DrawSolidTilePainter(), DrawTilemapPainter(), DrawTilePainter(), DrawTileSelector(), GetTileIdFromMousePos(), and hover_mouse_pos().
|
private |
Definition at line 457 of file canvas.h.
Referenced by DrawOverlay(), DrawSolidTilePainter(), DrawTilemapPainter(), DrawTilePainter(), DrawTileSelector(), GetLastClickPosition(), HasValidSelection(), mutable_points(), points(), and push_back().
|
private |
Definition at line 458 of file canvas.h.
Referenced by DrawGrid(), DrawInfoGrid(), labels(), and mutable_labels().
|
private |
Definition at line 461 of file canvas.h.
Referenced by BeginTableCanvas(), canvas_id(), DrawBackground(), DrawContextMenu(), InitializeDefaults(), InitializeEnhancedComponents(), ShowAdvancedCanvasProperties(), ShowBppAnalysis(), ShowBppConversionDialog(), ShowBppFormatSelector(), and ShowScalingControls().
|
private |
Definition at line 462 of file canvas.h.
Referenced by DrawContextMenu().
|
private |
Definition at line 465 of file canvas.h.
Referenced by DrawSelectRect(), GetSelectedTiles(), mutable_selected_tiles(), and selected_tiles().
|
private |
Definition at line 466 of file canvas.h.
Referenced by DrawBitmapGroup(), DrawOverlay(), DrawSelectRect(), mutable_selected_points(), and selected_points().
|
private |
Definition at line 467 of file canvas.h.
Referenced by DrawSelectRect(), GetSelectedTilePos(), InitializeDefaults(), selected_tile_pos(), set_selected_tile_pos(), and SetSelectedTilePos().
|
private |
Definition at line 468 of file canvas.h.
Referenced by DrawBitmapGroup(), DrawSelectRect(), InitializeDefaults(), IsSelectRectActive(), and select_rect_active().
|
private |
Definition at line 469 of file canvas.h.
Referenced by ApplyConfigSnapshot(), DrawContextMenu(), DrawInfoGrid(), GetTileIdFromMousePos(), InitializeDefaults(), ShowAdvancedCanvasProperties(), and ShowScalingControls().
|
private |
Definition at line 470 of file canvas.h.
Referenced by ApplyConfigSnapshot(), ApplyScaleSnapshot(), DrawContextMenu(), DrawInfoGrid(), DrawSolidTilePainter(), DrawTilemapPainter(), DrawTileOnBitmap(), GetTileIdFromMousePos(), InitializeDefaults(), ResetView(), set_global_scale(), SetZoomToFit(), ShowAdvancedCanvasProperties(), ShowScalingControls(), UpdateColorPainter(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 471 of file canvas.h.
Referenced by ApplyConfigSnapshot(), DrawContextMenu(), DrawInfoGrid(), InitializeDefaults(), ShowAdvancedCanvasProperties(), and ShowScalingControls().
|
private |
Definition at line 472 of file canvas.h.
Referenced by ApplyConfigSnapshot(), DrawContextMenu(), InitializeDefaults(), ShowAdvancedCanvasProperties(), and ShowScalingControls().
|
private |
Definition at line 473 of file canvas.h.
Referenced by ApplyConfigSnapshot(), DrawContextMenu(), DrawInfoGrid(), InitializeDefaults(), ShowAdvancedCanvasProperties(), ShowScalingControls(), and UpdateInfoGrid().
|
private |
Definition at line 474 of file canvas.h.
Referenced by ApplyConfigSnapshot(), DrawBackground(), DrawContextMenu(), InitializeDefaults(), ShowAdvancedCanvasProperties(), and ShowScalingControls().
|
private |
Definition at line 475 of file canvas.h.
Referenced by InitializeDefaults().
|
private |
Definition at line 476 of file canvas.h.
Referenced by ApplyConfigSnapshot(), DrawContextMenu(), InitializeDefaults(), set_draggable(), ShowAdvancedCanvasProperties(), and ShowScalingControls().