Trait gsk4::prelude::RendererExt [−][src]
pub trait RendererExt: 'static {
fn surface(&self) -> Option<Surface>;
fn is_realized(&self) -> bool;
fn realize(&self, surface: &Surface) -> Result<(), Error>;
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;
}
Expand description
Trait containing all Renderer
methods.
Implementors
BroadwayRenderer
, CairoRenderer
, GLRenderer
, NglRenderer
, Renderer
Required methods
Retrieves the gdk::Surface
set using gsk_enderer_realize()
.
If the renderer has not been realized yet, None
will be returned.
Returns
fn is_realized(&self) -> bool
fn is_realized(&self) -> bool
Creates the resources needed by the self
to render the scene
graph.
surface
the gdk::Surface
renderer will be used on