Game Develop Core: LayoutEditorCanvasTextDnd.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
LayoutEditorCanvasTextDnd.h
Go to the documentation of this file.
1
6 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
7 #ifndef LAYOUTEDITORCANVASTEXTDND_H
8 #define LAYOUTEDITORCANVASTEXTDND_H
9 #include <wx/dnd.h>
10
11 namespace gd
12 {
13
19 class LayoutEditorCanvasTextDnd : public wxTextDropTarget
20 {
21 public:
22 LayoutEditorCanvasTextDnd(LayoutEditorCanvas & layoutCanvas_) : layoutCanvas(layoutCanvas_) {}
23
24 virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& text);
25
26 private:
27 LayoutEditorCanvas & layoutCanvas;
28 };
29
30 }
31 #endif // LAYOUTEDITORCANVASTEXTDND_H
32 #endif