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:
parent
f559b5a39d
commit
6ff1919587
5 changed files with 52 additions and 8 deletions
|
@ -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();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue