Skip to main content

IPlatformRenderInterfaceRegion

Trait IPlatformRenderInterfaceRegion 

Source
pub trait IPlatformRenderInterfaceRegion {
    // Required methods
    fn add_rect(&self, rect: LtrbPixelRect);
    fn reset(&self);
    fn is_empty(&self) -> bool;
    fn bounds(&self) -> LtrbPixelRect;
    fn rects(&self) -> Vec<LtrbPixelRect>;
    fn intersects(&self, rect: LtrbRect) -> bool;
    fn contains(&self, pt: Point) -> bool;
    fn dispose(&self);
    fn as_any(&self) -> &dyn Any;
}
Expand description

A platform region: a set of pixel rectangles.

Required Methods§

Source

fn add_rect(&self, rect: LtrbPixelRect)

Source

fn reset(&self)

Source

fn is_empty(&self) -> bool

Source

fn bounds(&self) -> LtrbPixelRect

Source

fn rects(&self) -> Vec<LtrbPixelRect>

Source

fn intersects(&self, rect: LtrbRect) -> bool

Source

fn contains(&self, pt: Point) -> bool

Source

fn dispose(&self)

Source

fn as_any(&self) -> &dyn Any

Lets the backend recover its concrete type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§