Trait AudiencePresentationProvider
pub trait AudiencePresentationProvider {
// Provided methods
fn audience_presentation_request(
&self,
) -> Option<AudiencePresentationRequest> { ... }
fn on_audience_presentation_changed(&mut self, _active: bool) { ... }
fn draw_audience_presentation(
&mut self,
_scene: &mut Scene,
_transform: Affine,
_text_renderer: &mut TextRenderer,
_theme: &Theme,
_rect: Rect,
) -> bool { ... }
fn handle_audience_presentation_event(
&mut self,
_event: &WindowEvent,
_state: &mut Edits<'_>,
_path: &ExId,
) -> bool { ... }
fn on_audience_presentation_closed(&mut self) { ... }
}Expand description
Optional second-output presentation capability for app roots.
Provided Methods§
fn audience_presentation_request(&self) -> Option<AudiencePresentationRequest>
fn audience_presentation_request(&self) -> Option<AudiencePresentationRequest>
Request a real audience toplevel on a different output.
fn on_audience_presentation_changed(&mut self, _active: bool)
fn on_audience_presentation_changed(&mut self, _active: bool)
Report whether the audience toplevel is currently live.
fn draw_audience_presentation(
&mut self,
_scene: &mut Scene,
_transform: Affine,
_text_renderer: &mut TextRenderer,
_theme: &Theme,
_rect: Rect,
) -> bool
fn draw_audience_presentation( &mut self, _scene: &mut Scene, _transform: Affine, _text_renderer: &mut TextRenderer, _theme: &Theme, _rect: Rect, ) -> bool
Paint the audience-only projection of the app’s existing state.
fn handle_audience_presentation_event(
&mut self,
_event: &WindowEvent,
_state: &mut Edits<'_>,
_path: &ExId,
) -> bool
fn handle_audience_presentation_event( &mut self, _event: &WindowEvent, _state: &mut Edits<'_>, _path: &ExId, ) -> bool
Route controls originating on the audience surface.
fn on_audience_presentation_closed(&mut self)
fn on_audience_presentation_closed(&mut self)
Treat closing the audience toplevel as an explicit stop request.