yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::MinecartCanvasTool Class Reference

#include <minecart_canvas_tool.h>

Public Member Functions

bool Draw (const gui::CanvasRuntime &rt, const zelda3::Room &room, int room_id, bool editable, bool shortcut_focus, const MinecartCanvasBinding &binding)
 
void Cancel ()
 
bool dragging () const
 
const std::optional< MinecartTrack > & preview () const
 
const std::string & message () const
 

Private Attributes

std::optional< MinecartTrack > before_
 
std::optional< MinecartTrack > preview_
 
int room_id_ = -1
 
uint64_t revision_ = 0
 
std::string message_
 

Detailed Description

Definition at line 44 of file minecart_canvas_tool.h.

Member Function Documentation

◆ Draw()

◆ Cancel()

◆ dragging()

bool yaze::editor::MinecartCanvasTool::dragging ( ) const
inline

Definition at line 51 of file minecart_canvas_tool.h.

References before_.

Referenced by Draw().

◆ preview()

const std::optional< MinecartTrack > & yaze::editor::MinecartCanvasTool::preview ( ) const
inline

Definition at line 52 of file minecart_canvas_tool.h.

References preview_.

◆ message()

const std::string & yaze::editor::MinecartCanvasTool::message ( ) const
inline

Definition at line 53 of file minecart_canvas_tool.h.

References message_.

Member Data Documentation

◆ before_

std::optional<MinecartTrack> yaze::editor::MinecartCanvasTool::before_
private

Definition at line 56 of file minecart_canvas_tool.h.

Referenced by Cancel(), dragging(), and Draw().

◆ preview_

std::optional<MinecartTrack> yaze::editor::MinecartCanvasTool::preview_
private

Definition at line 57 of file minecart_canvas_tool.h.

Referenced by Cancel(), Draw(), and preview().

◆ room_id_

int yaze::editor::MinecartCanvasTool::room_id_ = -1
private

Definition at line 58 of file minecart_canvas_tool.h.

Referenced by Draw().

◆ revision_

uint64_t yaze::editor::MinecartCanvasTool::revision_ = 0
private

Definition at line 59 of file minecart_canvas_tool.h.

Referenced by Draw().

◆ message_

std::string yaze::editor::MinecartCanvasTool::message_
private

Definition at line 60 of file minecart_canvas_tool.h.

Referenced by Draw(), and message().


The documentation for this class was generated from the following files: