pub struct TimelineEditor {
pub timeline: Timeline,
pub selection: KeySelection,
pub px_per_sec: f32,
pub scroll_y: f32,
pub curve_mode: bool,
pub auto_key: bool,
pub ripple: bool,
/* private fields */
}Expand description
Full editor wrapper around Timeline.
Fields§
§timeline: Timeline§selection: KeySelection§px_per_sec: f32Pixels-per-second for the dopesheet/curve editor.
scroll_y: f32Vertical scroll in the track list.
curve_mode: boolWhether to show the curve editor (false = dopesheet mode).
auto_key: boolWhether to auto-key: insert a key whenever a property changes.
ripple: boolWhether to ripple-edit (shift subsequent keys on insert/delete).
Implementations§
Source§impl TimelineEditor
impl TimelineEditor
pub fn new() -> Self
pub fn time_to_px(&self, t: Time) -> f32
pub fn px_to_time(&self, px: f32) -> Time
pub fn zoom_in(&mut self)
pub fn zoom_out(&mut self)
pub fn add_track(&mut self, target: TrackTarget) -> TrackId
pub fn insert_key( &mut self, track_id: TrackId, time: Time, value: TrackValue, ) -> Option<KeyId>
pub fn delete_selected(&mut self)
pub fn undo(&mut self)
pub fn redo(&mut self)
pub fn auto_key_float(&mut self, track_id: TrackId, value: f32)
pub fn auto_key_quat(&mut self, track_id: TrackId, q: Quat)
pub fn status_line(&self) -> String
Trait Implementations§
Source§impl Debug for TimelineEditor
impl Debug for TimelineEditor
Auto Trait Implementations§
impl Freeze for TimelineEditor
impl RefUnwindSafe for TimelineEditor
impl Send for TimelineEditor
impl Sync for TimelineEditor
impl Unpin for TimelineEditor
impl UnsafeUnpin for TimelineEditor
impl UnwindSafe for TimelineEditor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.