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§
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)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".