[graphics] fix none-opaque moving and resizing#21887
Open
linev wants to merge 7 commits intoroot-project:masterfrom
Open
[graphics] fix none-opaque moving and resizing#21887linev wants to merge 7 commits intoroot-project:masterfrom
linev wants to merge 7 commits intoroot-project:masterfrom
Conversation
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
Similar as TBox
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
Test Results 22 files 22 suites 3d 4h 42m 33s ⏱️ Results for commit 9b27224. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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::ExecuteEventandTBox::ExecuteEventmethods to properly handle non-opaque moving and resizing. Also significantly simplifyTBox::ExecuteEventlogic and significantly reduce number of static variables there.Same should be done also in
TPad::ExecuteEvent