TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_drag_drop_state.h File Reference
#include <gui_core/gui_id.h>
#include <gui_core/gui_base_types.h>
#include <gui_core/input/gui_input_enums.h>
#include <any>
#include <functional>
#include <span>
#include <stdint.h>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  tachyon::DraggedImage
 A picture being dragged (DragPayload::Image). More...
struct  tachyon::DraggedFiles
 Files being dragged inside the application (DragPayload::Files): paths, UTF-8. More...
struct  tachyon::DragVisualContext
 What a DragVisualizer draws from: the pointer, the source and target, and the payload. More...
class  tachyon::DragDropState
 Drag-and-drop state, owned by GUIStateManager. More...

Namespaces

namespace  tachyon
namespace  tachyon::DragPayload
 Payload types the library defines, for payloads any control may take.

Typedefs

using tachyon::DragVisualizer = std::function<void(const DragVisualContext& context)>
 Draws the dragged item while a drag is in progress.

Variables

enum tachyon::ImageIndex
 defined in gui_image.h
constexpr uint32_t tachyon::DragPayload::Image = 0xFFFF0001u
 a DraggedImage
constexpr uint32_t tachyon::DragPayload::Files = 0xFFFF0002u
 a DraggedFiles