Commit Graph

1216 Commits

Author SHA1 Message Date
Tig
3c3babb7fd git rebase --onto v2_3298_REDO-xxxToScreen-improvements 2024-03-06 21:32:01 -07:00
Tig
a8e9fcfca5 Added Thickness.Add + unit tests 2024-03-06 20:54:35 -07:00
Tig
745e2c21a2 Added low-level unit tests; found latent bugs in View.Clear, Bounds, etc... Fixed. 2024-03-06 20:38:25 -07:00
Tig
bb5c899864 cherry picked from old branch 2024-03-06 09:44:21 -07:00
Tig
17f9927a76 Re-removed clamped 2024-03-06 09:39:05 -07:00
Tig Kindel
d6e4a5b0bc Fixed fragile unit test 2024-03-05 14:07:33 -07:00
Tig Kindel
714121b1f9 Workaround VS2022 17.10.0 Preview 1.0 breaks collection expression for certain types 2024-03-05 11:32:04 -07:00
Tig Kindel
5607f530e4 Moved HasFocus out of Responder and made non-virtual 2024-03-04 17:24:39 -07:00
Tig Kindel
6b833ba08e Moved CanFocus out of Responder and made non-virtual 2024-03-04 17:19:39 -07:00
Tig Kindel
23e65d63a7 Added Padding button to Adornments scenario 2024-03-04 12:29:10 -07:00
Tig Kindel
bcccce4394 Removed findAdornments param and made FindDeepestView internal 2024-03-04 12:13:34 -07:00
Tig Kindel
3d30b06212 Fixed Menu: Was not dealing with Border correctly 2024-03-04 12:10:52 -07:00
Tig Kindel
efaaec41c2 Added simple Arragement unit test 2024-03-04 11:09:39 -07:00
Tig Kindel
86a3d18f7d Removed dead code from MenuBar 2024-03-04 10:09:30 -07:00
Tig Kindel
e3ad40a6fa Reenabled PositionTopLevel and fixed bug in TextField 2024-03-04 09:54:52 -07:00
Tig Kindel
cba58caac8 Toplevel drag via Adornment finished 2024-03-01 17:30:44 -07:00
Tig Kindel
4398ccade7 Moved Toplevel drag out of Toplevel into Adornment (but still only works for Toplevel) 2024-03-01 16:19:24 -07:00
Tig Kindel
1eaf8a713d Simplified test 2024-03-01 13:01:25 -07:00
Tig Kindel
260b2e7d64 Merge branch 'v2_develop' of github.com:gui-cs/Terminal.Gui into v2_develop 2024-03-01 12:37:22 -07:00
Tig Kindel
6e18bc4a2e Fixed IsOverriddent tests 2024-03-01 12:32:14 -07:00
Tig Kindel
7036f5f8f8 Cleaned up MouseClick related stuff. 2024-03-01 11:42:28 -07:00
Tig Kindel
bd8edbe201 Merged MouseEvent() and OnMouseEvent() 2024-02-29 17:29:25 -07:00
Brandon Thetford
0b2df753f3 Make these parts match Terminal.Gui 2024-02-29 13:48:04 -07:00
Brandon Thetford
8196cb1735 Define that once 2024-02-29 13:46:52 -07:00
Brandon Thetford
1818c2441e Generic attributes were added in .net7 and c# 11. 2024-02-29 13:46:47 -07:00
Brandon Thetford
25bcb66281 Move that part to the top, like Terminal.Gui 2024-02-29 13:46:42 -07:00
Brandon Thetford
41feacc143 Reverse the order of these
Alphabetizing
2024-02-29 13:46:35 -07:00
Brandon Thetford
0c490602db Remove unneeded elements 2024-02-29 13:46:18 -07:00
Tig Kindel
2432bf76b8 Added Adornment.FrameToScreen tests that prove old behavior was bad 2024-02-27 10:52:11 -07:00
Tig Kindel
f8283ecc83 Fixed Adornment.Bounds and added new tests 2024-02-27 09:58:54 -07:00
Tig Kindel
aa4e2c0ae7 FindDeepestView now correctly supports start with Adornments 2024-02-27 09:51:02 -07:00
Tig Kindel
3bc2909d73 WIP (broken) - support adornmnts 2024-02-27 08:21:01 -07:00
Tig Kindel
cecfb71ee1 Fixed Visible bug and addd unit tests 2024-02-27 08:00:59 -07:00
Tig Kindel
248efc2cc2 Simplified FindDeepestVieew 2024-02-27 07:43:13 -07:00
Tig Kindel
55b7858f46 Added FindDeepestView tests 2024-02-27 06:10:12 -07:00
Brandon Thetford
736eea1469 Fix this test for release builds 2024-02-25 20:52:15 -07:00
Brandon Thetford
13b6d754ff A couple more Rectangles simplified 2024-02-25 20:49:56 -07:00
Brandon Thetford
1ebc99b226 Fix this test for Release builds 2024-02-25 20:49:14 -07:00
Brandon Thetford
bfedfee9ee Simplify construction of new Rectangle, Size, Point, and *F instances
Use *.Empty when possible.
Use `with` in a few cases.
Also add some TODO commentary
2024-02-25 20:05:00 -07:00
Brandon Thetford
942e586f3c Switch to namespace import, now that the types are no longer ambiguous 2024-02-25 16:47:28 -07:00
Brandon Thetford
9303af9c44 Remove Size and SizeF 2024-02-25 16:47:03 -07:00
Brandon Thetford
c66951baa0 Remove RectangleF, Point, and PointF 2024-02-25 16:39:15 -07:00
Brandon Thetford
fde275c016 Add type aliases for RectangleF, Point, and PointF 2024-02-25 16:38:59 -07:00
Brandon Thetford
0e5e7e84e7 Remove the Rectangle tests 2024-02-22 19:56:09 -07:00
Brandon Thetford
42abe6ece5 Remove test code that is no longer valid
All other existing tests should (and do) pass at this commit.
2024-02-22 19:56:09 -07:00
Brandon Thetford
ac0b655b1a Add explicit casts to a few tests to ensure the correct type is tested. 2024-02-22 19:56:09 -07:00
Brandon Thetford
20a49c917b Remove Rectangle type and alias System.Drawing.Rectangle to Rectangle
Also remove a duplicate global using
2024-02-22 19:56:09 -07:00
Brandon Thetford
17d028432e Re-apply Rect->Rectangle name changes in these files 2024-02-22 16:03:06 -07:00
Brandon Thetford
70ca504687 This check is redundant with the rectangle check below 2024-02-22 16:01:59 -07:00
Brandon Thetford
48becffb35 Update this since 6.0.0 is no longer available and prevents build 2024-02-22 15:56:55 -07:00