Struct webrender_api::display_item::ComplexClipRegion
source · #[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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)