pub struct PhysicalRegion { /* private fields */ }Expand description
Represents a rectangular region on the screen, used for partial rendering.
The region may be composed of multiple sub-regions.
Implementations§
Source§impl PhysicalRegion
impl PhysicalRegion
Sourcepub fn bounding_box_size(&self) -> PhysicalSize
pub fn bounding_box_size(&self) -> PhysicalSize
Returns the size of the bounding box of this region.
Sourcepub fn bounding_box_origin(&self) -> PhysicalPosition
pub fn bounding_box_origin(&self) -> PhysicalPosition
Returns the origin of the bounding box of this region.
Sourcepub fn iter(
&self,
) -> impl Iterator<Item = (PhysicalPosition, PhysicalSize)> + '_
pub fn iter( &self, ) -> impl Iterator<Item = (PhysicalPosition, PhysicalSize)> + '_
Returns an iterator over the rectangles in this region. Each rectangle is represented by its position and its size. They do not overlap.
Trait Implementations§
Source§impl Clone for PhysicalRegion
impl Clone for PhysicalRegion
Source§fn clone(&self) -> PhysicalRegion
fn clone(&self) -> PhysicalRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhysicalRegion
impl Debug for PhysicalRegion
Source§impl Default for PhysicalRegion
impl Default for PhysicalRegion
Source§fn default() -> PhysicalRegion
fn default() -> PhysicalRegion
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PhysicalRegion
impl RefUnwindSafe for PhysicalRegion
impl Send for PhysicalRegion
impl Sync for PhysicalRegion
impl Unpin for PhysicalRegion
impl UnsafeUnpin for PhysicalRegion
impl UnwindSafe for PhysicalRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more