You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is a valid use-case to only constrain the window width or height.
I think an implementation of this would be similar to LogicalSize and PhysicalSize
I couldn't think of a better names so these are subject to change ofc
#[derive(Debug,Copy,Clone,Eq,PartialEq,Default,Hash)]structLogicalUnit<P>(P);// conversion methods similar to `LogicalSize`#[derive(Debug,Copy,Clone,Eq,PartialEq,Default,Hash)]structPhysicalUnit<P>(P);// conversion methods similar to `PhysicalSize`#[derive(Debug,Copy,Clone,PartialEq)]enumUnit{Physical(PhysicalUnit<u32>),Logical(LogicalUnit<f64>),}// conversion methods similar to `Size`implWindowBuilder{fnwith_max_inner_size<S:Into<Unit>>(width:Option<U>,height:Option<U>);}
The text was updated successfully, but these errors were encountered:
I think it is a valid use-case to only constrain the window width or height.
I think an implementation of this would be similar to
LogicalSize
andPhysicalSize
The text was updated successfully, but these errors were encountered: