Struct bevy::ui::FlexSurface
pub struct FlexSurface { /* private fields */ }
Implementations§
§impl FlexSurface
impl FlexSurface
pub fn upsert_node(&mut self, entity: Entity, style: &Style, scale_factor: f64)
pub fn upsert_leaf(
&mut self,
entity: Entity,
style: &Style,
calculated_size: CalculatedSize,
scale_factor: f64
)
pub fn update_children(&mut self, entity: Entity, children: &Children)
pub fn try_remove_children(&mut self, entity: Entity)
pub fn try_remove_children(&mut self, entity: Entity)
Removes children from the entity’s taffy node if it exists. Does nothing otherwise.
pub fn update_window(&mut self, window: &Window)
pub fn set_window_children(
&mut self,
window_id: WindowId,
children: impl Iterator<Item = Entity>
)
pub fn compute_window_layouts(&mut self)
pub fn remove_entities(&mut self, entities: impl IntoIterator<Item = Entity>)
pub fn remove_entities(&mut self, entities: impl IntoIterator<Item = Entity>)
Removes each entity from the internal map and then removes their associated node from taffy
pub fn get_layout(&self, entity: Entity) -> Result<&Layout, FlexError>
Trait Implementations§
§impl Debug for FlexSurface
impl Debug for FlexSurface
§impl Default for FlexSurface
impl Default for FlexSurface
§fn default() -> FlexSurface
fn default() -> FlexSurface
Returns the “default value” for a type. Read more
impl Resource for FlexSurfacewhere
FlexSurface: 'static + Send + Sync,
impl Send for FlexSurface
impl Sync for FlexSurface
Auto Trait Implementations§
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist. Read more§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
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. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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. Read more§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given World