FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextureRendererHost

    struct · ferroui-media · v0.5.0

    struct TextureRendererHost
    

    View source

    Members

    new

    fn new(renderer: Rc<dyn TextureRenderer>, source: u64) -> Self
    

    Source

    output

    fn output(self: &Self) -> Arc<FrameMailbox>
    

    Source

    set_active

    fn set_active(self: &Self, active: bool)
    

    Source

    activate_if_needed

    fn activate_if_needed(self: &Self)
    

    Source

    clear_output

    fn clear_output(self: &Self)
    

    Source

    viewport

    fn viewport(self: &Self) -> RendererViewport
    

    Source

    has_pending_work

    fn has_pending_work(self: &Self) -> bool
    

    Whether admitted work or an invalidation still needs a scheduling tick. Clean static hosts can sleep until a source/layout notification arrives.

    Source

    set_schedule

    fn set_schedule(self: &Self, schedule: RenderSchedule)
    

    Source

    invalidate

    fn invalidate(self: &Self)
    

    Source

    resize

    fn resize(self: &Self, width: f64, height: f64, scale: f64, max_dimension: u32) -> Result<(), MediaError>
    

    Source

    render

    fn render(self: &Self, inputs: Vec<FrameLease>) -> Option<MediaFuture<()>>
    

    The existing render scheduler calls this once per presentation opportunity. Hidden, zero-sized, clean or already-busy hosts do not schedule work.

    Source

    viewport_point

    fn viewport_point(self: &Self, x: f64, y: f64, logical_width: f64, logical_height: f64) -> Option<(f64, f64)>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

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