MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / EvLButtonDblClk

Method EvLButtonDblClk

roomedit/source/editcli.cpp:1585–1603  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////// TEditorClient -------------

Source from the content-addressed store, hash-verified

1583// -------------
1584//
1585void TEditorClient::EvLButtonDblClk (UINT modKeys, const TPoint& point)
1586{
1587 PointerX = point.x;
1588 PointerY = point.y;
1589
1590 // Ignore if "insert object" mode
1591 if ( InsertingObject )
1592 return;
1593
1594 TLayoutWindow::EvLButtonDblClk(modKeys, point);
1595
1596 // Check if double click on current object
1597 if ( CurObject == GetCurObject (EditMode,
1598 MAPX(PointerX - 4), MAPY(PointerY - 4),
1599 MAPX(PointerX + 4), MAPY(PointerY + 4)) )
1600 {
1601 EditCurObject ();
1602 }
1603}
1604
1605
1606/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

GetCurObjectFunction · 0.85

Tested by

no test coverage detected