FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::DragRenderConfig Struct Reference

#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

Detailed Description

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.

Member Typedef Documentation

◆ GhostRenderer

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.

◆ HighlightRenderer

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.

Member Data Documentation

◆ ghost

GhostRenderer fcn::DragRenderConfig::ghost

Renderer used to draw the ghost.

Definition at line 197 of file dragdrop.hpp.

◆ highlight

HighlightRenderer fcn::DragRenderConfig::highlight

Renderer used to draw a highlight on targets.

Definition at line 202 of file dragdrop.hpp.


The documentation for this struct was generated from the following file: