r5sdk/r5dev/thirdparty/cppnet/cppkore/DragEventArgs.h
2023-03-28 21:18:11 +02:00

31 lines
808 B
C++

#pragma once
#include <cstdint>
#include "DragDropEffects.h"
namespace Forms
{
// Provides data for the DragDrop events.
class DragEventArgs
{
public:
DragEventArgs(IDataObject* Data, const int32_t KeyState, const int32_t X, const int32_t Y, const DragDropEffects AllowedEffect, DragDropEffects Effect);
~DragEventArgs() = default;
// The data associated with this event.
IDataObject* Data;
// The current state of the shift, ctrl, and alt keys.
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;
};
}