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

The empty region.

Returns the collection of rectangles making up this region.

Adds a rectangle to this region.

Replaces this region with a single rectangle.

Sets this region to the empty region.

Returns a rectangle containing this region.

👎 Deprecated since 0.7.0:

Use bounding_box() instead

Returns true if this region has a non-empty intersection with the given rectangle.

Returns true if this region is empty.

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

Performs the += operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the -= operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

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