TimelineLane
struct · ferroui-designer · v0.5.0
struct TimelineLane
Members
TYPEto_refnewruleris_rulerview_rangeconfigureset_viewset_playheadset_selectedset_selected_keysselected_keysset_frame_rateframe_rateon_selection_changedon_move_selectionon_remove_selectionon_duplicate_selectionset_highlightedon_activateon_moveon_removeon_inserton_zoomon_pan
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TimelineLane>
Returns a strong reference to this object.
new
fn new() -> Ref<Self>
ruler
fn ruler() -> Ref<Self>
is_ruler
fn is_ruler(self: &Self) -> bool
view_range
fn view_range(self: &Self) -> (f64, f64)
The visible time interval, shared by the ruler and every track in a host.
configure
fn configure(self: &Self, duration: f64, keys: Vec<f64>)
set_view
fn set_view(self: &Self, start: f64, end: f64)
set_playhead
fn set_playhead(self: &Self, time: f64)
set_selected
fn set_selected(self: &Self, time: Option<f64>)
set_selected_keys
fn set_selected_keys(self: &Self, times: Vec<f64>, primary: Option<f64>)
Accepts a host selection. Times not present in this lane are discarded. The primary key is used for keyboard navigation and the contextual editor.
selected_keys
fn selected_keys(self: &Self) -> Vec<f64>
set_frame_rate
fn set_frame_rate(self: &Self, frames_per_second: Option<u32>)
Sets frame snapping and frame labels, or restores adaptive seconds snapping. Supported rates are 1–1000 fps; invalid values restore seconds mode.
frame_rate
fn frame_rate(self: &Self) -> Option<u32>
on_selection_changed
fn on_selection_changed(self: &Self, callback: impl Fn(Vec<f64>, Option<f64>, bool) -> () + 'static)
Reports a completed local selection. additive preserves selections in other lanes.
No callback is emitted during a pointer gesture, so hosts may rebuild on completion.
on_move_selection
fn on_move_selection(self: &Self, callback: impl Fn(Vec<f64>, f64) -> () + 'static)
Reports one delta for all selected keys. The host commits it atomically.
on_remove_selection
fn on_remove_selection(self: &Self, callback: impl Fn(Vec<f64>) -> () + 'static)
on_duplicate_selection
fn on_duplicate_selection(self: &Self, callback: impl Fn(Vec<f64>, f64) -> () + 'static)
set_highlighted
fn set_highlighted(self: &Self, highlighted: bool)
on_activate
fn on_activate(self: &Self, callback: impl Fn(f64) -> () + 'static)
on_move
fn on_move(self: &Self, callback: impl Fn(f64, f64) -> () + 'static)
on_remove
fn on_remove(self: &Self, callback: impl Fn(f64) -> () + 'static)
on_insert
fn on_insert(self: &Self, callback: impl Fn(f64) -> () + 'static)
on_zoom
fn on_zoom(self: &Self, callback: impl Fn(f64, f64) -> () + 'static)
on_pan
fn on_pan(self: &Self, callback: impl Fn(f64) -> () + 'static)
Requests a horizontal viewport shift, measured in timeline seconds.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherControlImplExtSameDerefUpcast<T>Upcast<TimelineLane>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplLayoutableImplInteractiveImplControlImplInputElementImplVisualImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.