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   26m 9s ⏱️ + 1m 7s
4 676 tests +4  4 654 ✅ +4  22 💤 ±0  0 ❌ ±0 
  482 runs  ±0    476 ✅ ±0   6 💤 ±0  0 ❌ ±0 

Results for commit 696288e. ± Comparison against base commit 1bc596e.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-563 branch 3 times, most recently from eebe042 to 8ae684b Compare December 29, 2025 12:51
When the size point is Point.OfFloat, return Rectangle.OfFloat to retain
sub-pixel precision; otherwise return the classic Rectangle.
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

2 participants