Trait gtk4::prelude::NativeExt

source ·
pub trait NativeExt: 'static {
    // Required methods
    fn renderer(&self) -> Renderer;
    fn surface(&self) -> Surface;
    fn surface_transform(&self) -> (f64, f64);
}
Expand description

Required Methods§

source

fn renderer(&self) -> Renderer

Returns the renderer that is used for this Native.

Returns

the renderer for @self

source

fn surface(&self) -> Surface

Returns the surface of this Native.

Returns

the surface of @self

source

fn surface_transform(&self) -> (f64, f64)

Retrieves the surface transform of @self.

This is the translation from @self’s surface coordinates into @self’s widget coordinates.

Returns
x

return location for the x coordinate

y

return location for the y coordinate

Implementors§

source§

impl<O: IsA<Native>> NativeExt for O