pub struct Live<'a> {
pub style: Option<&'a Style>,
pub visuals: Option<&'a Visuals>,
pub text: Option<&'a TextStyle>,
pub opacity: Option<&'a Opacity>,
}Expand description
The live components of one element, read when a holder takes a field nobody held yet: at that moment the live value is the cascade’s.
Fields§
§style: Option<&'a Style>The element’s layout style.
visuals: Option<&'a Visuals>The element’s paint.
text: Option<&'a TextStyle>The element’s text style.
opacity: Option<&'a Opacity>The element’s opacity; absent is fully opaque.
Trait Implementations§
impl<'a> Copy for Live<'a>
Auto Trait Implementations§
impl<'a> Freeze for Live<'a>
impl<'a> RefUnwindSafe for Live<'a>
impl<'a> Send for Live<'a>
impl<'a> Sync for Live<'a>
impl<'a> Unpin for Live<'a>
impl<'a> UnsafeUnpin for Live<'a>
impl<'a> UnwindSafe for Live<'a>
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,
§impl<T> FromTemplate for T
impl<T> FromTemplate for T
§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 default().
§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.
§impl<T> Template for T
impl<T> Template for T
§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
Uses this template and the given
entity context to produce a Template::Output.§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clones this template. See
Clone.