Struct screen_13::FrameContext
source · [−]pub struct FrameContext<'a> {
pub device: &'a Arc<Device>,
pub dt: f32,
pub events: &'a [Event<'a, ()>],
pub height: u32,
pub render_graph: &'a mut RenderGraph,
pub swapchain_image: SwapchainImageNode,
pub will_exit: &'a mut bool,
pub width: u32,
pub window: &'a Window,
}Fields
device: &'a Arc<Device>dt: f32events: &'a [Event<'a, ()>]height: u32render_graph: &'a mut RenderGraphswapchain_image: SwapchainImageNodewill_exit: &'a mut boolwidth: u32window: &'a WindowImplementations
sourceimpl FrameContext<'_>
impl FrameContext<'_>
pub fn exit(&mut self)
pub fn render_aspect_ratio(&self) -> f32
pub fn center_cursor(&self)
pub fn set_cursor_position(&self, x: u32, y: u32)
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FrameContext<'a>
impl<'a> Send for FrameContext<'a>
impl<'a> !Sync for FrameContext<'a>
impl<'a> Unpin for FrameContext<'a>
impl<'a> !UnwindSafe for FrameContext<'a>
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