TextureRendererHost
struct · ferroui-media · v0.5.0
struct TextureRendererHost
Members
newoutputset_activeactivate_if_neededclear_outputviewporthas_pending_workset_scheduleinvalidateresizerenderviewport_point
new
fn new(renderer: Rc<dyn TextureRenderer>, source: u64) -> Self
output
fn output(self: &Self) -> Arc<FrameMailbox>
set_active
fn set_active(self: &Self, active: bool)
activate_if_needed
fn activate_if_needed(self: &Self)
clear_output
fn clear_output(self: &Self)
viewport
fn viewport(self: &Self) -> RendererViewport
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.
set_schedule
fn set_schedule(self: &Self, schedule: RenderSchedule)
invalidate
fn invalidate(self: &Self)
resize
fn resize(self: &Self, width: f64, height: f64, scale: f64, max_dimension: u32) -> Result<(), MediaError>
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.
viewport_point
fn viewport_point(self: &Self, x: f64, y: f64, logical_width: f64, logical_height: f64) -> Option<(f64, f64)>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.