Skip to main content

DockArea

Struct DockArea 

Source
pub struct DockArea { /* private fields */ }

Implementations§

Source§

impl DockArea

Source

pub fn new() -> Self

Source

pub fn dock<V: View + 'static>(self, child: V, dock: Dock) -> Self

Source

pub fn dock_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, dock: Dock, ) -> Self

Source

pub fn dock_opt<V: View + 'static>(self, child: Option<V>, dock: Dock) -> Self

Source

pub fn children(self, children: impl IntoChildren, dock: Dock) -> Self

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn docks(&self) -> &[Dock]

Source

pub fn get_dock(&self, index: usize) -> Option<Dock>

Source

pub fn is_ordered(&self) -> bool

Source

pub fn is_border(&self) -> bool

Source

pub fn dock_at<V: View + 'static>( self, index: usize, child: V, dock: Dock, ) -> Self

Source

pub fn remove(self, index: usize) -> Self

Source

pub fn move_child(self, from: usize, slot: usize) -> Self

Source

pub fn set_dock(self, index: usize, dock: Dock) -> Self

Source

pub fn clear(self) -> Self

Source

pub fn dock_mut<V: View + 'static>(&mut self, child: V, dock: Dock)

Source

pub fn dock_at_mut<V: View + 'static>( &mut self, index: usize, child: V, dock: Dock, )

Source

pub fn remove_mut(&mut self, index: usize)

Source

pub fn move_child_mut(&mut self, from: usize, slot: usize)

Source

pub fn set_dock_mut(&mut self, index: usize, dock: Dock)

Source

pub fn clear_mut(&mut self)

Source

pub fn left<V: View + 'static>(self, child: V) -> Self

Source

pub fn right<V: View + 'static>(self, child: V) -> Self

Source

pub fn top<V: View + 'static>(self, child: V) -> Self

Source

pub fn bottom<V: View + 'static>(self, child: V) -> Self

Source

pub fn fill<V: View + 'static>(self, child: V) -> Self

Source

pub fn center<V: View + 'static>(self, child: V) -> Self

Source

pub fn left_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, ) -> Self

Source

pub fn right_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, ) -> Self

Source

pub fn top_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, ) -> Self

Source

pub fn bottom_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, ) -> Self

Source

pub fn fill_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, ) -> Self

Source

pub fn center_if<V: View + 'static>( self, cond: bool, make: impl FnOnce() -> V, ) -> Self

Source

pub fn left_opt<V: View + 'static>(self, child: Option<V>) -> Self

Source

pub fn right_opt<V: View + 'static>(self, child: Option<V>) -> Self

Source

pub fn top_opt<V: View + 'static>(self, child: Option<V>) -> Self

Source

pub fn bottom_opt<V: View + 'static>(self, child: Option<V>) -> Self

Source

pub fn fill_opt<V: View + 'static>(self, child: Option<V>) -> Self

Source

pub fn center_opt<V: View + 'static>(self, child: Option<V>) -> Self

Source

pub fn last_child_fill(self, fill: bool) -> Self

Source

pub fn ordered(self, ordered: bool) -> Self

Source

pub fn border_layout(self, border: bool) -> Self

Source

pub fn gap(self, gap: f32) -> Self

Source

pub fn padding(self, padding: impl Into<Edges>) -> Self

Source

pub fn pad(self, padding: impl Into<Edges>) -> Self

Source

pub fn padding_xy(self, x: f32, y: f32) -> Self

Source

pub fn padding_x(self, x: f32) -> Self

Source

pub fn padding_y(self, y: f32) -> Self

Source

pub fn padding_left(self, v: f32) -> Self

Source

pub fn padding_right(self, v: f32) -> Self

Source

pub fn padding_top(self, v: f32) -> Self

Source

pub fn padding_bottom(self, v: f32) -> Self

Source

pub fn margin(self, margin: impl Into<Edges>) -> Self

Source

pub fn margin_xy(self, x: f32, y: f32) -> Self

Source

pub fn margin_x(self, x: f32) -> Self

Source

pub fn margin_y(self, y: f32) -> Self

Source

pub fn margin_left(self, v: f32) -> Self

Source

pub fn margin_right(self, v: f32) -> Self

Source

pub fn margin_top(self, v: f32) -> Self

Source

pub fn margin_bottom(self, v: f32) -> Self

Source

pub fn indent_top(self, v: f32) -> Self

Source

pub fn indent_bottom(self, v: f32) -> Self

Source

pub fn indent_left(self, v: f32) -> Self

Source

pub fn indent_right(self, v: f32) -> Self

Source

pub fn clear_indents(self) -> Self

Source

pub fn indent(self, indents: Indents) -> Self

Source

pub fn indent_all(self, v: f32) -> Self

Source

pub fn indent_xy(self, x: f32, y: f32) -> Self

Source

pub fn indent_axes(self, horizontal: f32, vertical: f32) -> Self

Source

pub fn width(self, width: impl Into<Length>) -> Self

Source

pub fn height(self, height: impl Into<Length>) -> Self

Source

pub fn size(self, width: impl Into<Length>, height: impl Into<Length>) -> Self

Source

pub fn square(self, side: impl Into<Length>) -> Self

Source

pub fn min_width(self, v: f32) -> Self

Source

pub fn max_width(self, v: f32) -> Self

Source

pub fn min_height(self, v: f32) -> Self

Source

pub fn max_height(self, v: f32) -> Self

Source

pub fn overflow(self, overflow: Overflow) -> Self

Source

pub fn flex(self, weight: f32) -> Self

Source

pub fn flex_grow(self, weight: f32) -> Self

Source

pub fn flex_shrink(self, shrink: f32) -> Self

Source

pub fn flex_basis(self, basis: Option<Length>) -> Self

Source

pub fn align_self(self, align: Option<Align>) -> Self

Source

pub fn align_self_value(self, align: Align) -> Self

Source

pub fn aspect_ratio(self, ratio: Option<f32>) -> Self

Source

pub fn aspect(self, ratio: f32) -> Self

Source

pub fn position(self, position: Position) -> Self

Source

pub fn absolute(self) -> Self

Source

pub fn absolute_at(self, left: f32, top: f32) -> Self

Source

pub fn absolute_inset(self, inset: Inset) -> Self

Source

pub fn fit(self) -> Self

Source

pub fn hit_testable(self, on: bool) -> Self

Source

pub fn expand(self) -> Self

Source

pub fn fill_width(self) -> Self

Source

pub fn fill_height(self) -> Self

Source

pub fn fill_size(self) -> Self

Source

pub fn background(self, color: Color) -> Self

Source

pub fn border(self, width: f32, color: Color) -> Self

Source

pub fn border_left(self, width: f32, color: Color) -> Self

Source

pub fn border_right(self, width: f32, color: Color) -> Self

Source

pub fn border_top(self, width: f32, color: Color) -> Self

Source

pub fn border_bottom(self, width: f32, color: Color) -> Self

Source

pub fn border_x(self, width: f32, color: Color) -> Self

Source

pub fn border_y(self, width: f32, color: Color) -> Self

Source

pub fn radius(self, radius: f32) -> Self

Source

pub fn box_style(self, style: BoxStyle) -> Self

Source

pub fn style(self, style: BoxStyle) -> Self

Trait Implementations§

Source§

impl Clone for DockArea

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for DockArea

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl View for DockArea

Source§

fn body(&self) -> impl View + 'static

Source§

fn layout_style_ctx(&self, _rt: &Runtime, _el: ElementId) -> LayoutStyle

Source§

fn accessibility(&self) -> Option<Accessible>

Source§

fn arrange_override( &self, _rt: &Runtime, _el: ElementId, _rect: Rect, _ctx: &mut LayoutCtx<'_>, ) -> bool

Source§

fn clip_self(&self) -> bool

Source§

fn clip_radius(&self) -> f32

Source§

fn paint_opacity(&self) -> Option<f32>

Source§

fn paint_opacity_ctx(&self, _rt: &Runtime, _el: ElementId) -> Option<f32>

Source§

fn paint_offset(&self) -> Vec2

Source§

fn paint_offset_ctx(&self, _rt: &Runtime, _el: ElementId) -> Vec2

Source§

fn paint_scale(&self) -> f32

Source§

fn paint_scale_ctx(&self, _rt: &Runtime, _el: ElementId) -> f32

Source§

fn paint_rotation(&self) -> f32

Source§

fn paint_rotation_ctx(&self, _rt: &Runtime, _el: ElementId) -> f32

Source§

fn foreground_filter(&self) -> Option<Filter>

Source§

fn captures_pointer_ctx(&self, _rt: &Runtime, _el: ElementId) -> bool

Source§

fn reuse_state(&self, _old: &Self)

Source§

fn hit_testable(&self) -> bool

Source§

fn test_id(&self) -> Option<String>

Source§

fn focus_trap(&self) -> bool

Source§

fn accepts_tab(&self) -> bool

Source§

fn paint_foreground(&self, _ctx: &mut PaintCtx<'_>)

Source§

fn accepts_drop(&self, _payload: &DragPayload) -> bool

Source§

fn on_drag_over(&self, _pos: DropPosition, _ctx: &mut EventCtx<'_>)

Source§

fn on_drop(&self, _pos: DropPosition, _ctx: &mut EventCtx<'_>)

Source§

fn on_drag_start(&self, _ctx: &mut EventCtx<'_>)

Source§

fn on_drag_end(&self, _end: DragEnd, _ctx: &mut EventCtx<'_>)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> FilterExt for T
where T: View + 'static,

Source§

fn blur_own(self, radius: f32) -> Filtered

Source§

fn blur_own_with(self, build: impl FnOnce(Filter) -> Filter) -> Filtered

Source§

fn blur_behind(self, radius: f32) -> BackdropFiltered

Source§

fn blur_behind_with( self, build: impl FnOnce(Backdrop) -> Backdrop, ) -> BackdropFiltered

Source§

fn effect(self, effect: Effect) -> EffectNode

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LiveExt for T
where T: View + 'static,

Source§

fn opacity_live(self, live: impl Into<Live<f32>>) -> LiveOpacity

Source§

fn offset_live(self, live: impl Into<Live<Vec2>>) -> LiveOffset

Source§

fn background_live(self, live: impl Into<Live<Color>>) -> LiveBackground

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ViewModifiers for T
where T: View + 'static,

Source§

fn opacity(self, opacity: impl Into<Live<f32>>) -> LiveOpacity

Source§

fn offset(self, dx: f32, dy: f32) -> LiveOffset

Source§

fn offset_by(self, offset: impl Into<Live<Vec2>>) -> LiveOffset

Source§

fn background(self, color: impl Into<Live<Color>>) -> LiveBackground

Source§

fn bg(self, color: impl Into<Live<Color>>) -> LiveBackground

Source§

fn blur(self, px: f32) -> Filtered

Source§

fn shadow(self, spec: ShadowSpec) -> EffectNode

Source§

fn clip(self) -> Clip

Source§

fn clip_rounded(self, radius: f32) -> Clip

Source§

fn scale(self, scale: impl Into<Live<f32>>) -> Scaled

Source§

fn rotate(self, degrees: impl Into<Live<f32>>) -> Rotated

Source§

fn width_live(self, width: impl Into<Live<f32>>) -> AnimatedSize

Source§

fn height_live(self, height: impl Into<Live<f32>>) -> AnimatedSize

Source§

fn size_live( self, width: impl Into<Live<f32>>, height: impl Into<Live<f32>>, ) -> AnimatedSize

Source§

fn animate(self, spec: impl Into<AnimSpec>) -> Enter

Source§

fn enter(self, motion: impl Into<Motion>) -> Enter

Source§

fn hover(self, build: impl FnOnce(StatePatch) -> StatePatch) -> States

Source§

fn pressed(self, build: impl FnOnce(StatePatch) -> StatePatch) -> States

Source§

fn focused(self, build: impl FnOnce(StatePatch) -> StatePatch) -> States

Source§

fn selected(self, build: impl FnOnce(StatePatch) -> StatePatch) -> States

Source§

fn disabled(self, build: impl FnOnce(StatePatch) -> StatePatch) -> States

Source§

fn state(self, build: impl FnOnce(States) -> States) -> States

Source§

fn margin(self, margin: impl Into<Edges>) -> Margined

Source§

fn margin_xy(self, x: f32, y: f32) -> Margined

Source§

fn margin_x(self, x: f32) -> Margined

Source§

fn margin_y(self, y: f32) -> Margined

Source§

fn margin_left(self, v: f32) -> Margined

Source§

fn margin_right(self, v: f32) -> Margined

Source§

fn margin_top(self, v: f32) -> Margined

Source§

fn margin_bottom(self, v: f32) -> Margined

Source§

fn indent_top(self, v: f32) -> Margined

Source§

fn indent_bottom(self, v: f32) -> Margined

Source§

fn indent_left(self, v: f32) -> Margined

Source§

fn indent_right(self, v: f32) -> Margined

Source§

fn indent(self, indents: Indents) -> Margined

Source§

fn indent_all(self, v: f32) -> Margined

Source§

fn indent_xy(self, x: f32, y: f32) -> Margined

Source§

fn indent_axes(self, horizontal: f32, vertical: f32) -> Margined

Source§

impl<T> ViewState for T
where T: Default + 'static,