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

Required methods

Retrieves the gdk::Surface set using gsk_enderer_realize().

If the renderer has not been realized yet, None will be returned.

Returns

a gdk::Surface

Checks whether the self is realized or not.

Returns

true if the Renderer was realized, and false otherwise

Creates the resources needed by the self to render the scene graph.

surface

the gdk::Surface renderer will be used on

Releases all the resources created by realize().

Implementors