Cleaned up the move operation more so that I can use it in the other places that I need it.

This commit is contained in:
Zed A. Shaw 2025-06-24 13:23:55 -04:00
parent f559b5a39d
commit 6ff1919587
5 changed files with 52 additions and 8 deletions

View file

@ -45,9 +45,15 @@ namespace gui {
void close();
std::optional<guecs::Entity> start_grab(guecs::UI& gui, std::any data);
bool commit_drop(guecs::UI& source, guecs::UI& target,
std::optional<guecs::Entity> source_id, std::any data);
void commit_move(guecs::UI& gui,
std::optional<guecs::Entity> source_id, std::any data);
bool throw_on_floor();
sf::Vector2f mouse_position();
};
}