Struct gpui2::CompositeElement
source · pub struct CompositeElement<C> { /* private fields */ }
Implementations§
source§impl<C> CompositeElement<C>
impl<C> CompositeElement<C>
Trait Implementations§
source§impl<C: Component> Element for CompositeElement<C>
impl<C: Component> Element for CompositeElement<C>
source§impl<C: Component> RenderOnce for CompositeElement<C>
impl<C: Component> RenderOnce for CompositeElement<C>
type Element = CompositeElement<C>
fn element_id(&self) -> Option<ElementId>
fn render_once(self) -> Self::Element
fn render_into_any(self) -> AnyElement
fn draw<T, R>( self, origin: Point<Pixels>, available_space: Size<T>, cx: &mut WindowContext<'_>, f: impl FnOnce(&mut <Self::Element as Element>::State, &mut WindowContext<'_>) -> R ) -> Rwhere T: Clone + Default + Debug + Into<AvailableSpace>,
fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere Self: Sized, U: RenderOnce,
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere Self: Sized,
fn when_some<T>( self, option: Option<T>, then: impl FnOnce(Self, T) -> Self ) -> Selfwhere Self: Sized,
Auto Trait Implementations§
impl<C> RefUnwindSafe for CompositeElement<C>where C: RefUnwindSafe,
impl<C> Send for CompositeElement<C>where C: Send,
impl<C> Sync for CompositeElement<C>where C: Sync,
impl<C> Unpin for CompositeElement<C>where C: Unpin,
impl<C> UnwindSafe for CompositeElement<C>where C: UnwindSafe,
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