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

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

♻️ 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
Extract coordinates once, return WithMonitor if present, otherwise
choose OfFloat when needed or fall back to a normal Rectangle.
@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.

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