FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TimelineLane

    struct · ferroui-designer · v0.5.0

    struct TimelineLane
    

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TimelineLane>
    

    Returns a strong reference to this object.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    ruler

    fn ruler() -> Ref<Self>
    

    Source

    is_ruler

    fn is_ruler(self: &Self) -> bool
    

    Source

    view_range

    fn view_range(self: &Self) -> (f64, f64)
    

    The visible time interval, shared by the ruler and every track in a host.

    Source

    configure

    fn configure(self: &Self, duration: f64, keys: Vec<f64>)
    

    Source

    set_view

    fn set_view(self: &Self, start: f64, end: f64)
    

    Source

    set_playhead

    fn set_playhead(self: &Self, time: f64)
    

    Source

    set_selected

    fn set_selected(self: &Self, time: Option<f64>)
    

    Source

    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.

    Source

    selected_keys

    fn selected_keys(self: &Self) -> Vec<f64>
    

    Source

    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.

    Source

    frame_rate

    fn frame_rate(self: &Self) -> Option<u32>
    

    Source

    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.

    Source

    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.

    Source

    on_remove_selection

    fn on_remove_selection(self: &Self, callback: impl Fn(Vec<f64>) -> () + 'static)
    

    Source

    on_duplicate_selection

    fn on_duplicate_selection(self: &Self, callback: impl Fn(Vec<f64>, f64) -> () + 'static)
    

    Source

    set_highlighted

    fn set_highlighted(self: &Self, highlighted: bool)
    

    Source

    on_activate

    fn on_activate(self: &Self, callback: impl Fn(f64) -> () + 'static)
    

    Source

    on_move

    fn on_move(self: &Self, callback: impl Fn(f64, f64) -> () + 'static)
    

    Source

    on_remove

    fn on_remove(self: &Self, callback: impl Fn(f64) -> () + 'static)
    

    Source

    on_insert

    fn on_insert(self: &Self, callback: impl Fn(f64) -> () + 'static)
    

    Source

    on_zoom

    fn on_zoom(self: &Self, callback: impl Fn(f64, f64) -> () + 'static)
    

    Source

    on_pan

    fn on_pan(self: &Self, callback: impl Fn(f64) -> () + 'static)
    

    Requests a horizontal viewport shift, measured in timeline seconds.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.