◆ ColorDropTarget()
| Slic3r::GUI::ColorDropTarget::ColorDropTarget |
( |
DragDropPanel * | panel | ) |
|
|
inline |
202 : wxDropTarget(),
m_panel(panel)
203 {
204 m_data =
new ColorDataObject();
206 }
DragDropPanel * m_panel
Definition DragDropPanel.cpp:214
ColorDataObject * m_data
Definition DragDropPanel.cpp:215
References m_data, and m_panel.
◆ OnData()
| wxDragResult Slic3r::GUI::ColorDropTarget::OnData |
( |
wxCoord | x, |
|
|
wxCoord | y, |
|
|
wxDragResult | def ) |
|
overridevirtual |
219{
220 if (!GetData())
221 return wxDragNone;
222
223 ColorDataObject *dataObject = dynamic_cast<ColorDataObject *>(GetDataObject());
225
226 return wxDragCopy;
227}
References m_data, and m_panel.
◆ OnDrop()
| virtual bool Slic3r::GUI::ColorDropTarget::OnDrop |
( |
wxCoord | x, |
|
|
wxCoord | y ) |
|
inlineoverridevirtual |
209 {
210 return true;
211 }
◆ m_data
◆ m_panel
The documentation for this class was generated from the following file: