[][src]Struct druid::widget::Split

pub struct Split<T> { /* fields omitted */ }

A container containing two other widgets, splitting the area either horizontally or vertically.

Methods

impl<T> Split<T>[src]

pub fn vertical(
    child1: impl Widget<T> + 'static,
    child2: impl Widget<T> + 'static
) -> Self
[src]

Create a new split panel, with a vertical splitter between two children.

pub fn horizontal(
    child1: impl Widget<T> + 'static,
    child2: impl Widget<T> + 'static
) -> Self
[src]

Create a new split panel, with a horizontal splitter between two children.

pub fn split_point(self, split_point: f64) -> Self[src]

Set container's split point as a fraction of the split dimension The value must be between 0.0 and 1.0, exclusive

pub fn min_size(self, min_size: f64) -> Self[src]

Builder-style method to set the minimum size for both sides of the split.

The value must be greater than or equal to 0.0.

pub fn splitter_size(self, splitter_size: f64) -> Self[src]

Set the width of the splitter bar, in pixels The value must be positive or zero

pub fn draggable(self, draggable: bool) -> Self[src]

Set whether the splitter's split point can be changed by dragging.

pub fn fill_splitter_handle(self, solid: bool) -> Self[src]

Builder-style method to set whether the splitter handle is drawn as a solid rectangle.

If this is false (the default), it will be drawn as two parallel lines.

Trait Implementations

impl<T: Data> Widget<T> for Split<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Split<T>

impl<T> !Send for Split<T>

impl<T> !Sync for Split<T>

impl<T> Unpin for Split<T> where
    T: Unpin

impl<T> !UnwindSafe for Split<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.