pub struct FrameRenderParams { /* private fields */ }Expand description
Fluent per-frame parameter bundle for Renderer::render_with.
Implementations§
Source§impl FrameRenderParams
Fluent builder helpers for FrameRenderParams.
impl FrameRenderParams
Fluent builder helpers for FrameRenderParams.
Sourcepub fn with_scale(self, scale_factor: f32) -> Self
pub fn with_scale(self, scale_factor: f32) -> Self
Sourcepub fn with_clear(self, clear_color: Color) -> Self
pub fn with_clear(self, clear_color: Color) -> Self
Sourcepub fn with_layout_stats(self, layout_stats: LayoutStats) -> Self
pub fn with_layout_stats(self, layout_stats: LayoutStats) -> Self
Sourcepub fn with_damage(self, damage: DamageRegion) -> Self
pub fn with_damage(self, damage: DamageRegion) -> Self
Source§impl FrameRenderParams
impl FrameRenderParams
pub fn get_viewport(&self) -> Size
pub fn get_mut_viewport(&mut self) -> &mut Size
pub fn set_viewport(&mut self, val: Size) -> &mut Self
pub fn get_scale_factor(&self) -> f32
pub fn get_mut_scale_factor(&mut self) -> &mut f32
pub fn set_scale_factor(&mut self, val: f32) -> &mut Self
pub fn get_clear_color(&self) -> Color
pub fn get_mut_clear_color(&mut self) -> &mut Color
pub fn set_clear_color(&mut self, val: Color) -> &mut Self
pub fn get_layout_stats(&self) -> LayoutStats
pub fn get_mut_layout_stats(&mut self) -> &mut LayoutStats
pub fn set_layout_stats(&mut self, val: LayoutStats) -> &mut Self
pub fn get_damage(&self) -> DamageRegion
pub fn get_mut_damage(&mut self) -> &mut DamageRegion
pub fn set_damage(&mut self, val: DamageRegion) -> &mut Self
Trait Implementations§
Source§impl Clone for FrameRenderParams
impl Clone for FrameRenderParams
impl Copy for FrameRenderParams
Source§impl Debug for FrameRenderParams
impl Debug for FrameRenderParams
Source§impl PartialEq for FrameRenderParams
impl PartialEq for FrameRenderParams
impl StructuralPartialEq for FrameRenderParams
Auto Trait Implementations§
impl Forget for FrameRenderParams
impl Freeze for FrameRenderParams
impl Move for FrameRenderParams
impl RefUnwindSafe for FrameRenderParams
impl Send for FrameRenderParams
impl Sync for FrameRenderParams
impl Unpin for FrameRenderParams
impl UnsafeUnpin for FrameRenderParams
impl UnwindSafe for FrameRenderParams
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