Struct bevy::prelude::AtlasImageBundle

pub struct AtlasImageBundle {
Show 13 fields pub node: Node, pub style: Style, pub calculated_size: ContentSize, pub image: UiImage, pub texture_atlas: TextureAtlas, pub focus_policy: FocusPolicy, pub image_size: UiImageSize, pub transform: Transform, pub global_transform: GlobalTransform, pub visibility: Visibility, pub inherited_visibility: InheritedVisibility, pub view_visibility: ViewVisibility, pub z_index: ZIndex,
}
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead
Expand description

A UI node that is a texture atlas sprite

ยงExtra behaviours

You may add the following components to enable additional behaviours

This bundle is identical to ImageBundle with an additional TextureAtlas component.

Fieldsยง

ยงnode: Node
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Describes the logical size of the node

ยงstyle: Style
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Styles which control the layout (size and position) of the node and its children In some cases these styles also affect how the node drawn/painted.

ยงcalculated_size: ContentSize
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

The calculated size based on the given image

ยงimage: UiImage
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

The image of the node

ยงtexture_atlas: TextureAtlas
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

A handle to the texture atlas to use for this Ui Node

ยงfocus_policy: FocusPolicy
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Whether this node should block interaction with lower nodes

ยงimage_size: UiImageSize
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

The size of the image in pixels

This component is set automatically

ยงtransform: Transform
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

The transform of the node

This component is automatically managed by the UI layout system. To alter the position of the AtlasImageBundle, use the properties of the Style component.

ยงglobal_transform: GlobalTransform
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

The global transform of the node

This component is automatically updated by the TransformPropagate systems.

ยงvisibility: Visibility
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Describes the visibility properties of the node

ยงinherited_visibility: InheritedVisibility
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Inherited visibility of an entity.

ยงview_visibility: ViewVisibility
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Algorithmically-computed indication of whether an entity is visible and should be extracted for rendering

ยงz_index: ZIndex
๐Ÿ‘ŽDeprecated since 0.14.0: Use TextureAtlas alongside ImageBundle instead

Indicates the depth at which the node should appear in the UI

Trait Implementationsยง

ยง

impl Debug for AtlasImageBundle

ยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
ยง

impl Default for AtlasImageBundle

ยง

fn default() -> AtlasImageBundle

Returns the โ€œdefault valueโ€ for a type. Read more
ยง

impl Bundle for AtlasImageBundle

ยง

impl DynamicBundle for AtlasImageBundle

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T, U> AsBindGroupShaderType<U> for T
where U: ShaderType, &'a T: for<'a> Into<U>,

ยง

fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U

Return the T ShaderType for self. When used in AsBindGroup derives, it is safe to assume that all images in self exist.
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
ยง

impl<T> Downcast<T> for T

ยง

fn downcast(&self) -> &T

ยง

impl<T> Downcast for T
where T: Any,

ยง

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
ยง

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
ยง

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Anyโ€™s vtable from &Traitโ€™s.
ยง

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Anyโ€™s vtable from &mut Traitโ€™s.
ยง

impl<T> DowncastSync for T
where T: Any + Send + Sync,

ยง

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

ยง

impl<S> FromSample<S> for S

ยง

fn from_sample_(s: S) -> S

ยง

impl<T> FromWorld for T
where T: Default,

ยง

fn from_world(_world: &mut World) -> T

Creates Self using data from the given World.
ยง

impl<T> Instrument for T

ยง

fn instrument(self, span: Span) -> Instrumented<Self> โ“˜

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
ยง

fn in_current_span(self) -> Instrumented<Self> โ“˜

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T> IntoEither for T

sourceยง

fn into_either(self, into_left: bool) -> Either<Self, Self> โ“˜

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
sourceยง

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ“˜
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
ยง

impl<F, T> IntoSample<T> for F
where T: FromSample<F>,

ยง

fn into_sample(self) -> T

ยง

impl<T> NoneValue for T
where T: Default,

ยง

type NoneType = T

ยง

fn null_value() -> T

The none-equivalent value.
ยง

impl<T> Pointable for T

ยง

const ALIGN: usize = _

The alignment of pointer.
ยง

type Init = T

The type for initializers.
ยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
ยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
ยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
ยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
sourceยง

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

sourceยง

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
sourceยง

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
sourceยง

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
sourceยง

impl<T> Same for T

ยง

type Output = T

Should always be Self
ยง

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

ยง

fn to_sample_(self) -> U

sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
ยง

impl<T> Upcast<T> for T

ยง

fn upcast(&self) -> Option<&T>

ยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

ยง

fn vzip(self) -> V

ยง

impl<T> WithSubscriber for T

ยง

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> โ“˜
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
ยง

fn with_current_subscriber(self) -> WithDispatch<Self> โ“˜

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
ยง

impl<T> ConditionalSend for T
where T: Send,

ยง

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

ยง

impl<T> Settings for T
where T: 'static + Send + Sync,

ยง

impl<T> WasmNotSend for T
where T: Send,

ยง

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

ยง

impl<T> WasmNotSync for T
where T: Sync,