pub enum SwapChainPanelEvent {
Metrics {
width: f64,
height: f64,
scale_x: f32,
scale_y: f32,
},
Rendering,
}Expand description
Rendering and layout events from a swap-chain panel.
Variants§
Metrics
Reports panel dimensions in DIPs and the pixel scale for each axis.
Rendering
Requests a frame during the composition rendering pass.
Trait Implementations§
Source§impl Clone for SwapChainPanelEvent
impl Clone for SwapChainPanelEvent
Source§fn clone(&self) -> SwapChainPanelEvent
fn clone(&self) -> SwapChainPanelEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SwapChainPanelEvent
Source§impl Debug for SwapChainPanelEvent
impl Debug for SwapChainPanelEvent
Source§impl PartialEq for SwapChainPanelEvent
impl PartialEq for SwapChainPanelEvent
impl StructuralPartialEq for SwapChainPanelEvent
Auto Trait Implementations§
impl Freeze for SwapChainPanelEvent
impl RefUnwindSafe for SwapChainPanelEvent
impl Send for SwapChainPanelEvent
impl Sync for SwapChainPanelEvent
impl Unpin for SwapChainPanelEvent
impl UnsafeUnpin for SwapChainPanelEvent
impl UnwindSafe for SwapChainPanelEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more