Struct ark_api::applet::WindowState
source · pub struct WindowState {
pub viewport_index: u32,
pub width: f32,
pub height: f32,
pub dpi_factor: f32,
}Expand description
Contains information about the window
Fields§
§viewport_index: u32Viewport index
width: f32Window width in logical pixels
height: f32Window height in logical pixels
dpi_factor: f32DPI scale factor. Multiply logical pixel coordinate with dpi_scale to get physical pixels.
Divide to convert the other way.
Trait Implementations§
source§impl Clone for WindowState
impl Clone for WindowState
source§fn clone(&self) -> WindowState
fn clone(&self) -> WindowState
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 moresource§impl Debug for WindowState
impl Debug for WindowState
source§impl PartialEq<WindowState> for WindowState
impl PartialEq<WindowState> for WindowState
source§fn eq(&self, other: &WindowState) -> bool
fn eq(&self, other: &WindowState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for WindowState
impl Pod for WindowState
impl StructuralPartialEq for WindowState
Auto Trait Implementations§
impl RefUnwindSafe for WindowState
impl Send for WindowState
impl Sync for WindowState
impl Unpin for WindowState
impl UnwindSafe for WindowState
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.