Skip to content

Analyze: Create Rectangle.OfFloat inside setters and getters of bounds, size, location, etc (points and pixels) for better precision #356

@amartya4256

Description

@amartya4256

Description
With the reintroduction of old DPIUtil.scaleUp and scaleBounds, we need to enforce the Rectangle.OfFloat inside setters and getters of controls in win32 to make sure, they have better precision.

**Tasks: **

  1. For every control, initialize rectangles in getters (points and pixels) with Rectangle.OfFloat.
  2. For every setter of widgets make sure they convert the rectangle into Rectangle.OfFloat.
  3. Provide a static method in Rectangle to convert rectangle to OfFlaot.

Metadata

Metadata

Assignees

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Projects

Status

🔖 Ready: Atomic

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions