Struct slint::platform::software_renderer::PhysicalRegion
pub struct PhysicalRegion(_);
Expand description
Represents a rectangular region on the screen, used for partial rendering.
The region may be composed of multiple sub-regions.
Implementationsยง
ยงimpl PhysicalRegion
impl PhysicalRegion
pub fn bounding_box_size(&self) -> PhysicalSize
pub fn bounding_box_size(&self) -> PhysicalSize
Returns the size of the bounding box of this region.
pub fn bounding_box_origin(&self) -> PhysicalPosition
pub fn bounding_box_origin(&self) -> PhysicalPosition
Returns the origin of the bounding box of this region.
Trait Implementationsยง
ยงimpl Clone for PhysicalRegion
impl Clone for PhysicalRegion
ยงfn clone(&self) -> PhysicalRegion
fn clone(&self) -> PhysicalRegion
Returns a copy 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 moreAuto Trait Implementationsยง
impl RefUnwindSafe for PhysicalRegion
impl Send for PhysicalRegion
impl Sync for PhysicalRegion
impl Unpin for PhysicalRegion
impl UnwindSafe for PhysicalRegion
Blanket Implementationsยง
ยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
ยงfn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.ยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.ยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
โs vtable from &Trait
โs.ยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
โs vtable from &mut Trait
โs.