Skip to content

Add Rect support for ObjectFit::affine.#1791

Draft
xStrom wants to merge 4 commits intolinebender:mainfrom
xStrom:object-fit-rect
Draft

Add Rect support for ObjectFit::affine.#1791
xStrom wants to merge 4 commits intolinebender:mainfrom
xStrom:object-fit-rect

Conversation

@xStrom
Copy link
Copy Markdown
Member

@xStrom xStrom commented May 6, 2026

ObjectFit docs state that it provides strategies for inscribing a rectangle inside another rectangle. However, the ObjectFit::affine method only operates on a pair of Size structs.

This PR changes that to a pair of Rect structs so that the fitting strategies are also available for scenarios where the source/destination doesn't have a (0,0) origin.


Draft because it depends on #1788 and currently includes all of those commits as well.

@xStrom xStrom added masonry Issues relating to the Masonry widget layer blocked Progress is blocked by some other task. labels May 6, 2026
@xStrom xStrom mentioned this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Progress is blocked by some other task. masonry Issues relating to the Masonry widget layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant