Commit Graph

4522 Commits

Author SHA1 Message Date
BDisp
ed3d29da13 Adds assert tests for Frame. 2023-12-03 23:37:34 +00:00
BDisp
b7b549b353 Adds missing XML parameter. 2023-12-03 23:36:17 +00:00
BDisp
7df13f21ca Draws a minimum full border. 2023-12-03 23:34:13 +00:00
BDisp
d474e0b4de Implements tabs, left and right arrows as View. 2023-12-03 23:32:00 +00:00
BDisp
892241d841 Merge branch 'v2_textdirection-vertical-autosize_3017' into v2_tabview-frame-fix_2882 2023-11-29 18:11:34 +00:00
BDisp
c084309d56 Fix unit tests related with LayoutStyle. 2023-11-29 16:58:15 +00:00
BDisp
73de270a8b DateField and TimeField depends on LayoutStyle.Computed. 2023-11-29 16:49:14 +00:00
BDisp
60bdd9635c Only LayoutStyle.Computed can change the Frame. 2023-11-29 16:44:12 +00:00
BDisp
fcd221e5fd Removing forgotten code. 2023-11-29 16:42:08 +00:00
BDisp
9e9bf1a266 Restoring code I've broken. 2023-11-29 01:04:51 +00:00
BDisp
fc2e69b39a Fixing broken unit tests. 2023-11-29 00:52:43 +00:00
BDisp
c72ad5bb7a Fix some issues with AutoSize and ForceValidatePosDim. 2023-11-28 21:25:47 +00:00
BDisp
5d5d32d0f6 Using Frame to force read from the get method. 2023-11-28 21:23:59 +00:00
BDisp
5c978603e2 Fixes #3017. View TextDirection returns incorrect size on a vertical direction instance with AutoSize as false. 2023-11-28 21:16:47 +00:00
Tig
42b9ad1d61 Fixes #2578 - Updates mouse events to be relative to View.Bounds (#2920)
* initial commit

* Clarified RootMouseEvent

* Added application mouse coord tests

* ViewToScreen -> BoundsToScreen

* Simplified View.Move

* Simplified View.Move

* Updated API docs; made some functions private

* more ViewLayout cleanup

* more ViewLayout cleanup

* Added View.ScreenToBounds and low-level coord unit tests

* Partial fix

* Refactored Application.OnMouseEvent... Tests still fail and views are broken

* Added Bounds/FrameToScreen

* Remamed ScreenToView->ScreenToFrame

* All unit tests pass

* Fixed ListView

* Fixed TableView

* Fixed ColorPicker

* Fixed RadioGroup

* Fixed ListView unit tests

* Fixed line drawing scenario

* Updated comment

* fixed api doc typo

* fixed formatting

* added some thickness Contains unit tests

* MouseEvent api doc updates

* More thickness tests

* More thickness tests
2023-11-26 16:58:52 -07:00
BDisp
b381ff5766 Resolving merge conflicts. 2023-11-26 23:27:00 +00:00
BDisp
3f4d96bec7 Fixes #3011. TextFormatter doesn't handle combining and tab runes. (#3012)
* Add horizontal and vertical support for combining glyphs.

* Fix text and auto size behavior.

* Add TabWidth property.

* Add unit test for WordWrap.

* Add MultiLine property and improve more code.

* Fix word wrap on MessageBox.

* Fix label unit test.

* Rename to GetTextFormatterSizeNeededForTextAndHotKey

* Proves that TextFormatter.Size not must to have the same View.Bounds.Size.

* Fix fails unit tests.

* Updates AutoSize document.

* Updates MultiLine document.

* Removes Application dependency from the TextFormatter class.

* Fix Draw XML comment.
2023-11-26 15:41:54 -07:00
Thomas Nind
8ed1b16ee1 Line canvas exclude method (#3004) 2023-11-26 06:57:23 -07:00
BDisp
01f8552933 Merge branch 'v2_combining-tab-fix_3011' into v2_tabview-frame-fix_2882 2023-11-25 00:32:23 +00:00
BDisp
b94ca727ea Add unit test for WordWrap. 2023-11-24 23:54:25 +00:00
BDisp
063cea8526 Add TabWidth property. 2023-11-24 23:45:32 +00:00
BDisp
b0e5ada1fb Fix text and auto size behavior. 2023-11-24 21:12:21 +00:00
BDisp
7b3d8eed2b Add horizontal and vertical support for combining glyphs. 2023-11-24 19:50:16 +00:00
BDisp
a4861ed3a3 Reverting this changes to start a new one. 2023-11-23 22:17:27 +00:00
BDisp
f29295452c Revert "Fixes #2983. View need a alternative DrawFrame for the v2."
This reverts commit dade9fd767.
2023-11-23 22:10:44 +00:00
BDisp
1ca069309e Revert "Use new DrawFrame method."
This reverts commit 69a7f17f19.
2023-11-23 22:09:56 +00:00
BDisp
1a9dc9ea0f Resolving merge conflicts. 2023-11-23 22:09:12 +00:00
BDisp
6f8f2efc2a Revert "Add DrawIncompleteFrame method and unit tests."
This reverts commit 680ba264e1.
2023-11-23 21:59:48 +00:00
BDisp
2e5a658d16 Revert "Add more unit tests to LineCanvas."
This reverts commit 66bc6f514e.
2023-11-23 21:59:15 +00:00
BDisp
042e180206 Revert "Fix newline conflict errors."
This reverts commit 4acf72612d.
2023-11-23 21:58:47 +00:00
BDisp
1360b31623 Revert "I will never rely on zero-location-based unit test again."
This reverts commit 62adf6f285.
2023-11-23 21:58:10 +00:00
BDisp
9d09dc8ae8 Revert "Using location of 3 to avoid be divisible by 2 and so avoiding bugs."
This reverts commit dd3df135d8.
2023-11-23 21:57:17 +00:00
BDisp
dd3df135d8 Using location of 3 to avoid be divisible by 2 and so avoiding bugs. 2023-11-23 21:53:45 +00:00
BDisp
3641233eb6 Merge branch 'v2_develop' into v2_tabview-frame-fix_2882 2023-11-23 21:53:16 +00:00
Tig
0d1bbdd0f9 Updates to xunit 2.6.2 which fixes issue in 2.6.1 (#3003) 2023-11-20 09:25:24 -07:00
BDisp
d2967c1ede Fixes #2883. ProgressBar: 'Frame.DrawFrame(Rect, bool)' is obsolete: 'This method is obsolete in v2. Use use LineCanvas or Frame (#2979)
* Fixes #2883. ProgressBar: 'Frame.DrawFrame(Rect, bool)' is obsolete: 'This method is obsolete in v2. Use use LineCanvas or Frame

* Refactored ProgressBar to use Frames correctly

* Hacked other FramesEditor scenarios to work... needs to be done more cleanly

* Prevents for null state.

* re-added my changs

* Fixed unit tests

* Fixed unit tests2

* Commit to run CI test again.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>
Co-authored-by: Tig Kindel <tig@kindel.com>
2023-11-20 09:08:00 -07:00
BDisp
b5938678a9 Merge branch 'v2_develop' into v2_tabview-frame-fix_2882 2023-11-20 00:44:13 +00:00
Tig
cf947026ce v2 - Updates nuget dependencies (#2998)
* Updated dependencies

* Reverted to xunit 2.5.3 until 2.6.2 is out
2023-11-19 15:40:19 -07:00
BDisp
3810b7d3d5 Fixes #2944. TestTreeViewColor unit test sometimes fails (#3000) 2023-11-19 15:38:38 -07:00
BDisp
06cd510532 Resolving merge conflicts. 2023-11-19 19:24:26 +00:00
BDisp
6808580c6a Fix TestTreeViewColor unit test fail. 2023-11-19 19:12:05 +00:00
BDisp
62adf6f285 I will never rely on zero-location-based unit test again. 2023-11-19 19:11:02 +00:00
BDisp
60ac56e249 Force render immediately instead of join. 2023-11-18 23:54:19 +00:00
BDisp
c047301c37 Fix newline conflict errors. 2023-11-18 23:54:19 +00:00
BDisp
314a50bc4b Add more unit tests to LineCanvas. 2023-11-18 23:54:06 +00:00
BDisp
b6edca204b Add DrawIncompleteFrame method and unit tests. 2023-11-18 23:53:34 +00:00
BDisp
1a48680658 Revert "Change _lines field to Lines property."
This reverts commit ab6c5f3094.
2023-11-18 23:53:20 +00:00
BDisp
4acf72612d Fix newline conflict errors. 2023-11-18 23:27:25 +00:00
BDisp
66bc6f514e Add more unit tests to LineCanvas. 2023-11-18 23:27:24 +00:00
BDisp
680ba264e1 Add DrawIncompleteFrame method and unit tests. 2023-11-18 23:27:11 +00:00