Struct ark_api::applet::WindowState
source · [−]#[repr(C)]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: u32
Viewport index
width: f32
Window width in logical pixels
height: f32
Window height in logical pixels
dpi_factor: f32
DPI scale factor. Multiply logical pixel coordinate with dpi_scale
to get physical pixels.
Divide to convert the other way.
Trait Implementations
sourceimpl Clone for WindowState
impl Clone for WindowState
sourcefn clone(&self) -> WindowState
fn clone(&self) -> WindowState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowState
impl Debug for WindowState
sourceimpl PartialEq<WindowState> for WindowState
impl PartialEq<WindowState> for WindowState
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
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
. Read more
sourcefn 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
. Read more