TexturePresenter
struct · ferroui-media-controls · v0.5.0
struct TexturePresenter
Members
TYPEto_refstretch_propertyconstructnewstretchset_stretcherrorsframe_presentedframe_clearedpresented_framelast_errorset_frame_sourceinvalidate_devicepresent_latest
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TexturePresenter>
Returns a strong reference to this object.
stretch_property
fn stretch_property() -> &'static StyledProperty<Stretch>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
stretch
fn stretch(self: &Self) -> Stretch
set_stretch
fn set_stretch(self: &Self, value: Stretch)
errors
fn errors(self: &Self) -> &MediaEvent<MediaError>
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.
frame_cleared
fn frame_cleared(self: &Self) -> &MediaEvent<()>
Raised when presentation is reset or the current frame is removed.
presented_frame
fn presented_frame(self: &Self) -> Option<std::cell::Ref<'_, FrameMetadata>>
Metadata for the currently presented frame, with no pixel storage.
last_error
fn last_error(self: &Self) -> Option<MediaError>
set_frame_source
fn set_frame_source(self: &Self, source: Option<Arc<FrameMailbox>>, importer: Option<Rc<dyn TextureFrameImporter>>)
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherControlImplExtDerefUpcast<T>Upcast<TexturePresenter>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleLayoutableImplStyledElementImplInteractiveImplInputElementImplControlImplFerroObjectImplVisualImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.