#[repr(C)]pub struct ComplexClipRegion {
pub rect: LayoutRect,
pub radii: BorderRadius,
pub mode: ClipMode,
}
Fields§
§rect: LayoutRect
The boundaries of the rectangle.
radii: BorderRadius
Border radii of this rectangle.
mode: ClipMode
Whether we are clipping inside or outside the region.
Implementations§
Source§impl ComplexClipRegion
impl ComplexClipRegion
Sourcepub fn new(rect: LayoutRect, radii: BorderRadius, mode: ClipMode) -> Self
pub fn new(rect: LayoutRect, radii: BorderRadius, mode: ClipMode) -> Self
Create a new complex clip region.
Source§impl ComplexClipRegion
impl ComplexClipRegion
Sourcepub fn get_local_clip_rect(&self) -> Option<LayoutRect>
pub fn get_local_clip_rect(&self) -> Option<LayoutRect>
Get a local clipping rect contributed by this clip region.
Trait Implementations§
Source§impl Clone for ComplexClipRegion
impl Clone for ComplexClipRegion
Source§fn clone(&self) -> ComplexClipRegion
fn clone(&self) -> ComplexClipRegion
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 ComplexClipRegion
impl Debug for ComplexClipRegion
Source§impl Default for ComplexClipRegion
impl Default for ComplexClipRegion
Source§fn default() -> ComplexClipRegion
fn default() -> ComplexClipRegion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComplexClipRegion
impl<'de> Deserialize<'de> for ComplexClipRegion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComplexClipRegion
impl PartialEq for ComplexClipRegion
Source§impl Peek for ComplexClipRegion
impl Peek for ComplexClipRegion
Source§impl Poke for ComplexClipRegion
impl Poke for ComplexClipRegion
Source§impl Serialize for ComplexClipRegion
impl Serialize for ComplexClipRegion
impl Copy for ComplexClipRegion
impl StructuralPartialEq for ComplexClipRegion
Auto Trait Implementations§
impl Freeze for ComplexClipRegion
impl RefUnwindSafe for ComplexClipRegion
impl Send for ComplexClipRegion
impl Sync for ComplexClipRegion
impl Unpin for ComplexClipRegion
impl UnwindSafe for ComplexClipRegion
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