pub struct ExtractedClipBox {
pub origin: Vec2,
pub size: Vec2,
pub radius: f32,
pub start_order: PaintOrder,
pub end_order: PaintOrder,
}Expand description
One rectangular clip region constraining descendant paints.
- The renderer pushes a vello layer at
start_orderand pops it atend_order. - Emitted for
<scroll>containers and entities withoverflow: hidden.
Fields§
§origin: Vec2Top-left in window coordinates.
size: Vec2Width x height in logical pixels.
radius: f32Corner radius of the clip rect; matches the entity’s visual radius for rounded clips.
start_order: PaintOrderPaint-order key at which the layer is pushed - the clipping entity’s own PaintOrder.
Because paint order is a pre-order document rank, everything in [start_order, end_order]
is the clipping entity itself plus exactly its descendants.
end_order: PaintOrderPaint-order key at which the layer is popped - the maximum PaintOrder across the clipping
entity and its descendants, so the pop trails every descendant and nothing else.
Trait Implementations§
Source§impl Clone for ExtractedClipBox
impl Clone for ExtractedClipBox
Source§fn clone(&self) -> ExtractedClipBox
fn clone(&self) -> ExtractedClipBox
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Component for ExtractedClipBox
impl Component for ExtractedClipBox
Source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
A constant indicating the storage type used for this component.
Source§type Mutability = Mutable
type Mutability = Mutable
A marker type to assist Bevy with determining if this component is
mutable, or immutable. Mutable components will have
Component<Mutability = Mutable>,
while immutable components will instead have Component<Mutability = Immutable>. Read moreSource§fn register_required_components(
_requiree: ComponentId,
required_components: &mut RequiredComponentsRegistrator<'_, '_>,
)
fn register_required_components( _requiree: ComponentId, required_components: &mut RequiredComponentsRegistrator<'_, '_>, )
Registers required components. Read more
Source§fn clone_behavior() -> ComponentCloneBehavior
fn clone_behavior() -> ComponentCloneBehavior
Called when registering this component, allowing to override clone function (or disable cloning altogether) for this component. Read more
Source§fn relationship_accessor() -> Option<ComponentRelationshipAccessor<Self>>
fn relationship_accessor() -> Option<ComponentRelationshipAccessor<Self>>
Returns [
ComponentRelationshipAccessor] required for working with relationships in dynamic contexts. Read more§fn on_discard() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_discard() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
§fn on_despawn() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
fn on_despawn() -> Option<for<'w> fn(DeferredWorld<'w>, HookContext)>
§fn map_entities<E>(_this: &mut Self, _mapper: &mut E)where
E: EntityMapper,
fn map_entities<E>(_this: &mut Self, _mapper: &mut E)where
E: EntityMapper,
Maps the entities on this component using the given
EntityMapper. This is used to remap entities in contexts like scenes and entity cloning.
When deriving Component, this is populated by annotating fields containing entities with #[entities] Read moreSource§impl Debug for ExtractedClipBox
impl Debug for ExtractedClipBox
Source§impl From<&ExtractedClipBox> for ClipShape
impl From<&ExtractedClipBox> for ClipShape
Source§fn from(c: &ExtractedClipBox) -> Self
fn from(c: &ExtractedClipBox) -> Self
Converts to this type from the input type.
impl Copy for ExtractedClipBox
Auto Trait Implementations§
impl Freeze for ExtractedClipBox
impl RefUnwindSafe for ExtractedClipBox
impl Send for ExtractedClipBox
impl Sync for ExtractedClipBox
impl Unpin for ExtractedClipBox
impl UnsafeUnpin for ExtractedClipBox
impl UnwindSafe for ExtractedClipBox
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
§impl<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut ComponentsRegistrator<'_>, ) -> impl Iterator<Item = ComponentId> + use<C>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<C> DynamicBundle for Cwhere
C: Component,
impl<C> DynamicBundle for Cwhere
C: Component,
§unsafe fn get_components(
ptr: MovingPtr<'_, C>,
func: &mut impl FnMut(StorageType, OwningPtr<'_>),
) -> <C as DynamicBundle>::Effect
unsafe fn get_components( ptr: MovingPtr<'_, C>, func: &mut impl FnMut(StorageType, OwningPtr<'_>), ) -> <C as DynamicBundle>::Effect
Moves the components out of the bundle. Read more
§unsafe fn apply_effect(
_ptr: MovingPtr<'_, MaybeUninit<C>>,
_entity: &mut EntityWorldMut<'_>,
)
unsafe fn apply_effect( _ptr: MovingPtr<'_, MaybeUninit<C>>, _entity: &mut EntityWorldMut<'_>, )
Applies the after-effects of spawning this bundle. Read more
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.