Enum slint::WindowPosition
pub enum WindowPosition {
Physical(PhysicalPosition),
Logical(LogicalPosition),
}
Expand description
The position of the window in either physical or logical pixels. This is used
with Window::set_position
.
Variantsยง
Physical(PhysicalPosition)
The position in physical pixels.
Logical(LogicalPosition)
The position in logical pixels.
Implementationsยง
ยงimpl WindowPosition
impl WindowPosition
pub fn to_physical(&self, scale_factor: f32) -> PhysicalPosition
pub fn to_physical(&self, scale_factor: f32) -> PhysicalPosition
Turn the WindowPosition
into a PhysicalPosition
.
Trait Implementationsยง
ยงimpl Clone for WindowPosition
impl Clone for WindowPosition
ยงfn clone(&self) -> WindowPosition
fn clone(&self) -> WindowPosition
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreยงimpl Debug for WindowPosition
impl Debug for WindowPosition
ยงimpl From<LogicalPosition> for WindowPosition
impl From<LogicalPosition> for WindowPosition
ยงfn from(original: LogicalPosition) -> WindowPosition
fn from(original: LogicalPosition) -> WindowPosition
Converts to this type from the input type.
ยงimpl From<PhysicalPosition> for WindowPosition
impl From<PhysicalPosition> for WindowPosition
ยงfn from(original: PhysicalPosition) -> WindowPosition
fn from(original: PhysicalPosition) -> WindowPosition
Converts to this type from the input type.