pub trait GskRendererExt: IsA<Renderer> + 'static {
// Provided methods
fn surface(&self) -> Option<Surface> { ... }
fn is_realized(&self) -> bool { ... }
fn realize(&self, surface: Option<&Surface>) -> Result<(), Error> { ... }
fn realize_for_display(&self, display: &Display) -> Result<(), Error> { ... }
fn render(&self, root: impl AsRef<RenderNode>, region: Option<&Region>) { ... }
fn render_texture(
&self,
root: impl AsRef<RenderNode>,
viewport: Option<&Rect>,
) -> Texture { ... }
fn unrealize(&self) { ... }
fn connect_realized_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_surface_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}Provided Methods§
fn surface(&self) -> Option<Surface>
fn is_realized(&self) -> bool
fn realize(&self, surface: Option<&Surface>) -> Result<(), Error>
fn realize_for_display(&self, display: &Display) -> Result<(), Error>
fn render(&self, root: impl AsRef<RenderNode>, region: Option<&Region>)
fn render_texture( &self, root: impl AsRef<RenderNode>, viewport: Option<&Rect>, ) -> Texture
fn unrealize(&self)
fn connect_realized_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_surface_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.