FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TexturePresenter

    struct · ferroui-media-controls · v0.5.0

    struct TexturePresenter
    

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

    Returns a strong reference to this object.

    Source

    stretch_property

    fn stretch_property() -> &'static StyledProperty<Stretch>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    stretch

    fn stretch(self: &Self) -> Stretch
    

    Source

    set_stretch

    fn set_stretch(self: &Self, value: Stretch)
    

    Source

    errors

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

    Source

    frame_presented

    fn frame_presented(self: &Self) -> &MediaEvent<FrameMetadata>
    

    Raised after the compositor accepts a current shared frame. This is a presentation-state notification, not a GPU-completion fence.

    Source

    frame_cleared

    fn frame_cleared(self: &Self) -> &MediaEvent<()>
    

    Raised when presentation is reset or the current frame is removed.

    Source

    presented_frame

    fn presented_frame(self: &Self) -> Option<std::cell::Ref<'_, FrameMetadata>>
    

    Metadata for the currently presented frame, with no pixel storage.

    Source

    last_error

    fn last_error(self: &Self) -> Option<MediaError>
    

    Source

    set_frame_source

    fn set_frame_source(self: &Self, source: Option<Arc<FrameMailbox>>, importer: Option<Rc<dyn TextureFrameImporter>>)
    

    Source

    invalidate_device

    fn invalidate_device(self: &Self)
    

    Retire presentation on context loss while retaining the selected source. A fresh provider/importer must be attached after the renderer recreates it.

    Source

    present_latest

    fn present_latest(self: &Self)
    

    Called on a source frame/invalidation opportunity; unchanged paused frames do not submit another import or render job.

    Source

    Trait implementations

    Availability

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