pub trait NativeExt: 'static {
    fn renderer(&self) -> Renderer;
    fn surface(&self) -> Surface;
    fn surface_transform(&self) -> (f64, f64);
    fn realize(&self);
    fn unrealize(&self);
}
Expand description

Required Methods

Returns the renderer that is used for this Native.

Returns

the renderer for @self

Returns the surface of this Native.

Returns

the surface of @self

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

Realizes a Native.

This should only be used by subclasses.

Unrealizes a Native.

This should only be used by subclasses.

Implementors