iced
iced copied to clipboard
Add `SpecificWith` variant to `window::Position`
This PR introduces a SpecificWith
variant to the window::Position
enum.
It works analogously to the Specific
variant but it takes a function pointer instead. This function will be called with the window size and the monitor's resolution—effectively allowing relative positioning inside a monitor's bounds.