mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 02:47:48 +02:00
Enhanced object snapping for box edit mode - other corners snap too second order
This commit is contained in:
@@ -277,9 +277,11 @@ EditorServiceBase::clear_mouse_cursors ()
|
||||
}
|
||||
|
||||
void
|
||||
EditorServiceBase::mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details)
|
||||
EditorServiceBase::mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details, bool noclear)
|
||||
{
|
||||
clear_mouse_cursors ();
|
||||
if (! noclear) {
|
||||
clear_mouse_cursors ();
|
||||
}
|
||||
|
||||
add_mouse_cursor (snap_details.snapped_point,
|
||||
snap_details.object_snap == lay::PointSnapToObjectResult::ObjectVertex ||
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
/**
|
||||
* @brief Provides a nice mouse tracking cursor from the given snap details
|
||||
*/
|
||||
void mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details);
|
||||
void mouse_cursor_from_snap_details (const lay::PointSnapToObjectResult &snap_details, bool noclear = false);
|
||||
|
||||
/**
|
||||
* @brief Gets the tracking cursor color
|
||||
|
||||
Reference in New Issue
Block a user