2022-05-21 19:58:09 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include "DragDropEffects.h"
|
|
|
|
|
|
|
|
namespace Forms
|
|
|
|
{
|
|
|
|
// Provides data for the DragDrop events.
|
|
|
|
class DragEventArgs
|
|
|
|
{
|
|
|
|
public:
|
2023-03-28 21:18:11 +02:00
|
|
|
DragEventArgs(IDataObject* Data, const int32_t KeyState, const int32_t X, const int32_t Y, const DragDropEffects AllowedEffect, DragDropEffects Effect);
|
2022-05-21 19:58:09 +02:00
|
|
|
~DragEventArgs() = default;
|
|
|
|
|
|
|
|
// The data associated with this event.
|
|
|
|
IDataObject* Data;
|
2023-03-28 21:18:11 +02:00
|
|
|
// The current state of the shift, ctrl, and alt keys.
|
2022-05-21 19:58:09 +02:00
|
|
|
const int32_t KeyState;
|
|
|
|
|
|
|
|
// The mouse X location.
|
|
|
|
const int32_t X;
|
|
|
|
// The mouse Y location.
|
|
|
|
const int32_t Y;
|
|
|
|
|
|
|
|
// The effect that should be applied to the mouse cursor.
|
|
|
|
const DragDropEffects AllowedEffect;
|
|
|
|
|
|
|
|
// Gets or sets which drag-and-drop operations are allowed by the target of the drag event.
|
|
|
|
DragDropEffects Effect;
|
|
|
|
};
|
|
|
|
}
|