MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / SetDraggable

Method SetDraggable

ogl/basic.cpp:364–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void wxShape::SetDraggable(bool drag, bool recursive)
365{
366 m_draggable = drag;
367 if (m_draggable)
368 m_sensitivity |= OP_DRAG_LEFT;
369 else
370 if (m_sensitivity & OP_DRAG_LEFT)
371 m_sensitivity = m_sensitivity - OP_DRAG_LEFT;
372
373 if (recursive)
374 {
375 wxNode *node = m_children.GetFirst();
376 while (node)
377 {
378 wxShape *obj = (wxShape *)node->GetData();
379 obj->SetDraggable(drag, true);
380 node = node->GetNext();
381 }
382 }
383}
384
385void wxShape::SetDrawHandles(bool drawH)
386{

Callers 2

OnLeftClickMethod · 0.80
CanvasLayoutDialogMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected