Struct druid_shell::Region [−][src]
pub struct Region { /* fields omitted */ }
Expand description
A union of rectangles, useful for describing an area that needs to be repainted.
Implementations
Returns the collection of rectangles making up this region.
Returns a rectangle containing this region.
Use bounding_box() instead
Returns true
if this region has a non-empty intersection with the given rectangle.
Converts into a Bezier path. Note that this just gives the concatenation of the rectangle paths, which is not the smartest possible thing. Also, it’s not the right answer for an even/odd fill rule.
Modifies this region by including everything in the other region.
Modifies this region by intersecting it with the given rectangle.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Region
impl UnwindSafe for Region
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more