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 new(viewport: Size) -> FrameRenderParams
pub fn new(viewport: Size) -> FrameRenderParams
Sourcepub fn with_scale(self, scale_factor: f32) -> FrameRenderParams
pub fn with_scale(self, scale_factor: f32) -> FrameRenderParams
Sourcepub fn with_clear(self, clear_color: Color) -> FrameRenderParams
pub fn with_clear(self, clear_color: Color) -> FrameRenderParams
Sourcepub fn with_layout_stats(self, layout_stats: LayoutStats) -> FrameRenderParams
pub fn with_layout_stats(self, layout_stats: LayoutStats) -> FrameRenderParams
Sourcepub fn with_damage(self, damage: DamageRegion) -> FrameRenderParams
pub fn with_damage(self, damage: DamageRegion) -> FrameRenderParams
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 FrameRenderParams
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 FrameRenderParams
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 FrameRenderParams
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 FrameRenderParams
pub fn get_damage(&self) -> DamageRegion
pub fn get_mut_damage(&mut self) -> &mut DamageRegion
pub fn set_damage(&mut self, val: DamageRegion) -> &mut FrameRenderParams
Trait Implementations§
Source§impl Clone for FrameRenderParams
impl Clone for FrameRenderParams
Source§fn clone(&self) -> FrameRenderParams
fn clone(&self) -> FrameRenderParams
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 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