Struct workspace::pane::PaneBackdrop
source · pub struct PaneBackdrop<V> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<V: 'static> Element<V> for PaneBackdrop<V>
impl<V: 'static> Element<V> for PaneBackdrop<V>
type LayoutState = ()
type PaintState = ()
fn layout( &mut self, constraint: SizeConstraint, view: &mut V, cx: &mut ViewContext<'_, '_, V> ) -> (Vector2F, Self::LayoutState)
fn paint( &mut self, bounds: RectF, visible_bounds: RectF, _: &mut Self::LayoutState, view: &mut V, cx: &mut ViewContext<'_, '_, V> ) -> Self::PaintState
fn rect_for_text_range( &self, range_utf16: Range<usize>, _bounds: RectF, _visible_bounds: RectF, _layout: &Self::LayoutState, _paint: &Self::PaintState, view: &V, cx: &ViewContext<'_, '_, V> ) -> Option<RectF>
fn debug( &self, _bounds: RectF, _layout: &Self::LayoutState, _paint: &Self::PaintState, view: &V, cx: &ViewContext<'_, '_, V> ) -> Value
fn view_name(&self) -> &'static str
fn metadata(&self) -> Option<&(dyn Any + 'static)>
fn into_any(self) -> AnyElement<V>where Self: 'static + Sized,
fn into_any_named(self, name: impl Into<Cow<'static, str>>) -> AnyElement<V>where Self: 'static + Sized,
fn into_root_element(self, cx: &ViewContext<'_, '_, V>) -> RootElement<V>where Self: 'static + Sized,
fn constrained(self) -> ConstrainedBox<V>where Self: 'static + Sized,
fn aligned(self) -> Align<V>where Self: 'static + Sized,
fn clipped(self) -> Clipped<V>where Self: 'static + Sized,
fn contained(self) -> Container<V>where Self: 'static + Sized,
fn expanded(self) -> Expanded<V>where Self: 'static + Sized,
fn flex(self, flex: f32, expanded: bool) -> FlexItem<V>where Self: 'static + Sized,
fn flex_float(self) -> FlexItem<V>where Self: 'static + Sized,
fn with_dynamic_tooltip( self, tag: TypeTag, id: usize, text: impl Into<Cow<'static, str>>, action: Option<Box<dyn Action, Global>>, style: TooltipStyle, cx: &mut ViewContext<'_, '_, V> ) -> Tooltip<V>where Self: 'static + Sized,
fn with_tooltip<Tag>( self, id: usize, text: impl Into<Cow<'static, str>>, action: Option<Box<dyn Action, Global>>, style: TooltipStyle, cx: &mut ViewContext<'_, '_, V> ) -> Tooltip<V>where Tag: 'static, Self: 'static + Sized,
§fn provide_resize_bounds<Tag>(self) -> BoundsProvider<V, Tag>where
Tag: 'static,
Self: 'static + Sized,
fn provide_resize_bounds<Tag>(self) -> BoundsProvider<V, Tag>where Tag: 'static, Self: 'static + Sized,
Uses the the given element to calculate resizes for the given tag
§fn resizable<Tag>(
self,
side: HandleSide,
size: f32,
on_resize: impl FnMut(&mut V, Option<f32>, &mut ViewContext<'_, '_, V>) + 'static
) -> Resizable<V>where
Tag: 'static,
Self: 'static + Sized,
fn resizable<Tag>( self, side: HandleSide, size: f32, on_resize: impl FnMut(&mut V, Option<f32>, &mut ViewContext<'_, '_, V>) + 'static ) -> Resizable<V>where Tag: 'static, Self: 'static + Sized,
Calls the given closure with the new size of the element whenever the
handle is dragged. This will be calculated in relation to the bounds
provided by the given tag
fn mouse<Tag>(self, region_id: usize) -> MouseEventHandler<V>where Tag: 'static, Self: Sized,
fn component(self) -> StatelessElementAdapterwhere Self: Sized,
fn stateful_component(self) -> StatefulElementAdapter<V>where Self: Sized,
fn styleable_component(self) -> StylableAdapter<StatelessElementAdapter>where Self: Sized,
Auto Trait Implementations§
impl<V> !RefUnwindSafe for PaneBackdrop<V>
impl<V> !Send for PaneBackdrop<V>
impl<V> !Sync for PaneBackdrop<V>
impl<V> Unpin for PaneBackdrop<V>
impl<V> !UnwindSafe for PaneBackdrop<V>
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