Struct rsvg::bbox::BoundingBox
source · pub struct BoundingBox {
transform: Transform,
pub rect: Option<Rect>,
pub ink_rect: Option<Rect>,
}
Fields§
§transform: Transform
§rect: Option<Rect>
§ink_rect: Option<Rect>
Implementations§
source§impl BoundingBox
impl BoundingBox
pub fn new() -> BoundingBox
pub fn with_transform(self, transform: Transform) -> BoundingBox
pub fn with_rect(self, rect: Rect) -> BoundingBox
pub fn with_ink_rect(self, ink_rect: Rect) -> BoundingBox
pub fn clear(self)
fn combine(&mut self, src: &BoundingBox, clip: bool)
pub fn insert(&mut self, src: &BoundingBox)
pub fn clip(&mut self, src: &BoundingBox)
Trait Implementations§
source§impl Clone for BoundingBox
impl Clone for BoundingBox
source§fn clone(&self) -> BoundingBox
fn clone(&self) -> BoundingBox
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 moresource§impl Debug for BoundingBox
impl Debug for BoundingBox
source§impl Default for BoundingBox
impl Default for BoundingBox
source§fn default() -> BoundingBox
fn default() -> BoundingBox
Returns the “default value” for a type. Read more
impl Copy for BoundingBox
Auto Trait Implementations§
impl RefUnwindSafe for BoundingBox
impl Send for BoundingBox
impl Sync for BoundingBox
impl Unpin for BoundingBox
impl UnwindSafe for BoundingBox
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.