pub struct Timeline {
pub frame: i64,
pub frame_lines: i64,
pub line: i64,
pub line_start: i64,
/* private fields */
}Fields§
§frame: i64§frame_lines: i64§line: i64§line_start: i64Implementations§
Source§impl Timeline
impl Timeline
Sourcepub fn new(
machine: &Machine,
vce: &Vce,
start_line: i64,
start_offset: i64,
) -> Result<Timeline, String>
pub fn new( machine: &Machine, vce: &Vce, start_line: i64, start_offset: i64, ) -> Result<Timeline, String>
Time zero is the start of line start_line of frame 0 (U1: the power-up phase of the
raster against the CPU is not published; MAME’s CPU test trace starts at line 260).
start_offset puts time zero that many master clocks into the line instead.
pub fn next_line_start(&self) -> i64
pub fn in_vsync(&self) -> bool
pub fn timing(&self, vce: &Vce) -> VideoTiming
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timeline
impl<'de> Deserialize<'de> for Timeline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Timeline
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnwindSafe for Timeline
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