pub struct BeginFrameCommandBuilder { /* private fields */ }experimental and HeadlessExperimental and Page and Runtime only.Implementations§
Source§impl BeginFrameCommandBuilder
impl BeginFrameCommandBuilder
Sourcepub fn frame_time_ticks(&mut self, v: f64) -> &mut Self
pub fn frame_time_ticks(&mut self, v: f64) -> &mut Self
Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, the current time will be used.
Sourcepub fn interval(&mut self, v: f64) -> &mut Self
pub fn interval(&mut self, v: f64) -> &mut Self
The interval between BeginFrames that is reported to the compositor, in milliseconds. Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.
Sourcepub fn no_display_updates(&mut self, v: bool) -> &mut Self
pub fn no_display_updates(&mut self, v: bool) -> &mut Self
Whether updates should not be committed and drawn onto the display. False by default. If true, only side effects of the BeginFrame will be run, such as layout and animations, but any visual updates may not be visible on the display or in screenshots.
Sourcepub fn screenshot(&mut self, v: ScreenshotParams) -> &mut Self
pub fn screenshot(&mut self, v: ScreenshotParams) -> &mut Self
If set, a screenshot of the frame will be captured and returned in the response. Otherwise, no screenshot will be captured. Note that capturing a screenshot can fail, for example, during renderer initialization. In such a case, no screenshot data will be returned.
pub fn build(&mut self) -> Result<BeginFrameCommand, &'static str>
Trait Implementations§
Source§impl Clone for BeginFrameCommandBuilder
impl Clone for BeginFrameCommandBuilder
Source§fn clone(&self) -> BeginFrameCommandBuilder
fn clone(&self) -> BeginFrameCommandBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more