Skip to content

Conversation

@ShahzaibIbrahim
Copy link
Contributor

When the size point is Point.OfFloat, return Rectangle.OfFloat to retain sub-pixel precision; otherwise return the classic Rectangle.

This is introduced as needed to be used in eclipse-platform/eclipse.platform.ui#3597

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2025

Test Results

  176 files  ±0    176 suites  ±0   27m 51s ⏱️ +19s
4 676 tests +4  4 654 ✅ +4  22 💤 ±0  0 ❌ ±0 
  482 runs  ±0    476 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit 8bc9f1f. ± Comparison against base commit cf7f9db.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-563 branch 2 times, most recently from 8d533eb to b701ab0 Compare January 5, 2026 09:02
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Test Results (macos)

   54 files  ±0     54 suites  ±0   7m 29s ⏱️ +40s
4 517 tests +4  4 274 ✅ +4  243 💤 ±0  0 ❌ ±0 
  104 runs  ±0    104 ✅ ±0    0 💤 ±0  0 ❌ ±0 

Results for commit efcb233. ± Comparison against base commit 892be33.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Test Results (linux)

   30 files   -  58     30 suites   - 58   3m 45s ⏱️ - 10m 53s
4 561 tests +  4  4 341 ✅ +  4  220 💤 ±0  0 ❌ ±0 
   71 runs   - 140     70 ✅  - 138    1 💤  - 2  0 ❌ ±0 

Results for commit efcb233. ± Comparison against base commit 892be33.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-563 branch 2 times, most recently from eee15ab to 76eb807 Compare January 7, 2026 14:21
Allows to create a Rectangle with higher-precision width and height
based on a Point.OfFloat for the dimension.
@HeikoKlare HeikoKlare merged commit 5303816 into eclipse-platform:master Jan 7, 2026
30 of 31 checks passed
@HeikoKlare HeikoKlare deleted the master-563 branch January 7, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SWT: Add Rectangle.of(Point, Point) preserving OfFloat dimensions

4 participants