|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <dragdrop.hpp>
Public Types | |
| using | GhostRenderer = std::function<void(Graphics&, DragPayload const &, DragPoint const &)> |
| using | HighlightRenderer = std::function<void(Graphics&, Widget* target, bool isValid)> |
Static Public Member Functions | |
| static HighlightRenderer | defaultHighlight () |
Public Attributes | |
| GhostRenderer | ghost |
| HighlightRenderer | highlight |
Configuration for how drag visuals are rendered.
Holds a ghost renderer used to draw a floating representation of the payload and a highlight renderer used to mark candidate drop targets.
Definition at line 182 of file dragdrop.hpp.
| using fcn::DragRenderConfig::GhostRenderer = std::function<void(Graphics&, DragPayload const &, DragPoint const &)> |
Renderer used to draw the ghost image.
Definition at line 187 of file dragdrop.hpp.
| using fcn::DragRenderConfig::HighlightRenderer = std::function<void(Graphics&, Widget* target, bool isValid)> |
Renderer used to draw a highlight on candidate targets.
Definition at line 192 of file dragdrop.hpp.
| GhostRenderer fcn::DragRenderConfig::ghost |
Renderer used to draw the ghost.
Definition at line 197 of file dragdrop.hpp.
| HighlightRenderer fcn::DragRenderConfig::highlight |
Renderer used to draw a highlight on targets.
Definition at line 202 of file dragdrop.hpp.