Struct screen_13::FrameContext
source · [−]pub struct FrameContext<'a, P> where
P: SharedPointerKind, {
pub device: &'a SharedPointer<Device<P>, P>,
pub dt: f32,
pub events: &'a [Event<'a, ()>],
pub height: u32,
pub render_graph: &'a mut RenderGraph<P>,
pub swapchain_image: SwapchainImageNode<P>,
pub will_exit: &'a mut bool,
pub width: u32,
pub window: &'a Window,
}
Fields
device: &'a SharedPointer<Device<P>, P>
dt: f32
events: &'a [Event<'a, ()>]
height: u32
render_graph: &'a mut RenderGraph<P>
swapchain_image: SwapchainImageNode<P>
will_exit: &'a mut bool
width: u32
window: &'a Window
Implementations
sourceimpl<P> FrameContext<'_, P> where
P: SharedPointerKind,
impl<P> FrameContext<'_, P> where
P: SharedPointerKind,
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, P> !RefUnwindSafe for FrameContext<'a, P>
impl<'a, P> Send for FrameContext<'a, P> where
P: Send + Sync,
impl<'a, P> !Sync for FrameContext<'a, P>
impl<'a, P> Unpin for FrameContext<'a, P> where
P: Unpin,
impl<'a, P> !UnwindSafe for FrameContext<'a, P>
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