pub struct ExtractedNative {
pub extension_id: Arc<str>,
pub payload: Arc<dyn Any + Send + Sync>,
pub bounds: Rect,
pub order: PaintOrder,
pub revision: u64,
pub clip_to_bounds: bool,
}Expand description
Render-world component describing one backend-painted leaf.
Spawned by a plugin’s extract fn like any other Extracted* component, so it inherits document
paint order via crate::render_world::paint_order_of, enclosing clip brackets, the top-layer
band, the crate::render_world::clear_extracted lifecycle, and the hidden-subtree sweep.
Fields§
§extension_id: Arc<str>Identifies the extension that owns this leaf. The backend dispatches on it and skips the leaf when no painter is registered.
payload: Arc<dyn Any + Send + Sync>Type-erased draw data. The painter downcasts it to the type its extension_id promises.
bounds: RectBounding rect in logical window coordinates. Encloses every pixel the painter touches.
order: PaintOrderPainter-algorithm sort key, from crate::render_world::paint_order_of.
revision: u64Content stamp. Equal revisions mean identical pixels; see next_revision.
clip_to_bounds: boolWhen true, the backend clips the painter to Self::bounds.
Trait Implementations§
Source§impl Clone for ExtractedNative
impl Clone for ExtractedNative
Source§fn clone(&self) -> ExtractedNative
fn clone(&self) -> ExtractedNative
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Component for ExtractedNative
impl Component for ExtractedNative
Source§const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
const STORAGE_TYPE: StorageType = bevy_ecs::component::StorageType::Table
Source§type Mutability = Mutable
type Mutability = Mutable
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<'_, '_>, )
Source§fn clone_behavior() -> ComponentCloneBehavior
fn clone_behavior() -> ComponentCloneBehavior
Source§fn relationship_accessor() -> Option<ComponentRelationshipAccessor<Self>>
fn relationship_accessor() -> Option<ComponentRelationshipAccessor<Self>>
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,
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 more