Commit Graph

4909 Commits

Author SHA1 Message Date
Tig
fd4fdb8b1a More unit tests and code cleanup 2024-03-20 07:33:02 -07:00
Tig
f55d9bbdcd ViewportToScreen now deals with + location. Updated unit tests. 2024-03-20 07:01:31 -07:00
Tig
6f664c9c6a Added ContentSize property and first unit test 2024-03-19 17:52:44 -07:00
Tig
6b1a429e56 Rebased with v2_develop 2024-03-18 16:05:54 -07:00
Tig
6badd0de12 Merge pull request #3337 from tig/v2_3332-Clipping-SetSubViewNeedsDisplay
Fixes #3332.  `ClearNeedsDisplay` needs to iterate through sub views
2024-03-18 15:49:47 -07:00
Tig
8cf63d565a Added some NeedDisplay unit tess 2024-03-18 12:46:35 -07:00
Tig
262e878078 Fixed Clipping scenario - ClearNeedsDisplay was not calling into subviews 2024-03-18 12:19:04 -07:00
Tig
a27708a3f9 Fixed Clipping scenario - SetSubViewNeedsDisplay 2024-03-18 10:04:03 -07:00
Tig
00c4680d26 Fixed Clipping scenario 2024-03-18 09:59:57 -07:00
Tig
d915c4e6f8 Fixed API doc typo 2024-03-18 09:42:58 -07:00
Tig
ae008f72b5 Merge pull request #3334 from BDisp/v2_mousegrabview-fix_3333
Fixes #3333. Application.UnGrabbedMouse event doesn't allow grab another view after exit.
2024-03-18 08:42:20 -07:00
Tig
ea9c040afb Merge pull request #3335 from tig/v2_3331-CharMap-ScrollBars
Fixes #3331. Fixed incorrect clip code in CharMap scenario and added comments.
2024-03-18 08:41:16 -07:00
BDisp
d8c1a0c118 Merge branch 'v2_develop' into v2_mousegrabview-fix_3333 2024-03-17 22:47:20 +00:00
BDisp
704f1407d8 Break the loop if the superview is found. 2024-03-17 22:46:44 +00:00
Tig
9aec5b1c6d Merge branch 'v2_3269_Bounds-ContentArea' of tig:tig/Terminal.Gui into v2_3269_Bounds-ContentArea 2024-03-17 15:38:30 -07:00
Tig
d81a1ee977 Merge pull request #3330 from tig/v2_3313-Application-End-Top
Fixes #3313. `Application.End` leaves `Top` invalid
2024-03-17 14:34:42 -08:00
Tig
40b28d2120 Fixed incorrect clip code.
Changed to draw on OnDrawContent override.
Added comments to clarify drawing code.
2024-03-17 15:32:02 -07:00
BDisp
1573bb025b Check for the superview instead of check if it contains on the subviews. 2024-03-17 21:11:11 +00:00
BDisp
0120a3648f Fixes #3333. Application.UnGrabbedMouse event doesn't allow grab another view after exit. 2024-03-17 20:06:03 +00:00
Tig
1549d0de1d Merge branch 'v2_3269_Bounds-ContentArea' of tig:tig/Terminal.Gui into v2_3269_Bounds-ContentArea 2024-03-17 11:20:43 -07:00
Tig
0cde0e17ea Fixed menu code that was using View.Move inproperly 2024-03-17 11:16:00 -07:00
Tig
7767bd13fa Made View.Move and View.AddRune constrain; added unit tests 2024-03-17 10:43:39 -07:00
Tig
ab021bf0b0 Updated API docs 2024-03-17 08:57:01 -08:00
Tig
bd4eeb9fab Merge branch 'v2_develop' into v2_3313-Application-End-Top 2024-03-17 07:50:56 -08:00
Tig
ab07ec665b Removed erroneous Disosal and fixed poorly coded unit test: A toplevel manually creatged must be disposed by creator 2024-03-17 07:41:37 -08:00
Tig
73a6e66139 Tweaked unit tests 2024-03-16 08:46:29 -08:00
Tig
68a07cfddb Verify runstate.Top never equals Top 2024-03-16 08:04:40 -08:00
Tig
f9332fd8d5 Merge pull request #3327 from BDisp/v2_menu-mouse-fix_3326
Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse.
2024-03-16 07:37:03 -08:00
BDisp
2b3a67c7a9 Fix typo. 2024-03-14 23:02:23 +00:00
BDisp
534ab2a631 Fixes #3326. Menu is responding even outside the limits, not moving to the view that has the mouse. 2024-03-14 22:42:21 +00:00
Tig
ebc47de514 Reamed Bounds -> Viewport test rename 2024-03-14 10:24:31 -08:00
Tig
b187a8e70f Reamed Bounds -> Viewport - MOAR rename 2024-03-14 09:55:27 -08:00
Tig
0900333e12 Reamed Bounds -> Viewport - more rename 2024-03-14 08:12:50 -08:00
Tig
3a40dec249 Reamed Bounds -> Viewport in comments 2024-03-14 07:39:12 -08:00
Tig
f6ff36968e Reamed Bounds -> ViewPort to see how it feels 2024-03-14 07:30:27 -08:00
Tig
a5b1d6836e Merge pull request #3295 from tig/v2_3273_FOUND_finddeepestview
Fixes #3273 (Again).  Updates `FindDeepestView` etc... to finish `Adornment`
2024-03-13 20:34:29 -08:00
Tig
df4f479ce6 Fixed drag bug; added mouse unit tests 2024-03-13 20:24:46 -08:00
Tig
f9b3959637 Fixed drag bug 2024-03-11 17:35:24 -08:00
Tig
2057cb47d5 Simplified FrameToScreen 2024-03-11 12:12:35 -08:00
Tig
ebb33bf9fc Simplified ScreenToFrame 2024-03-11 12:09:25 -08:00
Tig
11c1be60b9 Simplified View.CrateAdornments; removed reflection 2024-03-11 11:57:24 -08:00
Tig
d630612864 Simplified and renamed GetLocationThatFits 2024-03-11 11:39:51 -08:00
Tig
52b464f305 Simplified and renamed GetLocationThatFits 2024-03-11 11:39:22 -08:00
Tig
a094d02c8b Simplified and renamed GetLocationThatFits 2024-03-11 11:39:08 -08:00
Tig
591434054c Simplified and renamed GetLocationThatFits 2024-03-11 11:38:44 -08:00
Tig
064262bed6 Simplified and made FindDeepestView more efficient 2024-03-11 11:10:17 -08:00
Tig
63405dfd7d Code Cleanup 2024-03-11 08:13:39 -08:00
Tig
e40ef4b52b Merge branch 'v2_3273_FOUND_finddeepestview' of tig:tig/Terminal.Gui into v2_3273_FOUND_finddeepestview 2024-03-11 07:48:02 -08:00
Tig
80d8e87639 Removed debug spew. 2024-03-11 07:46:04 -08:00
Tig
919f8e5991 Merge branch 'v2_develop' into v2_3273_FOUND_finddeepestview 2024-03-10 10:56:14 -06:00