Skip to content

[graphics] fix none-opaque moving and resizing#21887

Open
linev wants to merge 7 commits intoroot-project:masterfrom
linev:fix_nonopaque_moving
Open

[graphics] fix none-opaque moving and resizing#21887
linev wants to merge 7 commits intoroot-project:masterfrom
linev:fix_nonopaque_moving

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Apr 10, 2026

This is mode when not complete re-drawing of the pad is performed during object moving but just inverted painting of graphics primitives like line or box. While such mode is not default - it was not tested for long time and did not work properly

Adjust for begin TLine::ExecuteEvent and TBox::ExecuteEvent methods to properly handle non-opaque moving and resizing. Also significantly simplify TBox::ExecuteEvent logic and significantly reduce number of static variables there.

Same should be done also in TPad::ExecuteEvent

linev added 7 commits April 10, 2026 14:03
Use PaintArrowNDC in the TArrow::Paint
Use attributes ModifyOn methods
Shorten options handling code
When disabled, drawing performed on complete canvas. So one should use absolute coordinates for painting.

While such situation appears in interactive painting,
support for now only line and box drawing
Let work resize/move of TBox in not-opaque mode
While such mode is not default, it was not working since a long time.
Now repair logic when and how coordiantes are set back
Like for TBox or TLine mode was not tested for long time and therefore not working
Handle all resize corners, resize sides and moving similar
@linev linev self-assigned this Apr 10, 2026
@linev linev requested a review from couet as a code owner April 10, 2026 17:25
@linev linev changed the title [graphics] fix none-opaque moving and resizeing [graphics] fix none-opaque moving and resizing Apr 10, 2026
@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 4h 42m 33s ⏱️
 3 830 tests  3 829 ✅  1 💤 0 ❌
76 513 runs  76 495 ✅ 18 💤 0 ❌

Results for commit 9b27224.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant