FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RendererHost

    struct · ferroui-media-controls · v0.5.0

    struct RendererHost
    

    A normal composition control which schedules a client-owned renderer. Input mailboxes borrow already-acquired frames; this control never opens a source.

    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<RendererHost>
    

    Returns a strong reference to this object.

    Source

    schedule_property

    fn schedule_property() -> &'static StyledProperty<RenderSchedule>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    schedule

    fn schedule(self: &Self) -> RenderSchedule
    

    Source

    set_schedule

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

    Source

    errors

    fn errors(self: &Self) -> MediaEvent<MediaError>
    

    Source

    set_renderer

    fn set_renderer(self: &Self, renderer: Option<Rc<dyn TextureRenderer>>, source: u64, importer: Option<Rc<dyn TextureFrameImporter>>)
    

    The renderer's output identity must use source and the viewport's generation. The framework does not own its scenes or rendering library.

    Source

    set_renderer_factory

    fn set_renderer_factory(self: &Self, factory: Option<Rc<dyn Fn(&dyn ICompositionGpuInterop, u64) -> Result<(std::rc::Rc<dyn TextureRenderer>, std::rc::Rc<dyn TextureFrameImporter>), ferroui_media::MediaError>>>)
    

    Enables recreation after context loss. Scene and pipeline recreation remain client code; source inputs and scheduling remain on this host.

    Source

    output

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

    Source

    set_inputs

    fn set_inputs(self: &Self, inputs: Vec<Arc<FrameMailbox>>)
    

    Source

    invalidate_renderer

    fn invalidate_renderer(self: &Self)
    

    Source

    viewport_point

    fn viewport_point(self: &Self, point: Point) -> Option<Point>
    

    Map local pointer coordinates after normal control transforms. The caller subscribes to ordinary routed input and owns hit testing.

    Source

    Trait implementations

    Availability

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