yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
drag_drop.h File Reference
#include <cstdint>
#include "imgui/imgui.h"
Include dependency graph for drag_drop.h:

Go to the source code of this file.

Classes

struct  yaze::gui::TileDragPayload
 
struct  yaze::gui::SpriteDragPayload
 
struct  yaze::gui::PaletteDragPayload
 
struct  yaze::gui::RoomObjectDragPayload
 

Namespaces

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

Functions

bool yaze::gui::BeginTileDragSource (int tile_id, int map_id)
 
bool yaze::gui::BeginSpriteDragSource (int sprite_id, int room_id)
 
bool yaze::gui::BeginPaletteDragSource (int group_idx, int palette_idx, int color_idx)
 
bool yaze::gui::BeginRoomObjectDragSource (uint16_t object_id, int room_id, int pos_x, int pos_y)
 
bool yaze::gui::AcceptTileDrop (TileDragPayload *out)
 Accept a tile16 drop. Returns true if a payload was accepted.
 
bool yaze::gui::AcceptSpriteDrop (SpriteDragPayload *out)
 
bool yaze::gui::AcceptPaletteDrop (PaletteDragPayload *out)
 
bool yaze::gui::AcceptRoomObjectDrop (RoomObjectDragPayload *out)
 

Variables

constexpr const char * yaze::gui::kDragPayloadTile16 = "YAZE_TILE16"
 
constexpr const char * yaze::gui::kDragPayloadSprite = "YAZE_SPRITE"
 
constexpr const char * yaze::gui::kDragPayloadPalette = "YAZE_PALETTE"
 
constexpr const char * yaze::gui::kDragPayloadRoomObject = "YAZE_ROOM_OBJ"