pub trait ElementExt: ParentElement + Sized {
// Provided methods
fn text_selection_scope(
self,
scope: TextSelectionScopeId,
) -> impl IntoElement
where Self: IntoElement { ... }
fn on_prepaint<F>(self, callback: F) -> Self
where F: FnOnce(Bounds<Pixels>, &mut Window, &mut App) + 'static { ... }
}Expand description
Extends a GPUI parent element with post-layout prepaint observation.
Provided Methods§
Sourcefn text_selection_scope(self, scope: TextSelectionScopeId) -> impl IntoElementwhere
Self: IntoElement,
fn text_selection_scope(self, scope: TextSelectionScopeId) -> impl IntoElementwhere
Self: IntoElement,
Marks this element subtree as belonging to a text-selection scope.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".