Blender V4.3
GHOST_EventDragnDrop.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "GHOST_Event.hh"
12#include "IMB_imbuf.hh"
13#include "IMB_imbuf_types.hh"
14
47 public:
60 GHOST_TDragnDropTypes dataType,
61 GHOST_IWindow *window,
62 int x,
63 int y,
65 : GHOST_Event(time, type, window)
66 {
72 }
73
75 {
76 /* Free the dropped object data. */
77 if (m_dragnDropEventData.data == nullptr) {
78 return;
79 }
80
84 break;
87 int i;
88
89 for (i = 0; i < strArray->count; i++) {
90 free(strArray->strings[i]);
91 }
92
93 free(strArray->strings);
94 free(strArray);
95 break;
96 }
99 break;
100
101 default:
102 break;
103 }
104 }
105
106 protected:
109};
void BLI_kdtree_nd_ free(KDTree *tree)
GHOST_TEventType
void * GHOST_TDragnDropDataPtr
GHOST_TDragnDropTypes
@ GHOST_kDragnDropTypeFilenames
@ GHOST_kDragnDropTypeBitmap
@ GHOST_kDragnDropTypeString
Contains defines and structs used throughout the imbuf module.
GHOST_TEventDragnDropData m_dragnDropEventData
GHOST_EventDragnDrop(uint64_t time, GHOST_TEventType type, GHOST_TDragnDropTypes dataType, GHOST_IWindow *window, int x, int y, GHOST_TDragnDropDataPtr data)
GHOST_TEventDataPtr m_data
void IMB_freeImBuf(ImBuf *)
unsigned __int64 uint64_t
Definition stdint.h:90
GHOST_TDragnDropTypes dataType
GHOST_TDragnDropDataPtr data